32 #ifndef vtkImageViewer_h
33 #define vtkImageViewer_h
35 #include "vtkInteractionImageModule.h"
41 VTK_ABI_NAMESPACE_BEGIN
70 this->ImageMapper->SetInputConnection(input);
86 int GetZSlice() {
return this->ImageMapper->GetZSlice(); }
87 void SetZSlice(
int s) { this->ImageMapper->SetZSlice(s); }
121 void SetPosition(
int x,
int y) { this->RenderWindow->SetPosition(x, y); }
184 friend class vtkImageViewerCallback;
192 VTK_ABI_NAMESPACE_END
a actor that draws 2D data
Proxy object to connect input/output ports.
Superclass for all sources, filters, and sinks in VTK.
topologically and geometrically regular array of data
void SetColorLevel(double s)
Sets window/level for mapping pixels to colors.
virtual void SetInputConnection(vtkAlgorithmOutput *input)
Set/Get the input to the viewer.
void SetInputData(vtkImageData *in)
Set/Get the input to the viewer.
void SetZSlice(int s)
Set/Get the current Z Slice to display.
vtkImageMapper * ImageMapper
vtkImageData * GetInput()
Set/Get the input to the viewer.
vtkAlgorithm * GetInputAlgorithm()
void SetRenderWindow(vtkRenderWindow *renWin)
Get the internal objects.
void OffScreenRenderingOff()
Create a window in memory instead of on the screen.
vtkInteractorStyleImage * InteractorStyle
int * GetSize()
Get the size (width and height) of the rendering window in screen coordinates (in pixels).
void OffScreenRenderingOn()
Create a window in memory instead of on the screen.
int * GetPosition()
Get the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual void Render()
Render the resulting image.
void SetOffScreenRendering(vtkTypeBool)
Create a window in memory instead of on the screen.
double GetColorLevel()
Sets window/level for mapping pixels to colors.
static vtkImageViewer * New()
void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetColorWindow(double s)
Sets window/level for mapping pixels to colors.
void SetParentId(void *a)
These are here for using a tk window.
void SetWindowId(void *a)
These are here for using a tk window.
void SetDisplayId(void *a)
These are here for using a tk window.
double GetColorWindow()
Sets window/level for mapping pixels to colors.
void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
int GetZSlice()
Set/Get the current Z Slice to display.
int GetWholeZMin()
What is the possible Min/ Max z slices available.
~vtkImageViewer() override
vtkTypeBool GetOffScreenRendering()
Create a window in memory instead of on the screen.
void SetupInteractor(vtkRenderWindowInteractor *)
Create and attach an interactor for this window.
int GetWholeZMax()
What is the possible Min/ Max z slices available.
vtkRenderWindowInteractor * Interactor
virtual void SetPosition(int a[2])
Get the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual void SetSize(int a[2])
Get the size (width and height) of the rendering window in screen coordinates (in pixels).
vtkRenderWindow * RenderWindow
char * GetWindowName()
Get name of rendering window.
a simple class to control print indentation
interactive manipulation of the camera specialized for images
abstract base class for most VTK objects
platform-independent render window interaction including picking and frame rate control.
create a window for renderers to draw into
abstract specification for renderers
#define VTK_SIZEHINT(...)