56#ifndef VTKIMAGECOLORVIEWER_H
57#define VTKIMAGECOLORVIEWER_H
60#include "vtkVersion.h"
63class vtkAlgorithmOutput;
68class vtkInteractorStyleImage;
71class 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;
double GetOverlayVisibility()
virtual void SetColorWindow(double s)
virtual void SetInputConnection(vtkAlgorithmOutput *input)
virtual void SetSliceOrientationToXZ()
virtual void SetSliceOrientationToXY()
virtual void UnInstallPipeline()
virtual int * GetPosition()
Set/Get the position in screen coordinates of the rendering window.
virtual void SetWindowId(void *a)
virtual int * GetSize()
Set/Get the size of the window in screen coordinates in pixels.
virtual void SetOffScreenRendering(int)
Create a window in memory instead of on the screen.
virtual void Render(void)
Render the resulting image.
vtkInteractorStyleImage * InteractorStyle
virtual const char * GetWindowName()
Get the name of rendering window.
virtual void AddInputConnection(vtkAlgorithmOutput *input)
vtkImageActor * OverlayImageActor
virtual void AddInput(vtkImageData *input)
vtkRenderWindow * RenderWindow
virtual void SetSize(int a[2])
virtual void SetSlice(int s)
virtual void SetColorLevel(double s)
vtkImageMapToWindowLevelColors2 * WindowLevel
virtual void SetRenderer(vtkRenderer *arg)
virtual double GetColorLevel()
virtual void SetInput(vtkImageData *in)
Set/Get the input image to the viewer.
void PrintSelf(ostream &os, vtkIndent indent)
virtual void InstallPipeline()
vtkRenderWindowInteractor * Interactor
virtual void SetRenderWindow(vtkRenderWindow *arg)
Set your own renderwindow and renderer.
virtual void UpdateOrientation()
void SetOverlayVisibility(double vis)
virtual void SetPosition(int a, int b)
virtual void SetParentId(void *a)
virtual int * GetSliceRange()
virtual vtkImageData * GetInput()
virtual void SetupInteractor(vtkRenderWindowInteractor *)
Attach an interactor for the internal render window.
virtual void SetSize(int a, int b)
virtual int GetOffScreenRendering()
vtkImageActor * ImageActor
virtual void SetSliceOrientationToYZ()
virtual int GetSliceMin()
Return the minimum and maximum slice values (depending on the orientation this can be in X,...
virtual void GetSliceRange(int &min, int &max)
virtual void UpdateDisplayExtent()
Update the display extent manually so that the proper slice for the given orientation is displayed.
static vtkImageColorViewer * New()
virtual int GetSliceMax()
virtual void SetDisplayId(void *a)
These are here when using a Tk window.
virtual void GetSliceRange(int range[2])
virtual void SetPosition(int a[2])
virtual void SetSliceOrientation(int orientation)
virtual double GetColorWindow()
Set window and level for mapping pixels to colors.
map the input image through a lookup table and window / level it