]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/ImageSliceActors.h
Widget integration (step 4/6)... Testing on windows.
[cpPlugins.git] / lib / cpExtensions / Visualization / ImageSliceActors.h
index 8889b2f08d5986decaea77dbeef024e03c3cdc8b..d51d656ba48a883fb63756e7daafa0455441fae5 100644 (file)
@@ -33,6 +33,8 @@ namespace cpExtensions
     public:
       typedef ImageSliceActors Self;
 
+      typedef void ( *TUpdateCommand )( void* );
+
     public:
       vtkTypeMacro( ImageSliceActors, vtkPropCollection );
 
@@ -72,6 +74,12 @@ namespace cpExtensions
       void UpdateText( );
       void UpdateText( const double& w, const double& l );
 
+      TUpdateCommand SetUpdateCommand( TUpdateCommand cmd, void* data )
+        {
+          this->m_UpdateCommand = cmd;
+          this->m_UpdateData = data;
+        }
+
     protected:
       ImageSliceActors( );
       virtual ~ImageSliceActors( );
@@ -101,6 +109,10 @@ namespace cpExtensions
       char                                 TextBuffer[ 1024 ];
       vtkSmartPointer< vtkTextActor >      TextActor;
       vtkSmartPointer< vtkActor >          PlaneActor;
+
+
+      TUpdateCommand m_UpdateCommand;
+      void* m_UpdateData;
     };
 
   } // ecapseman