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 =========================================================================*/
35 #ifndef vtkImageSlice_h
36 #define vtkImageSlice_h
37 
38 #include "vtkRenderingCoreModule.h" // For export macro
39 #include "vtkProp3D.h"
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) VTK_OVERRIDE;
51 
57  static vtkImageSlice *New();
58 
60 
63  void SetMapper(vtkImageMapper3D *mapper);
64  vtkGetObjectMacro(Mapper, vtkImageMapper3D);
66 
68 
71  void SetProperty(vtkImageProperty *property);
72  virtual vtkImageProperty *GetProperty();
74 
78  void Update();
79 
81 
85  double *GetBounds() VTK_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() VTK_OVERRIDE;
99 
106  vtkMTimeType GetRedrawMTime() VTK_OVERRIDE;
107 
109 
112  vtkGetMacro(ForceTranslucent, bool);
113  vtkSetMacro(ForceTranslucent, bool);
114  vtkBooleanMacro(ForceTranslucent, bool);
116 
120  void ShallowCopy(vtkProp *prop) VTK_OVERRIDE;
121 
127  void GetImages(vtkPropCollection *);
128 
130 
133  int RenderOverlay(vtkViewport *viewport) VTK_OVERRIDE;
134  int RenderOpaqueGeometry(vtkViewport *viewport) VTK_OVERRIDE;
135  int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) VTK_OVERRIDE;
137 
142  int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
143 
148  virtual void Render(vtkRenderer *);
149 
153  void ReleaseGraphicsResources(vtkWindow *win) VTK_OVERRIDE;
154 
161  void SetStackedImagePass(int pass);
162 
163 protected:
164  vtkImageSlice();
165  ~vtkImageSlice() VTK_OVERRIDE;
166 
168  vtkImageProperty *Property;
169 
170  bool ForceTranslucent;
171 
172 private:
173  vtkImageSlice(const vtkImageSlice&) VTK_DELETE_FUNCTION;
174  void operator=(const vtkImageSlice&) VTK_DELETE_FUNCTION;
175 };
176 
177 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:44
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
abstract specification for Viewports
Definition: vtkViewport.h:44
image display properties
abstract specification for renderers
Definition: vtkRenderer.h:57
virtual void Update()
Updates the extensions string.
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
an ordered list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract class for mapping images to the screen
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
represents an image in a 3D scene
Definition: vtkImageSlice.h:46
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.