[opengtl-commits] [271] cleanup

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 271
Author:   cyrille
Date:     2008-06-30 22:00:04 +0200 (Mon, 30 Jun 2008)

Log Message:
-----------
cleanup

Modified Paths:
--------------
    trunk/QtShiva/QtShiva.cpp


Modified: trunk/QtShiva/QtShiva.cpp
===================================================================
--- trunk/QtShiva/QtShiva.cpp	2008-06-30 19:59:42 UTC (rev 270)
+++ trunk/QtShiva/QtShiva.cpp	2008-06-30 20:00:04 UTC (rev 271)
@@ -87,7 +87,6 @@
   p.compile();
   if(p.isCompiled())
   {
-//     OpenShiva::Image image(1000, 1000, pixel );
     std::list<GTLCore::AbstractImage*> inputImages;
     for( int k = 0; k < m_mainWindow->listImages->count(); ++k)
     {
@@ -102,24 +101,9 @@
       GTLCore::AbstractImage* iImage = new QImageImage( img );
       inputImages.push_back( iImage );
     }
-    // -
     QImageImage image( QImage( 1000, 1000, QImage::Format_RGB32) );
-    // -
     p.evaluatePixeles( GTLCore::Region(0,0, 1000,1000), inputImages, &image );
     currentImage = image.image();
-#if 0
-    currentImage = QImage( image.width(), image.height(), QImage::Format_RGB32);
-    for( int j = 0; j < image.height(); ++j )
-    {
-      for(int i = 0; i < image.width(); ++i )
-      {
-        int r = clamp255( *(((float*)image.data(i,j)) + 0) * 255 );
-        int g = clamp255( *(((float*)image.data(i,j)) + 1) * 255 );
-        int b = clamp255( *(((float*)image.data(i,j)) + 2) * 255 );
-        currentImage.setPixel( i,j, qRgb(r,g,b) );
-      }
-    }
-#endif
     for( std::list<GTLCore::AbstractImage*>::iterator it = inputImages.begin();
          it != inputImages.end(); ++it)
     {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/