VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkAbstractVolumeMapper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAbstractVolumeMapper.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
=========================================================================*/
26
#ifndef __vtkAbstractVolumeMapper_h
27
#define __vtkAbstractVolumeMapper_h
28
29
#include "
vtkAbstractMapper3D.h
"
30
31
class
vtkRenderer
;
32
class
vtkVolume
;
33
class
vtkWindow
;
34
class
vtkDataSet
;
35
36
class
VTK_RENDERING_EXPORT
vtkAbstractVolumeMapper
:
public
vtkAbstractMapper3D
37
{
38
public
:
39
vtkTypeMacro(
vtkAbstractVolumeMapper
,
vtkAbstractMapper3D
);
40
void
PrintSelf
( ostream& os,
vtkIndent
indent );
41
43
44
virtual
void
SetInput(
vtkDataSet
* );
45
vtkDataSet
*GetDataSetInput();
46
vtkDataObject
*GetDataObjectInput();
48
50
52
virtual
double
*
GetBounds
();
53
virtual
void
GetBounds
(
double
bounds[6])
54
{ this->
vtkAbstractMapper3D::GetBounds
(bounds); };
56
58
67
vtkSetMacro(ScalarMode,
int
);
68
vtkGetMacro(ScalarMode,
int
);
69
void
SetScalarModeToDefault
() {
70
this->SetScalarMode(
VTK_SCALAR_MODE_DEFAULT
);};
71
void
SetScalarModeToUsePointData
() {
72
this->SetScalarMode(
VTK_SCALAR_MODE_USE_POINT_DATA
);};
73
void
SetScalarModeToUseCellData
() {
74
this->SetScalarMode(
VTK_SCALAR_MODE_USE_CELL_DATA
);};
75
void
SetScalarModeToUsePointFieldData
() {
76
this->SetScalarMode(
VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
);};
77
void
SetScalarModeToUseCellFieldData
() {
78
this->SetScalarMode(
VTK_SCALAR_MODE_USE_CELL_FIELD_DATA
);};
80
82
86
virtual
void
SelectScalarArray(
int
arrayNum);
87
virtual
void
SelectScalarArray(
const
char
* arrayName);
89
91
92
virtual
char
*
GetArrayName
() {
return
this->ArrayName; }
93
virtual
int
GetArrayId
() {
return
this->ArrayId; }
94
virtual
int
GetArrayAccessMode
() {
return
this->ArrayAccessMode; }
96
98
const
char
*GetScalarModeAsString();
99
100
//BTX
102
103
virtual
float
GetGradientMagnitudeScale
() {
return
1.0f;};
104
virtual
float
GetGradientMagnitudeBias
() {
return
0.0f;};
105
virtual
float
GetGradientMagnitudeScale
(
int
) {
return
1.0f;};
106
virtual
float
GetGradientMagnitudeBias
(
int
) {
return
0.0f;};
108
109
112
virtual
void
Render(
vtkRenderer
*ren,
vtkVolume
*vol)=0;
113
118
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*) {};
119
120
//ETX
121
122
protected
:
123
vtkAbstractVolumeMapper
();
124
~
vtkAbstractVolumeMapper
();
125
126
// see algorithm for more info
127
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
128
129
int
ScalarMode
;
130
char
*
ArrayName
;
131
int
ArrayId
;
132
int
ArrayAccessMode
;
133
134
private
:
135
vtkAbstractVolumeMapper
(
const
vtkAbstractVolumeMapper
&);
// Not implemented.
136
void
operator=(
const
vtkAbstractVolumeMapper
&);
// Not implemented.
137
};
138
139
140
#endif
141
142
Generated on Wed Nov 21 2012 21:34:00 for VTK by
1.8.2