VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkTerrainDataPointPlacer.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTerrainDataPointPlacer.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
=========================================================================*/
39
#ifndef __vtkTerrainDataPointPlacer_h
40
#define __vtkTerrainDataPointPlacer_h
41
42
#include "vtkInteractionWidgetsModule.h"
// For export macro
43
#include "
vtkPointPlacer.h
"
44
45
class
vtkPropCollection
;
46
class
vtkProp
;
47
class
vtkPropPicker
;
48
49
class
VTKINTERACTIONWIDGETS_EXPORT
vtkTerrainDataPointPlacer
:
public
vtkPointPlacer
50
{
51
public
:
53
static
vtkTerrainDataPointPlacer
*
New
();
54
56
57
vtkTypeMacro(
vtkTerrainDataPointPlacer
,
vtkPointPlacer
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent);
60
61
// Descuription:
62
// Add an actor (that represents a terrain in a rendererd scene) to the
63
// list. Only props in this list are considered by the PointPlacer
64
virtual
void
AddProp(
vtkProp
* );
65
virtual
void
RemoveAllProps();
66
68
72
vtkSetMacro(HeightOffset,
double
);
73
vtkGetMacro(HeightOffset,
double
);
75
77
82
virtual
int
ComputeWorldPosition
(
vtkRenderer
*ren,
83
double
displayPos[2],
84
double
worldPos[3],
85
double
worldOrient[9] );
87
89
92
virtual
int
ComputeWorldPosition
(
vtkRenderer
*ren,
93
double
displayPos[2],
94
double
refWorldPos[3],
95
double
worldPos[3],
96
double
worldOrient[9] );
98
101
virtual
int
ValidateWorldPosition
(
double
worldPos[3] );
102
104
virtual
int
ValidateDisplayPosition
(
vtkRenderer
*,
double
displayPos[2] );
105
107
109
virtual
int
ValidateWorldPosition
(
double
worldPos[3],
110
double
worldOrient[9] );
112
114
115
vtkGetObjectMacro( PropPicker,
vtkPropPicker
);
117
118
protected
:
119
vtkTerrainDataPointPlacer
();
120
~
vtkTerrainDataPointPlacer
();
121
122
// The props that represents the terrain data (one or more) in a rendered
123
// scene
124
vtkPropCollection
*
TerrainProps
;
125
vtkPropPicker
*
PropPicker
;
126
double
HeightOffset
;
127
128
private
:
129
vtkTerrainDataPointPlacer
(
const
vtkTerrainDataPointPlacer
&);
//Not implemented
130
void
operator=(
const
vtkTerrainDataPointPlacer
&);
//Not implemented
131
};
132
133
#endif
Generated on Thu May 24 2012 22:22:28 for VTK by
1.8.1