]> Creatis software - cpPlugins.git/commitdiff
MPR updated
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Wed, 4 Feb 2015 23:05:12 +0000 (18:05 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Wed, 4 Feb 2015 23:05:12 +0000 (18:05 -0500)
lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.cxx
lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.h

index e2716318d0aa63ed64a822c8a48de9426079e1f6..f8f86c60d141a4468ed0923f3559c78d4aaa8743 100644 (file)
@@ -106,6 +106,30 @@ SetSegmentation( vtkImageData* image )
   this->Render( 2 );
 }
 
+// -------------------------------------------------------------------------
+void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
+SetModeToNavigation( )
+{
+  for( unsigned int i = 0; i < 3; ++i )
+  {
+    if( this->m_Styles[ i ].GetPointer( ) != NULL )
+      this->m_Styles[ i ]->SetModeToNavigation( );
+    
+  } // rof
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
+SetModeToDeformation( )
+{
+  for( unsigned int i = 0; i < 3; ++i )
+  {
+    if( this->m_Styles[ i ].GetPointer( ) != NULL )
+      this->m_Styles[ i ]->SetModeToDeformation( );
+    
+  } // rof
+}
+
 // -------------------------------------------------------------------------
 void cpPlugins::Extensions::Visualization::MPRWithDifferentWindows::
 ResetCamera( const int& id )
index ceff1ebcfefaa490891c21b355d69c5cd7f814a9..495e6bb4f85c0347e62641eb5ff5ff5a530c0028 100644 (file)
@@ -61,9 +61,10 @@ namespace cpPlugins
           );
         virtual ~MPRWithDifferentWindows( );
 
-
         void SetImage( vtkImageData* image );
         void SetSegmentation( vtkImageData* image );
+        void SetModeToNavigation( );
+        void SetModeToDeformation( );
 
         void ResetCamera( const int& id );
         void ResetCameras( );