Go to the documentation of this file.
61 #ifndef vtkImageViewer2_h
62 #define vtkImageViewer2_h
64 #include "vtkInteractionImageModule.h"
110 SLICE_ORIENTATION_YZ = 0,
111 SLICE_ORIENTATION_XZ = 1,
112 SLICE_ORIENTATION_XY = 2
115 vtkGetMacro(SliceOrientation,
int);
129 vtkGetMacro(Slice,
int);
184 virtual
void SetPosition(
int a,
int b);
185 virtual
void SetPosition(
int a[2]) { this->
SetPosition(a[0],a[1]); }
193 virtual
void SetSize(
int a,
int b);
194 virtual
void SetSize(
int a[2]) { this->
SetSize(a[0],a[1]); }
256 friend class vtkImageViewer2Callback;
virtual int GetSliceMax()
virtual void SetParentId(void *a)
vtkRenderWindowInteractor * Interactor
virtual void Render(void)
Render the resulting image.
virtual void SetRenderer(vtkRenderer *arg)
Superclass for all sources, filters, and sinks in VTK.
virtual void SetWindowId(void *a)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetSliceOrientation(int orientation)
virtual void SetInputConnection(vtkAlgorithmOutput *input)
abstract base class for most VTK objects
vtkAlgorithm * GetInputAlgorithm()
interactive manipulation of the camera specialized for images
virtual int * GetPosition()
Set/Get the position in screen coordinates of the rendering window.
virtual void UnInstallPipeline()
virtual const char * GetWindowName()
Get the name of rendering window.
vtkInformation * GetInputInformation()
vtkImageMapToWindowLevelColors * WindowLevel
virtual void SetSliceOrientationToXY()
virtual vtkTypeBool GetOffScreenRendering()
#define VTK_SIZEHINT(...)
virtual int * GetSize()
Set/Get the size of the window in screen coordinates in pixels.
static vtkImageViewer2 * New()
virtual double GetColorLevel()
virtual double GetColorWindow()
Set window and level for mapping pixels to colors.
virtual void InstallPipeline()
virtual void UpdateOrientation()
Map an image through a lookup table and/or a window/level.
topologically and geometrically regular array of data
a simple class to control print indentation
virtual void SetPosition(int a[2])
virtual void SetSliceOrientationToXZ()
vtkImageActor * ImageActor
~vtkImageViewer2() override
virtual int * GetSliceRange()
virtual int GetSliceMin()
Return the minimum and maximum slice values (depending on the orientation this can be in X,...
virtual void SetInputData(vtkImageData *in)
Set/Get the input image to the viewer.
virtual vtkImageData * GetInput()
virtual void SetSlice(int s)
platform-independent render window interaction including picking and frame rate control.
virtual void SetSize(int a[2])
vtkInteractorStyleImage * InteractorStyle
virtual void UpdateDisplayExtent()
Update the display extent manually so that the proper slice for the given orientation is displayed.
virtual void SetupInteractor(vtkRenderWindowInteractor *)
Attach an interactor for the internal render window.
virtual void SetOffScreenRendering(vtkTypeBool)
Create a window in memory instead of on the screen.
virtual void SetDisplayId(void *a)
These are here when using a Tk window.
virtual void SetColorLevel(double s)
vtkRenderWindow * RenderWindow
Proxy object to connect input/output ports.
abstract specification for renderers
draw an image in a rendered 3D scene
virtual void SetColorWindow(double s)
create a window for renderers to draw into
virtual void GetSliceRange(int &min, int &max)
virtual void SetSliceOrientationToYZ()
virtual void GetSliceRange(int range[2])
virtual void SetRenderWindow(vtkRenderWindow *arg)
Set your own renderwindow and renderer.