VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkAbstractMapper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAbstractMapper.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
=========================================================================*/
27
#ifndef __vtkAbstractMapper_h
28
#define __vtkAbstractMapper_h
29
30
#include "
vtkAlgorithm.h
"
31
32
#define VTK_SCALAR_MODE_DEFAULT 0
33
#define VTK_SCALAR_MODE_USE_POINT_DATA 1
34
#define VTK_SCALAR_MODE_USE_CELL_DATA 2
35
#define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA 3
36
#define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA 4
37
#define VTK_SCALAR_MODE_USE_FIELD_DATA 5
38
39
#define VTK_GET_ARRAY_BY_ID 0
40
#define VTK_GET_ARRAY_BY_NAME 1
41
42
class
vtkDataArray
;
43
class
vtkDataSet
;
44
class
vtkPlane
;
45
class
vtkPlaneCollection
;
46
class
vtkPlanes
;
47
class
vtkTimerLog
;
48
class
vtkWindow
;
49
50
class
VTK_FILTERING_EXPORT
vtkAbstractMapper
:
public
vtkAlgorithm
51
{
52
public
:
53
vtkTypeMacro(
vtkAbstractMapper
,
vtkAlgorithm
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent);
55
57
virtual
unsigned
long
GetMTime
();
58
62
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*) {};
63
65
66
vtkGetMacro( TimeToDraw,
double
);
68
70
72
void
AddClippingPlane(
vtkPlane
*plane);
73
void
RemoveClippingPlane(
vtkPlane
*plane);
74
void
RemoveAllClippingPlanes();
76
78
79
virtual
void
SetClippingPlanes(
vtkPlaneCollection
*);
80
vtkGetObjectMacro(ClippingPlanes,
vtkPlaneCollection
);
82
85
void
SetClippingPlanes(
vtkPlanes
*planes);
86
88
void
ShallowCopy(
vtkAbstractMapper
*m);
89
91
97
static
vtkDataArray
*GetScalars(
vtkDataSet
*input,
int
scalarMode,
98
int
arrayAccessMode,
int
arrayId,
99
const
char
*arrayName,
int
& cellFlag);
101
102
protected
:
103
vtkAbstractMapper
();
104
~
vtkAbstractMapper
();
105
106
vtkTimerLog
*
Timer
;
107
double
TimeToDraw
;
108
vtkWindow
*
LastWindow
;
// Window used for the previous render
109
vtkPlaneCollection
*
ClippingPlanes
;
110
111
private
:
112
vtkAbstractMapper
(
const
vtkAbstractMapper
&);
// Not implemented.
113
void
operator=(
const
vtkAbstractMapper
&);
// Not implemented.
114
};
115
116
#endif
117
118
Generated on Sun Sep 9 2012 13:03:27 for VTK by
1.8.1.2