34 #ifndef __vtkImageViewer_h
35 #define __vtkImageViewer_h
37 #include "vtkInteractionImageModule.h"
38 #include "vtkObject.h"
40 #include "vtkImageMapper.h"
41 #include "vtkRenderWindow.h"
51 void PrintSelf(ostream& os, vtkIndent indent);
57 virtual void Render(
void);
61 void SetInputData(vtkImageData *in) {this->ImageMapper->SetInputData(in);};
62 vtkImageData *
GetInput() {
return this->ImageMapper->GetInput();};
64 this->ImageMapper->SetInputConnection(input);};
75 int GetZSlice() {
return this->ImageMapper->GetZSlice();};
76 void SetZSlice(
int s) {this->ImageMapper->SetZSlice(s);};
90 void SetWindowId(
void *a) {this->RenderWindow->SetWindowId(a);};
91 void SetParentId(
void *a) {this->RenderWindow->SetParentId(a);};
96 int *
GetPosition() {
return this->RenderWindow->GetPosition();};
97 void SetPosition(
int a,
int b) {this->RenderWindow->SetPosition(a,b);};
98 virtual void SetPosition(
int a[2]);
103 int *
GetSize() {
return this->RenderWindow->GetSize();};
104 void SetSize(
int a,
int b) {this->RenderWindow->SetSize(a,b);};
105 virtual void SetSize(
int a[2]);
110 vtkGetObjectMacro(RenderWindow,vtkRenderWindow);
111 vtkGetObjectMacro(Renderer, vtkRenderer);
112 vtkGetObjectMacro(ImageMapper,vtkImageMapper);
113 vtkGetObjectMacro(Actor2D,vtkActor2D);
117 void SetupInteractor(vtkRenderWindowInteractor *);
123 void SetOffScreenRendering(
int);
124 int GetOffScreenRendering();
125 void OffScreenRenderingOn();
126 void OffScreenRenderingOff();
141 friend class vtkImageViewerCallback;
vtkImageMapper * ImageMapper
vtkRenderWindowInteractor * Interactor
void SetColorWindow(double s)
void SetWindowId(void *a)
void SetParentId(void *a)
vtkInteractorStyleImage * InteractorStyle
Proxy object to connect input/output ports.
interactive manipulation of the camera specialized for images
void SetPosition(int a, int b)
Superclass for all sources, filters, and sinks in VTK.
vtkImageData * GetInput()
void SetColorLevel(double s)
void SetSize(int a, int b)
vtkRenderWindow * RenderWindow
virtual void SetInputConnection(vtkAlgorithmOutput *input)
void SetInputData(vtkImageData *in)
void SetDisplayId(void *a)