VTK  9.7.0
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
23
24#ifndef vtkPropPicker_h
25#define vtkPropPicker_h
26
28#include "vtkRenderingCoreModule.h" // For export macro
29#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
30
31VTK_ABI_NAMESPACE_BEGIN
32class vtkProp;
34
35class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkPropPicker : public vtkAbstractPropPicker
36{
37public:
38 static vtkPropPicker* New();
39
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
49 int PickProp(double selectionX, double selectionY, vtkRenderer* renderer);
50
56 double selectionX, double selectionY, vtkRenderer* renderer, vtkPropCollection* pickfrom);
57
61 int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
62 int Pick(VTK_FUTURE_CONST double selectionPt[3], vtkRenderer* renderer)
63 {
64 return this->Pick(selectionPt[0], selectionPt[1], selectionPt[2], renderer);
65 }
66
72 int Pick3DPoint(VTK_FUTURE_CONST double selectionPt[3], vtkRenderer* ren) override;
73
80 int PickProp3DPoint(VTK_FUTURE_CONST double pos[3], vtkRenderer* renderer);
81
87 VTK_FUTURE_CONST double pos[3], vtkRenderer* renderer, vtkPropCollection* pickfrom);
88
92 virtual int PickProp3DRay(VTK_FUTURE_CONST double selectionPt[3],
93 VTK_FUTURE_CONST double eventWorldOrientation[4], vtkRenderer* renderer,
94 vtkPropCollection* pickfrom);
95
101 int Pick3DRay(VTK_FUTURE_CONST double selectionPt[3], VTK_FUTURE_CONST double orient[4],
102 vtkRenderer* ren) override;
103
104protected:
106 ~vtkPropPicker() override;
107
108 void Initialize() override;
109
111
112 // Used to get x-y-z pick position
114
115private:
116 vtkPropPicker(const vtkPropPicker&) = delete;
117 void operator=(const vtkPropPicker&) = delete;
118};
119
120VTK_ABI_NAMESPACE_END
121#endif
a simple class to control print indentation
Definition vtkIndent.h:29
an ordered list of Props
void Initialize() override
int PickProp(double selectionX, double selectionY, vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
~vtkPropPicker() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int PickProp3DPoint(VTK_FUTURE_CONST double pos[3], vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
int Pick3DRay(VTK_FUTURE_CONST double selectionPt[3], VTK_FUTURE_CONST double orient[4], vtkRenderer *ren) override
Perform pick operation with selection point provided.
int Pick(VTK_FUTURE_CONST double selectionPt[3], vtkRenderer *renderer)
vtkWorldPointPicker * WorldPointPicker
static vtkPropPicker * New()
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...
vtkPropCollection * PickFromProps
virtual int PickProp3DRay(VTK_FUTURE_CONST double selectionPt[3], VTK_FUTURE_CONST double eventWorldOrientation[4], vtkRenderer *renderer, vtkPropCollection *pickfrom)
Perform a pick from the user-provided list of vtkProps.
int Pick3DPoint(VTK_FUTURE_CONST double selectionPt[3], vtkRenderer *ren) override
Perform pick operation with selection point provided.
int PickProp3DPoint(VTK_FUTURE_CONST 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...
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) override
override superclasses' Pick() method.
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:50
abstract specification for renderers
Definition vtkRenderer.h:64
find world x,y,z corresponding to display x,y,z
#define VTK_MARSHALAUTO