1 #ifndef __cpExtensions__Interaction__ImageSliceStyle__h__
2 #define __cpExtensions__Interaction__ImageSliceStyle__h__
4 #include <cpExtensions/Interaction/BaseStyle.h>
5 #include <vtkSmartPointer.h>
7 // -------------------------------------------------------------------------
10 // -------------------------------------------------------------------------
11 namespace cpExtensions
13 namespace Visualization { class ImageViewerActors; }
19 class cpExtensions_EXPORT ImageSliceStyle
23 typedef ImageSliceStyle Self;
26 vtkTypeMacro( ImageSliceStyle, BaseStyle );
31 cpExtensions::Visualization::ImageViewerActors* GetActors( );
32 const cpExtensions::Visualization::ImageViewerActors* GetActors( ) const;
33 void SetActors( cpExtensions::Visualization::ImageViewerActors* actors );
36 virtual void OnMouseMove( ) cpExtensions_OVERRIDE;
37 virtual void OnMouseWheelForward( ) cpExtensions_OVERRIDE;
38 virtual void OnMouseWheelBackward( ) cpExtensions_OVERRIDE;
39 virtual void OnChar( ) cpExtensions_OVERRIDE;
43 virtual ~ImageSliceStyle( );
45 virtual bool _PickPosition( int idx[ 2 ], double pos[ 3 ] ) cpExtensions_OVERRIDE;
48 // Purposely not implemented
49 ImageSliceStyle( const Self& );
50 Self& operator=( const Self& );
53 vtkSmartPointer< cpExtensions::Visualization::ImageViewerActors > m_Actors;
54 vtkSmartPointer< vtkPropPicker > m_PropPicker;
61 #endif // __cpExtensions__Interaction__ImageSliceStyle__h__