VTK  9.0.1
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 =========================================================================*/
35 #ifndef vtkImageSlice_h
36 #define vtkImageSlice_h
37 
38 #include "vtkProp3D.h"
39 #include "vtkRenderingCoreModule.h" // For export macro
40 
41 class vtkRenderer;
42 class vtkPropCollection;
43 class vtkImageProperty;
44 class vtkImageMapper3D;
45 
46 class VTKRENDERINGCORE_EXPORT vtkImageSlice : public vtkProp3D
47 {
48 public:
49  vtkTypeMacro(vtkImageSlice, vtkProp3D);
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
57  static vtkImageSlice* New();
58 
60 
63  void SetMapper(vtkImageMapper3D* mapper);
64  vtkGetObjectMacro(Mapper, vtkImageMapper3D);
66 
68 
71  void SetProperty(vtkImageProperty* property);
74 
78  void Update();
79 
81 
85  double* GetBounds() override;
86  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds(bounds); }
87  double GetMinXBound();
88  double GetMaxXBound();
89  double GetMinYBound();
90  double GetMaxYBound();
91  double GetMinZBound();
92  double GetMaxZBound();
94 
98  vtkMTimeType GetMTime() override;
99 
107 
109 
112  vtkGetMacro(ForceTranslucent, bool);
113  vtkSetMacro(ForceTranslucent, bool);
114  vtkBooleanMacro(ForceTranslucent, bool);
116 
120  void ShallowCopy(vtkProp* prop) override;
121 
128 
130 
133  int RenderOverlay(vtkViewport* viewport) override;
134  int RenderOpaqueGeometry(vtkViewport* viewport) override;
137 
143 
148  virtual void Render(vtkRenderer*);
149 
153  void ReleaseGraphicsResources(vtkWindow* win) override;
154 
161  void SetStackedImagePass(int pass);
162 
163 protected:
165  ~vtkImageSlice() override;
166 
169 
171 
172 private:
173  vtkImageSlice(const vtkImageSlice&) = delete;
174  void operator=(const vtkImageSlice&) = delete;
175 };
176 
177 #endif
abstract class for mapping images to the screen
image display properties
represents an image in a 3D scene
Definition: vtkImageSlice.h:47
virtual void Render(vtkRenderer *)
This causes the image and its mapper to be rendered.
double GetMaxYBound()
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()
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
double GetMinZBound()
double GetMinYBound()
double GetMaxZBound()
void Update()
Update the rendering pipeline by updating the ImageMapper.
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
static vtkImageSlice * New()
Creates an Image with the following defaults: origin(0,0,0) position=(0,0,0) scale=1 visibility=1 pic...
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.
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()
virtual vtkImageProperty * GetProperty()
double * GetBounds() override
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])
Definition: vtkImageSlice.h:86
a simple class to control print indentation
Definition: vtkIndent.h:34
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:44
double * GetBounds() override=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:54
abstract specification for renderers
Definition: vtkRenderer.h:68
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293