56 #ifndef VTKIMAGECOLORVIEWER_H 57 #define VTKIMAGECOLORVIEWER_H 59 #include "vtkObject.h" 60 #include "vtkVersion.h" 63 class vtkAlgorithmOutput;
68 class vtkInteractorStyleImage;
69 class vtkRenderWindow;
71 class vtkRenderWindowInteractor;
79 void PrintSelf(ostream& os, vtkIndent indent);
84 virtual const char *GetWindowName();
89 virtual void Render(
void);
95 #if (VTK_MAJOR_VERSION >= 6) 96 virtual void SetInputData(vtkImageData *in);
98 virtual void SetInput(vtkImageData *in);
100 virtual vtkImageData *GetInput();
101 virtual void SetInputConnection(vtkAlgorithmOutput* input);
102 virtual void AddInputConnection(vtkAlgorithmOutput* input);
103 virtual void AddInput(vtkImageData * input);
107 double GetOverlayVisibility();
108 void SetOverlayVisibility(
double vis);
117 SLICE_ORIENTATION_YZ = 0,
118 SLICE_ORIENTATION_XZ = 1,
119 SLICE_ORIENTATION_XY = 2
122 vtkGetMacro(SliceOrientation,
int);
123 virtual void SetSliceOrientation(
int orientation);
137 vtkGetMacro(Slice,
int);
138 virtual void SetSlice(
int s);
153 virtual void UpdateDisplayExtent();
160 virtual int GetSliceMin();
161 virtual int GetSliceMax();
163 { this->GetSliceRange(range[0], range[1]); }
164 virtual void GetSliceRange(
int &min,
int &max);
165 virtual int* GetSliceRange();
172 virtual double GetColorWindow();
173 virtual double GetColorLevel();
174 virtual void SetColorWindow(
double s);
175 virtual void SetColorLevel(
double s);
182 virtual void SetDisplayId(
void *a);
183 virtual void SetWindowId(
void *a);
184 virtual void SetParentId(
void *a);
191 virtual int* GetPosition();
192 virtual void SetPosition(
int a,
int b);
200 virtual int* GetSize();
201 virtual void SetSize(
int a,
int b);
210 vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
211 vtkGetObjectMacro(Renderer, vtkRenderer);
212 vtkGetObjectMacro(ImageActor,vtkImageActor);
214 vtkGetObjectMacro(InteractorStyle,vtkInteractorStyleImage);
221 virtual void SetRenderWindow(vtkRenderWindow *arg);
222 virtual void SetRenderer(vtkRenderer *arg);
228 virtual void SetupInteractor(vtkRenderWindowInteractor*);
236 virtual void SetOffScreenRendering(
int);
237 virtual int GetOffScreenRendering();
238 vtkBooleanMacro(OffScreenRendering,
int);
244 VTK_LEGACY(
int GetWholeZMin());
249 VTK_LEGACY(
int GetWholeZMax());
254 VTK_LEGACY(
int GetZSlice());
259 VTK_LEGACY(
void SetZSlice(
int));
265 virtual void InstallPipeline();
266 virtual void UnInstallPipeline();
280 virtual void UpdateOrientation();
282 #if (VTK_MAJOR_VERSION >= 6) 283 vtkAlgorithm* GetInputAlgorithm();
284 vtkInformation* GetInputInformation();
287 friend class vtkImageColorViewerCallback;
vtkImageMapToWindowLevelColors2 * WindowLevel
vtkImageActor * ImageActor
vtkImageActor * OverlayImageActor
virtual void SetPosition(int a[2])
Set/Get the position in screen coordinates of the rendering window.
virtual void GetSliceRange(int range[2])
Return the minimum and maximum slice values (depending on the orientation this can be in X...
vtkRenderWindowInteractor * Interactor
virtual void SetSliceOrientationToXZ()
Set/get the slice orientation BTX.
virtual void SetSize(int a[2])
Set/Get the size of the window in screen coordinates in pixels.
map the input image through a lookup table and window / level it
virtual void SetSliceOrientationToXY()
Set/get the slice orientation BTX.
vtkRenderWindow * RenderWindow
vtkInteractorStyleImage * InteractorStyle
virtual void SetSliceOrientationToYZ()
Set/get the slice orientation BTX.