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:
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 * );
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 
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 
vtkPolyDataPointPlacer::vtkPolyDataPointPlacer
vtkPolyDataPointPlacer()
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkPolyDataPointPlacer::SurfaceProps
vtkPropCollection * SurfaceProps
Definition: vtkPolyDataPointPlacer.h:113
vtkPolyDataPointPlacer::New
static vtkPolyDataPointPlacer * New()
vtkPointPlacer
Abstract interface to translate 2D display positions to world coordinates.
Definition: vtkPointPlacer.h:49
vtkPolyDataPointPlacer::~vtkPolyDataPointPlacer
~vtkPolyDataPointPlacer()
vtkPolyDataPointPlacer::AddProp
virtual void AddProp(vtkProp *)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInteractionWidgetsModule.h
vtkPolyDataPointPlacer::RemoveViewProp
virtual void RemoveViewProp(vtkProp *prop)
vtkPolyDataPointPlacer::ComputeWorldPosition
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double refWorldPos[3], double worldPos[3], double worldOrient[9])
vtkPolyDataPointPlacer::GetNumberOfProps
int GetNumberOfProps()
vtkPolyDataPointPlacer::ComputeWorldPosition
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
vtkPolyDataPointPlacer
Base class to place points given constraints on polygonal data.
Definition: vtkPolyDataPointPlacer.h:45
vtkPolyDataPointPlacer::ValidateDisplayPosition
virtual int ValidateDisplayPosition(vtkRenderer *, double displayPos[2])
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPolyDataPointPlacer::RemoveAllProps
virtual void RemoveAllProps()
vtkPropPicker
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:45
vtkPolyDataPointPlacer::HasProp
int HasProp(vtkProp *)
vtkPolyDataPointPlacer::PropPicker
vtkPropPicker * PropPicker
Definition: vtkPolyDataPointPlacer.h:114
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPolyDataPointPlacer::ValidateWorldPosition
virtual int ValidateWorldPosition(double worldPos[3])
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkPointPlacer.h
vtkPolyDataPointPlacer::ValidateWorldPosition
virtual int ValidateWorldPosition(double worldPos[3], double worldOrient[9])
vtkPolyDataPointPlacer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)