]> Creatis software - cpPlugins.git/commitdiff
It compiles again. But it does not show anything: still working on OpenGL - Leo
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 10 Nov 2015 02:25:04 +0000 (21:25 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 10 Nov 2015 02:25:04 +0000 (21:25 -0500)
appli/ImageMPR/ImageMPR.cxx

index 70124e9827df95a02366245b0a53f1683abb0ad7..ce1f2fc769c7f39232d3902adbb18353cb367936 100644 (file)
@@ -166,18 +166,8 @@ _AssociatePluginsToMenu( )
     if( name == "" )                                                    \
       return;                                                           \
     TImage* image = this->m_Plugins.GetData< TImage >( name );          \
-    vtkImageData* vimage = image->GetVTK< vtkImageData >( );            \
-    if( vimage != NULL )                                                \
-    {                                                                   \
-      this->m_UI->MPR->AddImage( vimage, name );                        \
-      this->m_UI->MPR->ShowData( name );                                \
-    }                                                                   \
-    else                                                                \
-      QMessageBox::critical(                                            \
-        this,                                                           \
-        QMessageBox::tr( "Error showing image." ),                      \
-        QMessageBox::tr( "Image read, but no valid VTK conversion found." ) \
-        );                                                              \
+    this->m_UI->MPR->AddData( image, name, "" );                        \
+    this->m_UI->MPR->ShowData( name );                                  \
   }                                                                     \
   catch( std::exception& err )                                          \
   {                                                                     \