VTK  9.2.6
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) override;
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 vtkRenderer* ren, double displayPos[2], double worldPos[3], double worldOrient[9]) override;
93
100 int ComputeWorldPosition(vtkRenderer* ren, double displayPos[2], double refWorldPos[3],
101 double worldPos[3], double worldOrient[9]) override;
102
107 int ValidateWorldPosition(double worldPos[3]) override;
108
112 int ValidateDisplayPosition(vtkRenderer*, double displayPos[2]) override;
113
118 int ValidateWorldPosition(double worldPos[3], double worldOrient[9]) override;
119
121
124 vtkGetObjectMacro(PropPicker, vtkPropPicker);
126
127protected:
130
131 // The props that represents the terrain data (one or more) in a rendered
132 // scene
136
137private:
139 void operator=(const vtkTerrainDataPointPlacer&) = delete;
140};
141
142#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Abstract interface to translate 2D display positions to world coordinates.
an ordered list of Props
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:46
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:57
abstract specification for renderers
Definition: vtkRenderer.h:73
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...