VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkPolyDataPointPlacer.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPolyDataPointPlacer.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
=========================================================================*/
33
#ifndef __vtkPolyDataPointPlacer_h
34
#define __vtkPolyDataPointPlacer_h
35
36
#include "vtkInteractionWidgetsModule.h"
// For export macro
37
#include "
vtkPointPlacer.h
"
38
39
class
vtkRenderer
;
40
class
vtkPropCollection
;
41
class
vtkProp
;
42
class
vtkPropPicker
;
43
44
class
VTKINTERACTIONWIDGETS_EXPORT
vtkPolyDataPointPlacer
:
public
vtkPointPlacer
45
{
46
public
:
48
static
vtkPolyDataPointPlacer
*
New
();
49
51
52
vtkTypeMacro(
vtkPolyDataPointPlacer
,
vtkPointPlacer
);
53
void
PrintSelf
(ostream& os,
vtkIndent
indent);
55
56
// Descuription:
57
// Add an actor (that represents a terrain in a rendererd scene) to the
58
// list. Only props in this list are considered by the PointPlacer
59
virtual
void
AddProp(
vtkProp
* );
60
virtual
void
RemoveViewProp(
vtkProp
*prop);
61
virtual
void
RemoveAllProps();
62
int
HasProp(
vtkProp
* );
63
int
GetNumberOfProps();
64
66
71
virtual
int
ComputeWorldPosition
(
vtkRenderer
*ren,
72
double
displayPos[2],
73
double
worldPos[3],
74
double
worldOrient[9] );
76
78
81
virtual
int
ComputeWorldPosition
(
vtkRenderer
*ren,
82
double
displayPos[2],
83
double
refWorldPos[3],
84
double
worldPos[3],
85
double
worldOrient[9] );
87
90
virtual
int
ValidateWorldPosition
(
double
worldPos[3] );
91
93
virtual
int
ValidateDisplayPosition
(
vtkRenderer
*,
double
displayPos[2] );
94
96
98
virtual
int
ValidateWorldPosition
(
double
worldPos[3],
99
double
worldOrient[9] );
101
103
104
vtkGetObjectMacro( PropPicker,
vtkPropPicker
);
106
107
protected
:
108
vtkPolyDataPointPlacer
();
109
~
vtkPolyDataPointPlacer
();
110
111
// The props that represents the terrain data (one or more) in a rendered
112
// scene
113
vtkPropCollection
*
SurfaceProps
;
114
vtkPropPicker
*
PropPicker
;
115
116
private
:
117
vtkPolyDataPointPlacer
(
const
vtkPolyDataPointPlacer
&);
//Not implemented
118
void
operator=(
const
vtkPolyDataPointPlacer
&);
//Not implemented
119
};
120
121
#endif
122
Generated on Thu May 24 2012 22:22:28 for VTK by
1.8.1