VTK  9.1.0
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
44class vtkProp;
45class vtkPropPicker;
46
47class VTKINTERACTIONWIDGETS_EXPORT vtkTerrainDataPointPlacer : public vtkPointPlacer
48{
49public:
54
56
60 void PrintSelf(ostream& os, vtkIndent indent) 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 vtkRenderer* ren, double displayPos[2], double worldPos[3], double worldOrient[9]) override;
90
97 int ComputeWorldPosition(vtkRenderer* ren, double displayPos[2], double refWorldPos[3],
98 double worldPos[3], double worldOrient[9]) override;
99
104 int ValidateWorldPosition(double worldPos[3]) override;
105
109 int ValidateDisplayPosition(vtkRenderer*, double displayPos[2]) override;
110
115 int ValidateWorldPosition(double worldPos[3], double worldOrient[9]) override;
116
118
121 vtkGetObjectMacro(PropPicker, vtkPropPicker);
123
124protected:
127
128 // The props that represents the terrain data (one or more) in a rendered
129 // scene
133
134private:
136 void operator=(const vtkTerrainDataPointPlacer&) = delete;
137};
138
139#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Abstract interface to translate 2D display positions to world coordinates.
an ordered list of Props
pick an actor/prop using graphics hardware
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:67
abstract specification for renderers
Definition: vtkRenderer.h:173
Place points on terrain data.
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double refWorldPos[3], double worldPos[3], double worldOrient[9]) override
Given a renderer, a display position, and a reference world position, compute the new world position ...
virtual void RemoveAllProps()
int ValidateDisplayPosition(vtkRenderer *, double displayPos[2]) override
Given a display position, check the validity of this position.
int ValidateWorldPosition(double worldPos[3]) override
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 *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
~vtkTerrainDataPointPlacer() override
int ValidateWorldPosition(double worldPos[3], double worldOrient[9]) override
Given a world position and a world orientation, validate it according to the constraints of the place...
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9]) override
Given a renderer and a display position in pixel coordinates, compute the world position and orientat...