VTK  9.2.20230606
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 VTK_ABI_NAMESPACE_BEGIN
41 class vtkRenderer;
42 class vtkPropCollection;
43 class vtkProp;
44 class vtkPropPicker;
45 
46 class VTKINTERACTIONWIDGETS_EXPORT vtkPolyDataPointPlacer : public vtkPointPlacer
47 {
48 public:
53 
55 
59  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
62  // Description:
63  // Add an actor (that represents a terrain in a rendered scene) to the
64  // list. Only props in this list are considered by the PointPlacer
65  virtual void AddProp(vtkProp*);
66  virtual void RemoveViewProp(vtkProp* prop);
67  virtual void RemoveAllProps();
70 
80  vtkRenderer* ren, double displayPos[2], double worldPos[3], double worldOrient[9]) override;
81 
88  int ComputeWorldPosition(vtkRenderer* ren, double displayPos[2], double refWorldPos[3],
89  double worldPos[3], double worldOrient[9]) override;
90 
95  int ValidateWorldPosition(double worldPos[3]) override;
96 
100  int ValidateDisplayPosition(vtkRenderer*, double displayPos[2]) override;
101 
106  int ValidateWorldPosition(double worldPos[3], double worldOrient[9]) override;
107 
109 
112  vtkGetObjectMacro(PropPicker, vtkPropPicker);
114 
115 protected:
118 
119  // The props that represents the terrain data (one or more) in a rendered
120  // scene
123 
124 private:
126  void operator=(const vtkPolyDataPointPlacer&) = delete;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
a simple class to control print indentation
Definition: vtkIndent.h:120
Abstract interface to translate 2D display positions to world coordinates.
Base class to place points given constraints on polygonal data.
vtkPropCollection * SurfaceProps
virtual void RemoveAllProps()
int HasProp(vtkProp *)
static vtkPolyDataPointPlacer * New()
Instantiate this class.
virtual void RemoveViewProp(vtkProp *prop)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
int ValidateDisplayPosition(vtkRenderer *, double displayPos[2]) override
Given a display position, check the validity of this position.
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...
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 ...
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() override
int ValidateWorldPosition(double worldPos[3]) override
Given a world position check the validity of this position according to the constraints of the placer...
virtual void AddProp(vtkProp *)
an ordered list of Props
pick an actor/prop using graphics hardware
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:77
abstract specification for renderers
Definition: vtkRenderer.h:183