29 #ifndef __vtkImageViewer3_h 30 #define __vtkImageViewer3_h 32 #include <vtkObjectFactory.h> 33 #include <vtkImageViewer2.h> 34 #if(VTK_MAJOR_VERSION > 5) 35 #include <vtkResliceCursor.h> 36 #include <vtkResliceCursorActor.h> 37 #include <vtkResliceCursorPolyDataAlgorithm.h> 39 #include <vtkCursor3D.h> 40 #include <vtkPolyDataMapper.h> 43 #if(VTK_MAJOR_VERSION > 5) 44 #include <vtkRenderingImageModule.h> 45 #define VTK_EXT_EXPORT VTKRENDERINGIMAGE_EXPORT 47 #define VTK_EXT_EXPORT VTK_RENDERING_EXPORT 49 #include <vtkInteractorStyleImage2.h> 56 void PrintSelf(ostream& os, vtkIndent indent);
59 vtkSetMacro(NeurologicalView,
bool);
60 vtkGetMacro(NeurologicalView,
bool);
61 vtkBooleanMacro(NeurologicalView,
bool);
64 virtual void SetSliceOrientation(
int orientation);
70 #if(VTK_MAJOR_VERSION > 5) 71 inline void SetCursor(vtkResliceCursor* newCursor)
76 cursorActor->GetCursorAlgorithm()->SetResliceCursor(cursor);
78 inline vtkResliceCursor* GetCursor()
82 inline void SetCursorActor(vtkResliceCursorActor* newCursorActor)
85 cursorActor->Delete();
86 cursorActor = newCursorActor;
88 inline vtkProp3D* GetCursorActor()
93 inline void SetCursor(vtkCursor3D* newCursor)
99 inline vtkCursor3D* GetCursor()
103 inline void SetCursorActor(vtkActor* newCursorActor)
106 cursorActor->Delete();
107 cursorActor = newCursorActor;
109 inline vtkProp3D* GetCursorActor()
115 void DisableCursor();
117 vtkGetMacro(CursorEnabled,
bool);
119 double* GetCursorFocalPoint();
120 void SetCursorFocalPoint(
double *point);
126 virtual void UpdateOrientation();
127 virtual void InstallPipeline();
129 bool NeurologicalView;
132 #if(VTK_MAJOR_VERSION > 5) 133 vtkResliceCursor *cursor;
134 vtkResliceCursorActor *cursorActor;
137 vtkPolyDataMapper *cursorMapper;
138 vtkActor *cursorActor;
141 #if(VTK_MAJOR_VERSION > 5)