VTK
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=========================================================================*/
40#ifndef vtkTerrainDataPointPlacer_h
41#define vtkTerrainDataPointPlacer_h
42
43#include "vtkInteractionWidgetsModule.h" // For export macro
44#include "vtkPointPlacer.h"
45
47class vtkProp;
48class vtkPropPicker;
49
50class VTKINTERACTIONWIDGETS_EXPORT vtkTerrainDataPointPlacer : public vtkPointPlacer
51{
52public:
57
59
63 void PrintSelf(ostream& os, vtkIndent indent);
65
66 // Descuription:
67 // Add an actor (that represents a terrain in a rendererd scene) to the
68 // list. Only props in this list are considered by the PointPlacer
69 virtual void AddProp( vtkProp * );
70 virtual void RemoveAllProps();
71
73
79 vtkSetMacro(HeightOffset,double);
80 vtkGetMacro(HeightOffset,double);
82
92 double displayPos[2],
93 double worldPos[3],
94 double worldOrient[9] );
95
103 double displayPos[2],
104 double refWorldPos[3],
105 double worldPos[3],
106 double worldOrient[9] );
107
112 virtual int ValidateWorldPosition( double worldPos[3] );
113
117 virtual int ValidateDisplayPosition( vtkRenderer *, double displayPos[2] );
118
123 virtual int ValidateWorldPosition( double worldPos[3],
124 double worldOrient[9] );
125
127
130 vtkGetObjectMacro( PropPicker, vtkPropPicker );
132
133protected:
136
137 // The props that represents the terrain data (one or more) in a rendered
138 // scene
142
143private:
144 vtkTerrainDataPointPlacer(const vtkTerrainDataPointPlacer&) VTK_DELETE_FUNCTION;
145 void operator=(const vtkTerrainDataPointPlacer&) VTK_DELETE_FUNCTION;
146};
147
148#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Abstract interface to translate 2D display positions to world coordinates.
a list of Props
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:43
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
abstract specification for renderers
Definition: vtkRenderer.h:64
Place points on terrain data.
virtual void RemoveAllProps()
virtual int ValidateWorldPosition(double worldPos[3], double worldOrient[9])
Given a world position and a world orientation, validate it according to the constraints of the place...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int ValidateWorldPosition(double worldPos[3])
Given a world position check the validity of this position according to the constraints of the placer...
static vtkTerrainDataPointPlacer * New()
Instantiate this class.
virtual void AddProp(vtkProp *)
virtual int ValidateDisplayPosition(vtkRenderer *, double displayPos[2])
Given a display position, check the validity of this position.
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double refWorldPos[3], double worldPos[3], double worldOrient[9])
Given a renderer, a display position, and a reference world position, compute the new world position ...
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
Given a renderer and a display position in pixel coordinates, compute the world position and orientat...
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.