1 #ifndef __cpExtensions__Visualization__CursorActors__h__
2 #define __cpExtensions__Visualization__CursorActors__h__
4 #include <cpExtensions/Config.h>
5 #include <vtkPropCollection.h>
6 #include <vtkSmartPointer.h>
8 // -------------------------------------------------------------------------
10 class vtkPolyDataMapper;
13 // -------------------------------------------------------------------------
14 namespace cpExtensions
16 namespace Visualization
22 class cpExtensions_EXPORT CursorActors
23 : public vtkPropCollection
26 typedef CursorActors Self;
29 vtkTypeMacro( CursorActors, vtkPropCollection );
34 virtual void Modified( ) cpExtensions_OVERRIDE;
36 void SetImageBounds( double* bounds );
37 void SetImageOrientation( int orientation );
38 void SetCursor( double* pos, bool neg );
40 vtkProperty* GetProperty( unsigned int i );
41 const vtkProperty* GetProperty( unsigned int i ) const;
43 void SetVisibility( int v );
45 void VisibilityOff( );
49 virtual ~CursorActors( );
52 // Purposely not implemented
53 CursorActors( const Self& );
54 Self& operator=( const Self& );
57 vtkSmartPointer< LineSource > m_Lines[ 2 ];
58 vtkSmartPointer< vtkPolyDataMapper > m_Mappers[ 2 ];
59 vtkSmartPointer< vtkActor > m_Actors[ 2 ];
68 #endif // __cpExtensions__Visualization__CursorActors__h__