VTK
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 =========================================================================*/
41 #ifndef vtkImageSlice_h
42 #define vtkImageSlice_h
43 
44 #include "vtkRenderingCoreModule.h" // For export macro
45 #include "vtkProp3D.h"
46 
47 class vtkRenderer;
48 class vtkPropCollection;
49 class vtkImageProperty;
50 class vtkImageMapper3D;
51 
52 class VTKRENDERINGCORE_EXPORT vtkImageSlice : public vtkProp3D
53 {
54 public:
55  vtkTypeMacro(vtkImageSlice,vtkProp3D);
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
63  static vtkImageSlice *New();
64 
66 
69  void SetMapper(vtkImageMapper3D *mapper);
70  vtkGetObjectMacro(Mapper, vtkImageMapper3D);
72 
74 
77  void SetProperty(vtkImageProperty *property);
78  virtual vtkImageProperty *GetProperty();
80 
84  void Update();
85 
87 
91  double *GetBounds() override;
92  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds( bounds ); };
93  double GetMinXBound();
94  double GetMaxXBound();
95  double GetMinYBound();
96  double GetMaxYBound();
97  double GetMinZBound();
98  double GetMaxZBound();
100 
104  vtkMTimeType GetMTime() override;
105 
112  vtkMTimeType GetRedrawMTime() override;
113 
115 
118  vtkGetMacro(ForceTranslucent, bool);
119  vtkSetMacro(ForceTranslucent, bool);
120  vtkBooleanMacro(ForceTranslucent, bool);
122 
126  void ShallowCopy(vtkProp *prop) override;
127 
133  void GetImages(vtkPropCollection *);
134 
136 
139  int RenderOverlay(vtkViewport *viewport) override;
140  int RenderOpaqueGeometry(vtkViewport *viewport) override;
141  int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override;
143 
149 
154  virtual void Render(vtkRenderer *);
155 
159  void ReleaseGraphicsResources(vtkWindow *win) override;
160 
167  void SetStackedImagePass(int pass);
168 
169 protected:
170  vtkImageSlice();
171  ~vtkImageSlice() override;
172 
175 
177 
178 private:
179  vtkImageSlice(const vtkImageSlice&) = delete;
180  void operator=(const vtkImageSlice&) = delete;
181 };
182 
183 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
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:92
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
abstract specification for Viewports
Definition: vtkViewport.h:47
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:296
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:230
image display properties
abstract specification for renderers
Definition: vtkRenderer.h:63
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
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:305
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual vtkMTimeType GetRedrawMTime()
Return the mtime of anything that would cause the rendered image to appear differently.
Definition: vtkProp.h:113
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:52
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:226
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.