X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FVisualization%2FImageSliceActors.h;h=d51d656ba48a883fb63756e7daafa0455441fae5;hb=2da3b422ceb0b6abfd336200a4ede6efe982ebe2;hp=8889b2f08d5986decaea77dbeef024e03c3cdc8b;hpb=f989f3f91e2a17832652e345928eac26dcfb6d52;p=cpPlugins.git diff --git a/lib/cpExtensions/Visualization/ImageSliceActors.h b/lib/cpExtensions/Visualization/ImageSliceActors.h index 8889b2f..d51d656 100644 --- a/lib/cpExtensions/Visualization/ImageSliceActors.h +++ b/lib/cpExtensions/Visualization/ImageSliceActors.h @@ -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