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 =========================================================================*/
34 #ifndef vtkPolyDataPointPlacer_h
35 #define vtkPolyDataPointPlacer_h
36 
37 #include "vtkInteractionWidgetsModule.h" // For export macro
38 #include "vtkPointPlacer.h"
39 
40 class vtkRenderer;
41 class vtkPropCollection;
42 class vtkProp;
43 class vtkPropPicker;
44 
45 class VTKINTERACTIONWIDGETS_EXPORT vtkPolyDataPointPlacer : public vtkPointPlacer
46 {
47 public:
52 
54 
58  void PrintSelf(ostream& os, vtkIndent indent) override;
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 RemoveViewProp(vtkProp *prop);
66  virtual void RemoveAllProps();
67  int HasProp( vtkProp * );
69 
79  double displayPos[2],
80  double worldPos[3],
81  double worldOrient[9] ) override;
82 
90  double displayPos[2],
91  double refWorldPos[3],
92  double worldPos[3],
93  double worldOrient[9] ) override;
94 
99  int ValidateWorldPosition( double worldPos[3] ) override;
100 
104  int ValidateDisplayPosition( vtkRenderer *, double displayPos[2] ) override;
105 
110  int ValidateWorldPosition( double worldPos[3],
111  double worldOrient[9] ) override;
112 
114 
117  vtkGetObjectMacro( PropPicker, vtkPropPicker );
119 
120 protected:
123 
124  // The props that represents the terrain data (one or more) in a rendered
125  // scene
128 
129 private:
131  void operator=(const vtkPolyDataPointPlacer&) = delete;
132 };
133 
134 #endif
135 
vtkPolyDataPointPlacer::vtkPolyDataPointPlacer
vtkPolyDataPointPlacer()
vtkPolyDataPointPlacer::SurfaceProps
vtkPropCollection * SurfaceProps
Definition: vtkPolyDataPointPlacer.h:126
vtkPolyDataPointPlacer::New
static vtkPolyDataPointPlacer * New()
Instantiate this class.
vtkPointPlacer
Abstract interface to translate 2D display positions to world coordinates.
Definition: vtkPointPlacer.h:50
vtkPolyDataPointPlacer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataPointPlacer::ComputeWorldPosition
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 ...
vtkPolyDataPointPlacer::AddProp
virtual void AddProp(vtkProp *)
vtkPolyDataPointPlacer::ValidateDisplayPosition
int ValidateDisplayPosition(vtkRenderer *, double displayPos[2]) override
Given a display position, check the validity of this position.
vtkPolyDataPointPlacer::ValidateWorldPosition
int ValidateWorldPosition(double worldPos[3]) override
Given a world position check the validity of this position according to the constraints of the placer...
vtkPolyDataPointPlacer::ValidateWorldPosition
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...
vtkPolyDataPointPlacer::RemoveViewProp
virtual void RemoveViewProp(vtkProp *prop)
vtkPolyDataPointPlacer::GetNumberOfProps
int GetNumberOfProps()
vtkPolyDataPointPlacer::ComputeWorldPosition
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...
vtkPolyDataPointPlacer
Base class to place points given constraints on polygonal data.
Definition: vtkPolyDataPointPlacer.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPolyDataPointPlacer::RemoveAllProps
virtual void RemoveAllProps()
vtkPropPicker
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:43
vtkPolyDataPointPlacer::HasProp
int HasProp(vtkProp *)
vtkPolyDataPointPlacer::PropPicker
vtkPropPicker * PropPicker
Definition: vtkPolyDataPointPlacer.h:127
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:53
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPolyDataPointPlacer::~vtkPolyDataPointPlacer
~vtkPolyDataPointPlacer() override
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:42
vtkPointPlacer.h