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 =========================================================================*/
37 #ifndef vtkTerrainDataPointPlacer_h
38 #define vtkTerrainDataPointPlacer_h
39 
40 #include "vtkInteractionWidgetsModule.h" // For export macro
41 #include "vtkPointPlacer.h"
42 
43 class vtkPropCollection;
44 class vtkProp;
45 class vtkPropPicker;
46 
47 class VTKINTERACTIONWIDGETS_EXPORT vtkTerrainDataPointPlacer : public vtkPointPlacer
48 {
49 public:
54 
56 
60  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
62 
63  // Descuription:
64  // Add an actor (that represents a terrain in a rendererd scene) to the
65  // list. Only props in this list are considered by the PointPlacer
66  virtual void AddProp( vtkProp * );
67  virtual void RemoveAllProps();
68 
70 
76  vtkSetMacro(HeightOffset,double);
77  vtkGetMacro(HeightOffset,double);
79 
89  double displayPos[2],
90  double worldPos[3],
91  double worldOrient[9] ) VTK_OVERRIDE;
92 
100  double displayPos[2],
101  double refWorldPos[3],
102  double worldPos[3],
103  double worldOrient[9] ) VTK_OVERRIDE;
104 
109  int ValidateWorldPosition( double worldPos[3] ) VTK_OVERRIDE;
110 
114  int ValidateDisplayPosition( vtkRenderer *, double displayPos[2] ) VTK_OVERRIDE;
115 
120  int ValidateWorldPosition( double worldPos[3],
121  double worldOrient[9] ) VTK_OVERRIDE;
122 
124 
127  vtkGetObjectMacro( PropPicker, vtkPropPicker );
129 
130 protected:
132  ~vtkTerrainDataPointPlacer() VTK_OVERRIDE;
133 
134  // The props that represents the terrain data (one or more) in a rendered
135  // scene
136  vtkPropCollection *TerrainProps;
137  vtkPropPicker *PropPicker;
138  double HeightOffset;
139 
140 private:
141  vtkTerrainDataPointPlacer(const vtkTerrainDataPointPlacer&) VTK_DELETE_FUNCTION;
142  void operator=(const vtkTerrainDataPointPlacer&) VTK_DELETE_FUNCTION;
143 };
144 
145 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:44
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...
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:39
abstract specification for renderers
Definition: vtkRenderer.h:57
Place points on terrain data.
an ordered list of Props
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int ValidateDisplayPosition(vtkRenderer *, double displayPos[2])
Given a display position, check the validity of this position.
Abstract interface to translate 2D display positions to world coordinates.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int ValidateWorldPosition(double worldPos[3])
Given a world position check the validity of this position according to the constraints of the placer...
static vtkPointPlacer * New()
Instantiate this class.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.