VTK
vtkImageStack.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageStack.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 =========================================================================*/
34 #ifndef __vtkImageStack_h
35 #define __vtkImageStack_h
36 
37 #include "vtkImageSlice.h"
38 
40 class vtkImageProperty;
41 class vtkImageMapper3D;
42 class vtkCollection;
43 
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49  static vtkImageStack *New();
50 
53  void AddImage(vtkImageSlice *prop);
54 
57  void RemoveImage(vtkImageSlice *prop);
58 
60  int HasImage(vtkImageSlice *prop);
61 
63  vtkImageSliceCollection *GetImages() { return this->Images; }
64 
66 
68  vtkSetMacro(ActiveLayer, int);
69  int GetActiveLayer() { return this->ActiveLayer; }
71 
75  vtkImageSlice *GetActiveImage();
76 
79 
82 
84 
85  double *GetBounds();
86  void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds( bounds ); };
88 
90  unsigned long int GetMTime();
91 
96  unsigned long GetRedrawMTime();
97 
99  void ShallowCopy(vtkProp *prop);
100 
105 
107 
108  virtual int RenderOverlay(vtkViewport *viewport);
109  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
110  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
112 
114  virtual int HasTranslucentPolygonalGeometry();
115 
118 
120 
122  void InitPathTraversal();
124  int GetNumberOfPaths();
126 
130  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path);
131 
132 protected:
133  vtkImageStack();
134  ~vtkImageStack();
135 
136  void SetMapper(vtkImageMapper3D *mapper);
137  void SetProperty(vtkImageProperty *property);
138 
139  void PokeMatrices(vtkMatrix4x4 *matrix);
140  void UpdatePaths();
141 
146 
147 private:
148  vtkImageStack(const vtkImageStack&); // Not implemented.
149  void operator=(const vtkImageStack&); // Not implemented.
150 };
151 
152 #endif