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