VTK  9.4.20251007
vtkImageSlice.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
28
29#ifndef vtkImageSlice_h
30#define vtkImageSlice_h
31
32#include "vtkProp3D.h"
33#include "vtkRenderingCoreModule.h" // For export macro
34#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
35
36VTK_ABI_NAMESPACE_BEGIN
37class vtkRenderer;
41
42class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkImageSlice : public vtkProp3D
43{
44public:
45 vtkTypeMacro(vtkImageSlice, vtkProp3D);
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
53 static vtkImageSlice* New();
54
56
60 vtkGetObjectMacro(Mapper, vtkImageMapper3D);
62
64
70
74 void Update();
75
77
81 double* GetBounds() override;
82 void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds(bounds); }
83 double GetMinXBound();
84 double GetMaxXBound();
85 double GetMinYBound();
86 double GetMaxYBound();
87 double GetMinZBound();
88 double GetMaxZBound();
90
95
103
105
108 vtkGetMacro(ForceTranslucent, bool);
109 vtkSetMacro(ForceTranslucent, bool);
110 vtkBooleanMacro(ForceTranslucent, bool);
112
116 void ShallowCopy(vtkProp* prop) override;
117
124
126
129 int RenderOverlay(vtkViewport* viewport) override;
130 int RenderOpaqueGeometry(vtkViewport* viewport) override;
133
139
144 virtual void Render(vtkRenderer*);
145
150
157 void SetStackedImagePass(int pass);
158
159protected:
161 ~vtkImageSlice() override;
162
165
167
168private:
169 vtkImageSlice(const vtkImageSlice&) = delete;
170 void operator=(const vtkImageSlice&) = delete;
171};
172
173VTK_ABI_NAMESPACE_END
174#endif
abstract class for mapping images to the screen
image display properties
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:29
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
an ordered list of Props
abstract specification for renderers
Definition vtkRenderer.h:63
abstract specification for Viewports
Definition vtkViewport.h:46
window superclass for vtkRenderWindow
Definition vtkWindow.h:29
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_MARSHALAUTO