1 #ifndef __cpExtensions__Visualization__ImageViewerActors__h__
2 #define __cpExtensions__Visualization__ImageViewerActors__h__
4 #include <cpExtensions/Visualization/ImageSliceActors.h>
5 #include <vtkSmartPointer.h>
7 // -------------------------------------------------------------------------
10 // -------------------------------------------------------------------------
11 namespace cpExtensions
13 namespace Visualization
19 class cpExtensions_EXPORT ImageViewerActors
20 : public ImageSliceActors
23 typedef ImageViewerActors Self;
26 vtkTypeMacro( ImageViewerActors, ImageSliceActors );
31 virtual void SetImage(
32 vtkImageData* image, int orientation
33 ) cpExtensions_OVERRIDE;
35 void SetCursor( double* pos, bool neg );
36 void SetSuperCursor( double* pos, bool neg );
37 void HideViewerActors( );
41 virtual ~ImageViewerActors( );
43 void _CorrectPosition( double* pos, int* ijk );
44 void _ShowText( double* pos );
47 // Purposely not implemented
48 ImageViewerActors( const Self& );
49 Self& operator=( const Self& );
52 vtkSmartPointer< CursorActors > m_Cursor;
53 vtkSmartPointer< CursorActors > m_SuperCursor;
54 vtkSmartPointer< vtkTextActor > m_Text;
55 char m_TextBuffer[ 1024 ];
62 #endif // __cpExtensions__Visualization__ImageViewerActors__h__