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 "vtkProp3D.h"
44 
45 class vtkRenderer;
46 class vtkPropCollection;
47 class vtkImageProperty;
48 class vtkImageMapper3D;
49 
51 {
52 public:
53  vtkTypeMacro(vtkImageSlice,vtkProp3D);
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
59  static vtkImageSlice *New();
60 
62 
63  void SetMapper(vtkImageMapper3D *mapper);
64  vtkGetObjectMacro(Mapper, vtkImageMapper3D);
66 
68 
69  void SetProperty(vtkImageProperty *property);
70  virtual vtkImageProperty *GetProperty();
72 
74  void Update();
75 
77 
79  double *GetBounds();
80  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds( bounds ); };
81  double GetMinXBound();
82  double GetMaxXBound();
83  double GetMinYBound();
84  double GetMaxYBound();
85  double GetMinZBound();
86  double GetMaxZBound();
88 
90  unsigned long int GetMTime();
91 
96  unsigned long GetRedrawMTime();
97 
100  void ShallowCopy(vtkProp *prop);
101 
105  void GetImages(vtkPropCollection *);
106 
108 
109  virtual int RenderOverlay(vtkViewport *viewport);
110  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
111  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
113 
115  virtual int HasTranslucentPolygonalGeometry();
116 
119  virtual void Render(vtkRenderer *);
120 
123 
128  void SetStackedImagePass(int pass);
129 
130 protected:
131  vtkImageSlice();
132  ~vtkImageSlice();
133 
136 
137 private:
138  vtkImageSlice(const vtkImageSlice&); // Not implemented.
139  void operator=(const vtkImageSlice&); // Not implemented.
140 };
141 
142 #endif