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);
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();
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 
105 
113 
115 
118  vtkGetMacro(ForceTranslucent, bool);
119  vtkSetMacro(ForceTranslucent, bool);
120  vtkBooleanMacro(ForceTranslucent, bool);
122 
126  void ShallowCopy(vtkProp *prop);
127 
133  void GetImages(vtkPropCollection *);
134 
136 
139  virtual int RenderOverlay(vtkViewport *viewport);
140  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
141  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
143 
148  virtual int HasTranslucentPolygonalGeometry();
149 
154  virtual void Render(vtkRenderer *);
155 
160 
167  void SetStackedImagePass(int pass);
168 
169 protected:
170  vtkImageSlice();
171  ~vtkImageSlice();
172 
175 
177 
178 private:
179  vtkImageSlice(const vtkImageSlice&) VTK_DELETE_FUNCTION;
180  void operator=(const vtkImageSlice&) VTK_DELETE_FUNCTION;
181 };
182 
183 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
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
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:222
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:294
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:228
image display properties
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void Update()
Updates the extensions string.
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
vtkImageProperty * Property
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
a list of Props
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:303
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:111
void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkProp3D.
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract class for mapping images to the screen
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageMapper3D * Mapper
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
represents an image in a 3D scene
Definition: vtkImageSlice.h:52
vtkMTimeType GetMTime()
Get the vtkProp3D's mtime.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:224
virtual double * GetBounds()=0
Return a reference to the Prop3D's composite transform.
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...