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 =========================================================================*/
40 #ifndef vtkImageSlice_h
41 #define vtkImageSlice_h
42 
43 #include "vtkRenderingCoreModule.h" // For export macro
44 #include "vtkProp3D.h"
45 
46 class vtkRenderer;
47 class vtkPropCollection;
48 class vtkImageProperty;
49 class vtkImageMapper3D;
50 
52 {
53 public:
54  vtkTypeMacro(vtkImageSlice,vtkProp3D);
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
60  static vtkImageSlice *New();
61 
63 
64  void SetMapper(vtkImageMapper3D *mapper);
65  vtkGetObjectMacro(Mapper, vtkImageMapper3D);
67 
69 
70  void SetProperty(vtkImageProperty *property);
71  virtual vtkImageProperty *GetProperty();
73 
75  void Update();
76 
78 
80  double *GetBounds();
81  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds( bounds ); };
82  double GetMinXBound();
83  double GetMaxXBound();
84  double GetMinYBound();
85  double GetMaxYBound();
86  double GetMinZBound();
87  double GetMaxZBound();
89 
91  unsigned long int GetMTime();
92 
97  unsigned long GetRedrawMTime();
98 
101  void ShallowCopy(vtkProp *prop);
102 
106  void GetImages(vtkPropCollection *);
107 
109 
110  virtual int RenderOverlay(vtkViewport *viewport);
111  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
112  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
114 
116  virtual int HasTranslucentPolygonalGeometry();
117 
120  virtual void Render(vtkRenderer *);
121 
124 
129  void SetStackedImagePass(int pass);
130 
131 protected:
132  vtkImageSlice();
133  ~vtkImageSlice();
134 
137 
138 private:
139  vtkImageSlice(const vtkImageSlice&); // Not implemented.
140  void operator=(const vtkImageSlice&); // Not implemented.
141 };
142 
143 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
void GetBounds(double bounds[6])
Definition: vtkImageSlice.h:81
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:198
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:262
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:204
image display properties
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void Update()
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:42
vtkImageProperty * Property
a list of Props
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:270
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
void ShallowCopy(vtkProp *prop)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract class for mapping images to the screen
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageMapper3D * Mapper
virtual unsigned long GetRedrawMTime()
Definition: vtkProp.h:103
represents an image in a 3D scene
Definition: vtkImageSlice.h:51
#define VTKRENDERINGCORE_EXPORT
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:200
virtual double * GetBounds()=0
static vtkObject * New()
unsigned long int GetMTime()