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 "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);
72  virtual vtkImageProperty* GetProperty();
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 
106  vtkMTimeType GetRedrawMTime() override;
107 
109 
112  vtkGetMacro(ForceTranslucent, bool);
113  vtkSetMacro(ForceTranslucent, bool);
114  vtkBooleanMacro(ForceTranslucent, bool);
116 
120  void ShallowCopy(vtkProp* prop) override;
121 
127  void GetImages(vtkPropCollection*);
128 
130 
133  int RenderOverlay(vtkViewport* viewport) override;
134  int RenderOpaqueGeometry(vtkViewport* viewport) override;
135  int RenderTranslucentPolygonalGeometry(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:
164  vtkImageSlice();
165  ~vtkImageSlice() override;
166 
169 
171 
172 private:
173  vtkImageSlice(const vtkImageSlice&) = delete;
174  void operator=(const vtkImageSlice&) = delete;
175 };
176 
177 #endif
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkProp::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:218
vtkProp3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkProp::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:215
vtkProp3D::GetBounds
double * GetBounds() override=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkProp::HasTranslucentPolygonalGeometry
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:279
vtkImageSlice
represents an image in a 3D scene
Definition: vtkImageSlice.h:46
vtkImageSlice::GetBounds
void GetBounds(double bounds[6])
Definition: vtkImageSlice.h:86
vtkImageProperty
image display properties
Definition: vtkImageProperty.h:36
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkProp3D::GetMTime
vtkMTimeType GetMTime() override
Get the vtkProp3D's mtime.
vtkImageSlice::Property
vtkImageProperty * Property
Definition: vtkImageSlice.h:168
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkProp::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:216
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
vtkImageMapper3D
abstract class for mapping images to the screen
Definition: vtkImageMapper3D.h:47
vtkProp3D::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:58
vtkImageSlice::Mapper
vtkImageMapper3D * Mapper
Definition: vtkImageSlice.h:167
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:35
vtkImageSlice::ForceTranslucent
bool ForceTranslucent
Definition: vtkImageSlice.h:170
vtkProp::GetRedrawMTime
virtual vtkMTimeType GetRedrawMTime()
Return the mtime of anything that would cause the rendered image to appear differently.
Definition: vtkProp.h:108
vtkProp::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:300
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:298
vtkProp3D.h