30 #ifndef vtkPVImageSliceMapper_h 31 #define vtkPVImageSliceMapper_h 33 #include "vtkMapper.h" 34 #include "vtkPVClientServerCoreRenderingModule.h" 35 #include "vtkStructuredData.h" 41 class vtkOpenGLTexture;
51 void PrintSelf(ostream& os, vtkIndent indent);
56 virtual void Render(vtkRenderer* ren, vtkActor* act);
58 virtual void ReleaseGraphicsResources(vtkWindow*);
64 void SetPainter(vtkPainter*);
65 vtkGetObjectMacro(Painter, vtkPainter);
72 void SetInputData(vtkImageData* in);
73 virtual vtkImageData* GetInput();
80 vtkSetMacro(Slice,
int);
81 vtkGetMacro(Slice,
int);
86 XY_PLANE = VTK_XY_PLANE,
87 YZ_PLANE = VTK_YZ_PLANE,
88 XZ_PLANE = VTK_XZ_PLANE,
91 vtkSetClampMacro(SliceMode,
int, XY_PLANE, XZ_PLANE);
92 vtkGetMacro(SliceMode,
int);
102 vtkSetClampMacro(UseXYPlane,
int, 0, 1);
103 vtkBooleanMacro(UseXYPlane,
int);
104 vtkGetMacro(UseXYPlane,
int);
110 virtual void Update(
int port);
111 virtual void Update() { this->Superclass::Update(); }
112 virtual int Update(
int port, vtkInformationVector* requests)
114 return this->Superclass::Update(port, requests);
116 virtual int Update(vtkInformation* requests) {
return this->Superclass::Update(requests); }
122 vtkSetMacro(Piece,
int);
123 vtkGetMacro(Piece,
int);
124 vtkSetMacro(NumberOfPieces,
int);
125 vtkGetMacro(NumberOfPieces,
int);
126 vtkSetMacro(NumberOfSubPieces,
int);
127 vtkGetMacro(NumberOfSubPieces,
int);
134 vtkSetMacro(GhostLevel,
int);
135 vtkGetMacro(GhostLevel,
int);
143 virtual double* GetBounds();
144 virtual void GetBounds(
double bounds[6]) { this->Superclass::GetBounds(bounds); };
150 virtual void ShallowCopy(vtkAbstractMapper* m);
157 virtual int FillInputPortInformation(
int, vtkInformation*);
162 virtual void RenderPiece(vtkRenderer* ren, vtkActor* act);
165 vtkOpenGLTexture* Texture;
166 int SetupScalars(vtkImageData*);
167 void RenderInternal(vtkRenderer* ren, vtkActor* act);
168 vtkTimeStamp UpdateTime;
169 vtkActor* PolyDataActor;
175 void UpdatePainterInformation();
vtkTimeStamp PainterInformationUpdateTime
virtual int Update(int port, vtkInformationVector *requests)
vtkInformation * PainterInformation
virtual void GetBounds(double bounds[6])
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
virtual int Update(vtkInformation *requests)
void SetSliceModeToYZPlane()
Mapper for vtkImageData that renders the image using a texture applied to a quad. ...
void SetSliceModeToXYPlane()
void SetSliceModeToXZPlane()