23 #ifndef vtkImageViewer_h
24 #define vtkImageViewer_h
26 #include "vtkInteractionImageModule.h"
32 VTK_ABI_NAMESPACE_BEGIN
51 virtual void Render();
61 this->ImageMapper->SetInputConnection(input);
77 int GetZSlice() {
return this->ImageMapper->GetZSlice(); }
78 void SetZSlice(
int s) { this->ImageMapper->SetZSlice(s); }
95 void SetDisplayId(
void* a) { this->RenderWindow->SetDisplayId(a); }
96 void SetWindowId(
void* a) { this->RenderWindow->SetWindowId(a); }
97 void SetParentId(
void* a) { this->RenderWindow->SetParentId(a); }
112 void SetPosition(
int x,
int y) { this->RenderWindow->SetPosition(x, y); }
113 virtual void SetPosition(
int a[2]);
131 void SetSize(
int width,
int height) { this->RenderWindow->SetSize(width, height); }
132 virtual void SetSize(
int a[2]);
159 void OffScreenRenderingOn();
160 void OffScreenRenderingOff();
175 friend class vtkImageViewerCallback;
183 VTK_ABI_NAMESPACE_END
int GetZSlice()
Set/Get the current Z Slice to display.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a actor that draws 2D data
vtkImageMapper * ImageMapper
vtkRenderWindowInteractor * Interactor
void SetColorWindow(double s)
Sets window/level for mapping pixels to colors.
void SetWindowId(void *a)
These are here for using a tk window.
abstract specification for renderers
void SetParentId(void *a)
These are here for using a tk window.
vtkInteractorStyleImage * InteractorStyle
double GetColorWindow()
Sets window/level for mapping pixels to colors.
Proxy object to connect input/output ports.
interactive manipulation of the camera specialized for images
platform-independent render window interaction including picking and frame rate control.
Superclass for all sources, filters, and sinks in VTK.
vtkImageData * GetInput()
Set/Get the input to the viewer.
void SetColorLevel(double s)
Sets window/level for mapping pixels to colors.
a simple class to control print indentation
void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
topologically and geometrically regular array of data
void SetZSlice(int s)
Set/Get the current Z Slice to display.
char * GetWindowName()
Get name of rendering window.
int GetWholeZMin()
What is the possible Min/ Max z slices available.
int * GetPosition()
Get the position (x and y) of the rendering window in screen coordinates (in pixels).
int * GetSize()
Get the size (width and height) of the rendering window in screen coordinates (in pixels)...
#define VTK_SIZEHINT(...)
create a window for renderers to draw into
double GetColorLevel()
Sets window/level for mapping pixels to colors.
vtkRenderWindow * RenderWindow
virtual void SetInputConnection(vtkAlgorithmOutput *input)
Set/Get the input to the viewer.
int GetWholeZMax()
What is the possible Min/ Max z slices available.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void SetInputData(vtkImageData *in)
Set/Get the input to the viewer.
void SetDisplayId(void *a)
These are here for using a tk window.
void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...