VTK  9.2.6
vtkImageSlice.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageSlice.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
47#ifndef vtkImageSlice_h
48#define vtkImageSlice_h
49
50#include "vtkProp3D.h"
51#include "vtkRenderingCoreModule.h" // For export macro
52
53class vtkRenderer;
57
58class VTKRENDERINGCORE_EXPORT vtkImageSlice : public vtkProp3D
59{
60public:
61 vtkTypeMacro(vtkImageSlice, vtkProp3D);
62 void PrintSelf(ostream& os, vtkIndent indent) override;
63
69 static vtkImageSlice* New();
70
72
76 vtkGetObjectMacro(Mapper, vtkImageMapper3D);
78
80
86
90 void Update();
91
93
97 double* GetBounds() override;
98 void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds(bounds); }
99 double GetMinXBound();
100 double GetMaxXBound();
101 double GetMinYBound();
102 double GetMaxYBound();
103 double GetMinZBound();
104 double GetMaxZBound();
106
111
119
121
124 vtkGetMacro(ForceTranslucent, bool);
125 vtkSetMacro(ForceTranslucent, bool);
126 vtkBooleanMacro(ForceTranslucent, bool);
128
132 void ShallowCopy(vtkProp* prop) override;
133
140
142
145 int RenderOverlay(vtkViewport* viewport) override;
146 int RenderOpaqueGeometry(vtkViewport* viewport) override;
149
155
160 virtual void Render(vtkRenderer*);
161
166
173 void SetStackedImagePass(int pass);
174
175protected:
177 ~vtkImageSlice() override;
178
181
183
184private:
185 vtkImageSlice(const vtkImageSlice&) = delete;
186 void operator=(const vtkImageSlice&) = delete;
187};
188
189#endif
abstract class for mapping images to the screen
image display properties
represents an image in a 3D scene
virtual void Render(vtkRenderer *)
This causes the image and its mapper to be rendered.
double GetMaxYBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkMTimeType GetMTime() override
Return the MTime also considering the property etc.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageMapper3D * Mapper
double GetMinXBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
double GetMinZBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
double GetMinYBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
double GetMaxZBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
void Update()
Update the rendering pipeline by updating the ImageMapper.
virtual vtkImageProperty * GetProperty()
Set/Get the image display properties.
static vtkImageSlice * New()
Creates an Image with the following defaults: origin(0,0,0) position=(0,0,0) scale=1 visibility=1 pic...
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
void SetProperty(vtkImageProperty *property)
Set/Get the image display properties.
void SetMapper(vtkImageMapper3D *mapper)
Set/Get the mapper.
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
double * GetBounds() override
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
void SetStackedImagePass(int pass)
For stacked image rendering, set the pass.
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkImageSlice.
vtkMTimeType GetRedrawMTime() override
Return the mtime of anything that would cause the rendered image to appear differently.
void ReleaseGraphicsResources(vtkWindow *win) override
Release any resources held by this prop.
void GetImages(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors,...
~vtkImageSlice() override
double GetMaxXBound()
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
vtkImageProperty * Property
vtkTypeBool HasTranslucentPolygonalGeometry() override
Internal method, should only be used by rendering.
void GetBounds(double bounds[6])
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time.
a simple class to control print indentation
Definition vtkIndent.h:49
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:59
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:66
abstract specification for renderers
Definition vtkRenderer.h:82
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287