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 =========================================================================*/
38 #ifndef vtkImageSlice_h
39 #define vtkImageSlice_h
40 
41 #include "vtkProp3D.h"
42 #include "vtkRenderingCoreModule.h" // For export macro
43 
44 class vtkRenderer;
45 class vtkPropCollection;
46 class vtkImageProperty;
47 class vtkImageMapper3D;
48 
49 class VTKRENDERINGCORE_EXPORT vtkImageSlice : public vtkProp3D
50 {
51 public:
52  vtkTypeMacro(vtkImageSlice, vtkProp3D);
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
60  static vtkImageSlice* New();
61 
63 
66  void SetMapper(vtkImageMapper3D* mapper);
67  vtkGetObjectMacro(Mapper, vtkImageMapper3D);
69 
71 
74  void SetProperty(vtkImageProperty* property);
75  virtual vtkImageProperty* GetProperty();
77 
81  void Update();
82 
84 
88  double* GetBounds() override;
89  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds(bounds); }
90  double GetMinXBound();
91  double GetMaxXBound();
92  double GetMinYBound();
93  double GetMaxYBound();
94  double GetMinZBound();
95  double GetMaxZBound();
97 
101  vtkMTimeType GetMTime() override;
102 
109  vtkMTimeType GetRedrawMTime() override;
110 
112 
115  vtkGetMacro(ForceTranslucent, bool);
116  vtkSetMacro(ForceTranslucent, bool);
117  vtkBooleanMacro(ForceTranslucent, bool);
119 
123  void ShallowCopy(vtkProp* prop) override;
124 
130  void GetImages(vtkPropCollection*);
131 
133 
136  int RenderOverlay(vtkViewport* viewport) override;
137  int RenderOpaqueGeometry(vtkViewport* viewport) override;
138  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
140 
146 
151  virtual void Render(vtkRenderer*);
152 
156  void ReleaseGraphicsResources(vtkWindow* win) override;
157 
164  void SetStackedImagePass(int pass);
165 
166 protected:
167  vtkImageSlice();
168  ~vtkImageSlice() override;
169 
172 
174 
175 private:
176  vtkImageSlice(const vtkImageSlice&) = delete;
177  void operator=(const vtkImageSlice&) = delete;
178 };
179 
180 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:56
void GetBounds(double bounds[6])
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time...
Definition: vtkImageSlice.h:89
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
abstract specification for Viewports
Definition: vtkViewport.h:55
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:224
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:288
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:227
image display properties
abstract specification for renderers
Definition: vtkRenderer.h:72
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:49
vtkImageProperty * Property
an ordered list of Props
int vtkTypeBool
Definition: vtkABI.h:69
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:309
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
virtual vtkMTimeType GetRedrawMTime()
Return the mtime of anything that would cause the rendered image to appear differently.
Definition: vtkProp.h:117
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract class for mapping images to the screen
vtkImageMapper3D * Mapper
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
represents an image in a 3D scene
Definition: vtkImageSlice.h:49
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:225
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkMTimeType GetMTime() override
Get the vtkProp3D's mtime.