Go to the documentation of this file.
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;
95 #if (VTK_MAJOR_VERSION >= 6)
96 virtual void SetInputData(vtkImageData *in);
117 SLICE_ORIENTATION_YZ = 0,
118 SLICE_ORIENTATION_XZ = 1,
119 SLICE_ORIENTATION_XY = 2
122 vtkGetMacro(SliceOrientation,
int);
137 vtkGetMacro(Slice,
int);
163 { this->GetSliceRange(range[0], range[1]); }
210 vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
211 vtkGetObjectMacro(Renderer, vtkRenderer);
212 vtkGetObjectMacro(ImageActor,vtkImageActor);
214 vtkGetObjectMacro(InteractorStyle,vtkInteractorStyleImage);
238 vtkBooleanMacro(OffScreenRendering,
int);
282 #if (VTK_MAJOR_VERSION >= 6)
283 vtkAlgorithm* GetInputAlgorithm();
284 vtkInformation* GetInputInformation();
287 friend class vtkImageColorViewerCallback;
virtual void SetSliceOrientationToXY()
virtual void SetColorLevel(double s)
virtual void GetSliceRange(int range[2])
virtual void SetPosition(int a[2])
virtual const char * GetWindowName()
Get the name of rendering window.
virtual void UpdateDisplayExtent()
Update the display extent manually so that the proper slice for the given orientation is displayed.
virtual void SetPosition(int a, int b)
void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetSize(int a, int b)
virtual void InstallPipeline()
virtual int GetSliceMin()
Return the minimum and maximum slice values (depending on the orientation this can be in X,...
virtual int GetSliceMax()
virtual void SetRenderWindow(vtkRenderWindow *arg)
Set your own renderwindow and renderer.
virtual double GetColorWindow()
Set window and level for mapping pixels to colors.
virtual void Render(void)
Render the resulting image.
virtual void SetSlice(int s)
virtual void SetSliceOrientationToXZ()
virtual void SetWindowId(void *a)
virtual void AddInputConnection(vtkAlgorithmOutput *input)
virtual void SetDisplayId(void *a)
These are here when using a Tk window.
vtkImageActor * OverlayImageActor
virtual void SetupInteractor(vtkRenderWindowInteractor *)
Attach an interactor for the internal render window.
virtual void SetSize(int a[2])
virtual void SetInputConnection(vtkAlgorithmOutput *input)
virtual void AddInput(vtkImageData *input)
vtkRenderWindowInteractor * Interactor
virtual int * GetPosition()
Set/Get the position in screen coordinates of the rendering window.
void SetOverlayVisibility(double vis)
vtkInteractorStyleImage * InteractorStyle
virtual void SetOffScreenRendering(int)
Create a window in memory instead of on the screen.
virtual void SetParentId(void *a)
virtual void SetColorWindow(double s)
virtual int * GetSize()
Set/Get the size of the window in screen coordinates in pixels.
vtkImageMapToWindowLevelColors2 * WindowLevel
virtual void SetSliceOrientation(int orientation)
virtual void SetInput(vtkImageData *in)
Set/Get the input image to the viewer.
virtual void GetSliceRange(int &min, int &max)
vtkImageActor * ImageActor
map the input image through a lookup table and window / level it
vtkRenderWindow * RenderWindow
virtual int GetOffScreenRendering()
virtual void UpdateOrientation()
virtual void UnInstallPipeline()
virtual void SetSliceOrientationToYZ()
virtual vtkImageData * GetInput()
virtual void SetRenderer(vtkRenderer *arg)
double GetOverlayVisibility()
static vtkImageColorViewer * New()
virtual int * GetSliceRange()
virtual double GetColorLevel()