VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkCellCentersPointPlacer.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCellCentersPointPlacer.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 __vtkCellCentersPointPlacer_h
41
#define __vtkCellCentersPointPlacer_h
42
43
#include "
vtkPointPlacer.h
"
44
45
class
vtkRenderer
;
46
class
vtkPropCollection
;
47
class
vtkProp
;
48
class
vtkCellPicker
;
49
50
class
VTK_WIDGETS_EXPORT
vtkCellCentersPointPlacer
:
public
vtkPointPlacer
51
{
52
public
:
54
static
vtkCellCentersPointPlacer
*
New
();
55
57
58
vtkTypeMacro(
vtkCellCentersPointPlacer
,
vtkPointPlacer
);
59
void
PrintSelf
(ostream& os,
vtkIndent
indent);
61
62
// Descuription:
63
// Add an actor (that represents a terrain in a rendererd scene) to the
64
// list. Only props in this list are considered by the PointPlacer
65
virtual
void
AddProp(
vtkProp
* );
66
virtual
void
RemoveViewProp(
vtkProp
*prop);
67
virtual
void
RemoveAllProps();
68
int
HasProp(
vtkProp
* );
69
int
GetNumberOfProps();
70
72
77
virtual
int
ComputeWorldPosition
(
vtkRenderer
*ren,
78
double
displayPos[2],
79
double
worldPos[3],
80
double
worldOrient[9] );
82
84
87
virtual
int
ComputeWorldPosition
(
vtkRenderer
*ren,
88
double
displayPos[2],
89
double
refWorldPos[3],
90
double
worldPos[3],
91
double
worldOrient[9] );
93
96
virtual
int
ValidateWorldPosition
(
double
worldPos[3] );
97
99
virtual
int
ValidateDisplayPosition
(
vtkRenderer
*,
double
displayPos[2] );
100
102
104
virtual
int
ValidateWorldPosition
(
double
worldPos[3],
105
double
worldOrient[9] );
107
109
110
vtkGetObjectMacro( CellPicker,
vtkCellPicker
);
112
114
118
vtkSetMacro( Mode,
int
);
119
vtkGetMacro( Mode,
int
);
121
122
enum
123
{
124
ParametricCenter = 0,
125
CellPointsMean
,
126
None
127
};
128
129
protected
:
130
vtkCellCentersPointPlacer
();
131
~
vtkCellCentersPointPlacer
();
132
133
// The props that represents the terrain data (one or more) in a rendered
134
// scene
135
vtkPropCollection
*
PickProps
;
136
vtkCellPicker
*
CellPicker
;
137
int
Mode
;
138
139
private
:
140
vtkCellCentersPointPlacer
(
const
vtkCellCentersPointPlacer
&);
//Not implemented
141
void
operator=(
const
vtkCellCentersPointPlacer
&);
//Not implemented
142
};
143
144
#endif
Generated on Tue Jan 8 2013 05:45:40 for VTK by
1.8.1.2