VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
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
39
class
vtkImageSliceCollection
;
40
class
vtkImageProperty
;
41
class
vtkImageMapper3D
;
42
class
vtkCollection
;
43
44
class
VTK_RENDERING_EXPORT
vtkImageStack
:
public
vtkImageSlice
45
{
46
public
:
47
vtkTypeMacro(
vtkImageStack
,
vtkImageSlice
);
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
78
vtkImageMapper3D
*
GetMapper
();
79
81
vtkImageProperty
*
GetProperty
();
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
104
void
GetImages
(
vtkPropCollection
*);
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
117
void
ReleaseGraphicsResources
(
vtkWindow
*win);
118
120
122
void
InitPathTraversal
();
123
vtkAssemblyPath
*
GetNextPath
();
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
142
vtkTimeStamp
PathTime
;
143
vtkCollection
*
ImageMatrices
;
144
vtkImageSliceCollection
*
Images
;
145
int
ActiveLayer
;
146
147
private
:
148
vtkImageStack
(
const
vtkImageStack
&);
// Not implemented.
149
void
operator=(
const
vtkImageStack
&);
// Not implemented.
150
};
151
152
#endif
Generated on Tue Jan 8 2013 05:45:38 for VTK by
1.8.1.2