VTK  9.3.20240521
vtkPolyDataPointPlacer.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
22#ifndef vtkPolyDataPointPlacer_h
23#define vtkPolyDataPointPlacer_h
24
25#include "vtkInteractionWidgetsModule.h" // For export macro
26#include "vtkPointPlacer.h"
27
28VTK_ABI_NAMESPACE_BEGIN
29class vtkRenderer;
31class vtkProp;
32class vtkPropPicker;
33
34class VTKINTERACTIONWIDGETS_EXPORT vtkPolyDataPointPlacer : public vtkPointPlacer
35{
36public:
41
43
47 void PrintSelf(ostream& os, vtkIndent indent) override;
49
50 // Description:
51 // Add an actor (that represents a terrain in a rendered scene) to the
52 // list. Only props in this list are considered by the PointPlacer
53 virtual void AddProp(vtkProp*);
54 virtual void RemoveViewProp(vtkProp* prop);
55 virtual void RemoveAllProps();
58
68 vtkRenderer* ren, double displayPos[2], double worldPos[3], double worldOrient[9]) override;
69
76 int ComputeWorldPosition(vtkRenderer* ren, double displayPos[2], double refWorldPos[3],
77 double worldPos[3], double worldOrient[9]) override;
78
83 int ValidateWorldPosition(double worldPos[3]) override;
84
88 int ValidateDisplayPosition(vtkRenderer*, double displayPos[2]) override;
89
94 int ValidateWorldPosition(double worldPos[3], double worldOrient[9]) override;
95
97
100 vtkGetObjectMacro(PropPicker, vtkPropPicker);
102
103protected:
106
107 // The props that represents the terrain data (one or more) in a rendered
108 // scene
111
112private:
114 void operator=(const vtkPolyDataPointPlacer&) = delete;
115};
116
117VTK_ABI_NAMESPACE_END
118#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Abstract interface to translate 2D display positions to world coordinates.
Base class to place points given constraints on polygonal data.
vtkTypeBool HasProp(vtkProp *)
vtkPropCollection * SurfaceProps
virtual void RemoveAllProps()
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.
static vtkPolyDataPointPlacer * New()
Instantiate this class.
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:66
abstract specification for renderers
int vtkTypeBool
Definition vtkABI.h:64