VTK: Rendering/Core/vtkPropPicker.h Source File

| VTK 9.3.1

vtkPropPicker.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
33 #ifndef vtkPropPicker_h
34 #define vtkPropPicker_h
35
36 #include "vtkAbstractPropPicker.h"
37 #include "vtkRenderingCoreModule.h" // For export macro
38
39 VTK_ABI_NAMESPACE_BEGIN
40 class vtkProp;
41 class vtkWorldPointPicker;
42
43 class VTKRENDERINGCORE_EXPORT vtkPropPicker : public vtkAbstractPropPicker
44 {
45 public:
46 static vtkPropPicker* New();
47
48 vtkTypeMacro(vtkPropPicker, vtkAbstractPropPicker);
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
57 int PickProp(double selectionX, double selectionY, vtkRenderer* renderer);
58
63 int PickProp(
64 double selectionX, double selectionY, vtkRenderer* renderer, vtkPropCollection* pickfrom);
65
69 int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
70 int Pick(double selectionPt[3], vtkRenderer* renderer)
71 {
72 return this->Pick(selectionPt[0], selectionPt[1], selectionPt[2], renderer);
73 }
74
80 int Pick3DPoint(double selectionPt[3], vtkRenderer* ren) override;
81
88 int PickProp3DPoint(double pos[3], vtkRenderer* renderer);
89
94 int PickProp3DPoint(double pos[3], vtkRenderer* renderer, vtkPropCollection* pickfrom);
95
99 virtual int PickProp3DRay(double selectionPt[3], double eventWorldOrientation[4],
100 vtkRenderer* renderer, vtkPropCollection* pickfrom);
101
107 int Pick3DRay(double selectionPt[3], double orient[4], vtkRenderer* ren) override;
108
109 protected:
110 vtkPropPicker();
111 ~vtkPropPicker() override;
112
113 void Initialize() override;
114
115 vtkPropCollection* PickFromProps;
116
117 // Used to get x-y-z pick position
118 vtkWorldPointPicker* WorldPointPicker;
119
120 private:
121 vtkPropPicker(const vtkPropPicker&) = delete;
122 void operator=(const vtkPropPicker&) = delete;
123 };
124
125 VTK_ABI_NAMESPACE_END
126 #endif
vtkAbstractPicker::Pick
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
vtkAbstractPropPicker
abstract API for pickers that can pick an instance of vtkProp
Definition: vtkAbstractPropPicker.h:69
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:37
vtkPropPicker
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:44
vtkPropPicker::Initialize
void Initialize() override
vtkPropPicker::PickProp
int PickProp(double selectionX, double selectionY, vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
vtkPropPicker::~vtkPropPicker
~vtkPropPicker() override
vtkPropPicker::PickProp3DPoint
int PickProp3DPoint(double pos[3], vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
vtkPropPicker::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPropPicker::New
static vtkPropPicker * New()
vtkPropPicker::PickProp3DRay
virtual int PickProp3DRay(double selectionPt[3], double eventWorldOrientation[4], vtkRenderer *renderer, vtkPropCollection *pickfrom)
Perform a pick from the user-provided list of vtkProps.
vtkPropPicker::Pick3DRay
int Pick3DRay(double selectionPt[3], double orient[4], vtkRenderer *ren) override
Perform pick operation with selection point provided.
vtkPropPicker::WorldPointPicker
vtkWorldPointPicker * WorldPointPicker
Definition: vtkPropPicker.h:118
vtkPropPicker::PickProp
int PickProp(double selectionX, double selectionY, vtkRenderer *renderer, vtkPropCollection *pickfrom)
Perform a pick from the user-provided list of vtkProps and not from the list of vtkProps that the ren...
vtkPropPicker::PickFromProps
vtkPropCollection * PickFromProps
Definition: vtkPropPicker.h:115
vtkPropPicker::Pick
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) override
override superclasses' Pick() method.
vtkPropPicker::Pick
int Pick(double selectionPt[3], vtkRenderer *renderer)
Definition: vtkPropPicker.h:70
vtkPropPicker::PickProp3DPoint
int PickProp3DPoint(double pos[3], vtkRenderer *renderer, vtkPropCollection *pickfrom)
Perform a pick from the user-provided list of vtkProps and not from the list of vtkProps that the ren...
vtkPropPicker::Pick3DPoint
int Pick3DPoint(double selectionPt[3], vtkRenderer *ren) override
Perform pick operation with selection point provided.
vtkPropPicker::vtkPropPicker
vtkPropPicker()
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:55
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkWorldPointPicker
find world x,y,z corresponding to display x,y,z
Definition: vtkWorldPointPicker.h:43
vtkAbstractPropPicker.h