]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/MPRInteractionCommand.cxx
...
[cpPlugins.git] / lib / cpExtensions / QT / MPRInteractionCommand.cxx
index bc3b1a56d53556b351e0a61d62ebeabbefba43bc..39dc19d686d4cafc4b411a62b65647b4bf480f62 100644 (file)
@@ -1,7 +1,4 @@
 #include <cpExtensions/QT/MPRInteractionCommand.h>
-
-#ifdef cpExtensions_QT4
-
 #include <cpExtensions/Interaction/ImageSliceStyle.h>
 #include <cpExtensions/Visualization/ImageViewerActors.h>
 #include <cpExtensions/QT/ImageWidget.h>
@@ -46,39 +43,41 @@ Execute( vtkObject* caller, unsigned long evId, void* data )
     return;
   if( evId == _SuperCursor )
   {
-    auto ori = src->GetActors( )->GetOrientation( );
-    auto img = src->GetActors( )->GetImage( );
-    auto pos = reinterpret_cast< double* >( data );
-    int ijk[ 3 ];
-    double pcoords[ 3 ];
-    img->ComputeStructuredCoordinates( pos, ijk, pcoords );
+    /* TODO
+       auto ori = src->GetActors( )->GetOrientation( );
+       auto img = src->GetActors( )->GetImage( );
+       auto pos = reinterpret_cast< double* >( data );
+       int ijk[ 3 ];
+       double pcoords[ 3 ];
+       img->ComputeStructuredCoordinates( pos, ijk, pcoords );
 
-    for(
-      auto i = this->m_ImageWidgets.begin( );
-      i != this->m_ImageWidgets.end( );
-      ++i
-      )
-      if( ( *i )->GetInteractorStyle( ) != src )
-        ( *i )->SetSliceNumber( ijk[ ( *i )->GetOrientation( ) ] );
+       for(
+       auto i = this->m_ImageWidgets.begin( );
+       i != this->m_ImageWidgets.end( );
+       ++i
+       )
+       if( ( *i )->GetInteractorStyle( ) != src )
+       ( *i )->SetSliceNumber( ijk[ ( *i )->GetOrientation( ) ] );
     
-    for(
-      auto r = this->m_MPR3DWidgets.begin( );
-      r != this->m_MPR3DWidgets.end( );
-      ++r
-      )
-      ( *r )->SetSlicesNumbers( ijk[ 0 ], ijk[ 1 ], ijk[ 2 ] );
+       for(
+       auto r = this->m_MPR3DWidgets.begin( );
+       r != this->m_MPR3DWidgets.end( );
+       ++r
+       )
+       ( *r )->SetSlicesNumbers( ijk[ 0 ], ijk[ 1 ], ijk[ 2 ] );
+    */
   }
   else if( evId == _Slice )
   {
-    auto slice = *( reinterpret_cast< int* >( data ) );
-    auto ori = src->GetActors( )->GetOrientation( );
+    int slc = src->GetSliceNumber( );
+    int ori = src->GetOrientation( );
     for(
       auto r = this->m_MPR3DWidgets.begin( );
       r != this->m_MPR3DWidgets.end( );
       ++r
       )
-      ( *r )->SetSliceNumber( ori, slice );
-    
+      ( *r )->SetSliceNumber( ori, slc );
+
   } // fi
 }
       
@@ -95,6 +94,4 @@ cpExtensions::QT::MPRInteractionCommand::
 {
 }
 
-#endif // cpExtensions_QT4
-
 // eof - $RCSfile$