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 =========================================================================*/
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 
50 {
51 public:
54 
56 
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:
121 
122  // The props that represents the terrain data (one or more) in a rendered
123  // scene
126  double HeightOffset;
127 
128 private:
129  vtkTerrainDataPointPlacer(const vtkTerrainDataPointPlacer&); //Not implemented
130  void operator=(const vtkTerrainDataPointPlacer&); //Not implemented
131 };
132 
133 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:44
abstract specification for renderers
Definition: vtkRenderer.h:63
void PrintSelf(ostream &os, vtkIndent indent)
Place points on terrain data.
a list of Props
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int ValidateDisplayPosition(vtkRenderer *, double displayPos[2])
Abstract interface to translate 2D display positions to world coordinates.
virtual int ValidateWorldPosition(double worldPos[3])
static vtkPointPlacer * New()