VTK
vtkPolyDataPointPlacer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataPointPlacer.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 =========================================================================*/
33 #ifndef vtkPolyDataPointPlacer_h
34 #define vtkPolyDataPointPlacer_h
35 
36 #include "vtkInteractionWidgetsModule.h" // For export macro
37 #include "vtkPointPlacer.h"
38 
39 class vtkRenderer;
40 class vtkPropCollection;
41 class vtkProp;
42 class vtkPropPicker;
43 
45 {
46 public:
48  static vtkPolyDataPointPlacer *New();
49 
51 
53  void PrintSelf(ostream& os, vtkIndent indent);
55 
56  // Descuription:
57  // Add an actor (that represents a terrain in a rendererd scene) to the
58  // list. Only props in this list are considered by the PointPlacer
59  virtual void AddProp( vtkProp * );
60  virtual void RemoveViewProp(vtkProp *prop);
61  virtual void RemoveAllProps();
62  int HasProp( vtkProp * );
63  int GetNumberOfProps();
64 
66 
71  virtual int ComputeWorldPosition( vtkRenderer *ren,
72  double displayPos[2],
73  double worldPos[3],
74  double worldOrient[9] );
76 
78 
81  virtual int ComputeWorldPosition( vtkRenderer *ren,
82  double displayPos[2],
83  double refWorldPos[3],
84  double worldPos[3],
85  double worldOrient[9] );
87 
90  virtual int ValidateWorldPosition( double worldPos[3] );
91 
93  virtual int ValidateDisplayPosition( vtkRenderer *, double displayPos[2] );
94 
96 
98  virtual int ValidateWorldPosition( double worldPos[3],
99  double worldOrient[9] );
101 
103 
104  vtkGetObjectMacro( PropPicker, vtkPropPicker );
106 
107 protected:
110 
111  // The props that represents the terrain data (one or more) in a rendered
112  // scene
115 
116 private:
117  vtkPolyDataPointPlacer(const vtkPolyDataPointPlacer&); //Not implemented
118  void operator=(const vtkPolyDataPointPlacer&); //Not implemented
119 };
120 
121 #endif
122 
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:62
void PrintSelf(ostream &os, vtkIndent indent)
a list of Props
#define VTKINTERACTIONWIDGETS_EXPORT
vtkPropCollection * SurfaceProps
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.
Base class to place points given constraints on polygonal data.
virtual int ValidateWorldPosition(double worldPos[3])
static vtkPointPlacer * New()