VTK  9.5.2
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
89
90#ifndef vtkPropPicker_h
91#define vtkPropPicker_h
92
94#include "vtkRenderingCoreModule.h" // For export macro
95#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
96
97VTK_ABI_NAMESPACE_BEGIN
98class vtkProp;
100
101class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkPropPicker : public vtkAbstractPropPicker
102{
103public:
105
107 void PrintSelf(ostream& os, vtkIndent indent) override;
108
115 int PickProp(double selectionX, double selectionY, vtkRenderer* renderer);
116
122 double selectionX, double selectionY, vtkRenderer* renderer, vtkPropCollection* pickfrom);
123
127 int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
128 int Pick(double selectionPt[3], vtkRenderer* renderer)
129 {
130 return this->Pick(selectionPt[0], selectionPt[1], selectionPt[2], renderer);
131 }
132
138 int Pick3DPoint(double selectionPt[3], vtkRenderer* ren) override;
139
146 int PickProp3DPoint(double pos[3], vtkRenderer* renderer);
147
152 int PickProp3DPoint(double pos[3], vtkRenderer* renderer, vtkPropCollection* pickfrom);
153
157 virtual int PickProp3DRay(double selectionPt[3], double eventWorldOrientation[4],
158 vtkRenderer* renderer, vtkPropCollection* pickfrom);
159
165 int Pick3DRay(double selectionPt[3], double orient[4], vtkRenderer* ren) override;
166
167protected:
169 ~vtkPropPicker() override;
170
171 void Initialize() override;
172
174
175 // Used to get x-y-z pick position
177
178private:
179 vtkPropPicker(const vtkPropPicker&) = delete;
180 void operator=(const vtkPropPicker&) = delete;
181};
182
183VTK_ABI_NAMESPACE_END
184#endif
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
a simple class to control print indentation
Definition vtkIndent.h:108
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
int PickProp3DPoint(double pos[3], vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int PickProp3DRay(double selectionPt[3], double eventWorldOrientation[4], vtkRenderer *renderer, vtkPropCollection *pickfrom)
Perform a pick from the user-provided list of vtkProps.
int Pick3DRay(double selectionPt[3], double orient[4], vtkRenderer *ren) override
Perform pick operation with selection point provided.
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
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) override
override superclasses' Pick() method.
int Pick(double selectionPt[3], vtkRenderer *renderer)
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...
int Pick3DPoint(double selectionPt[3], vtkRenderer *ren) override
Perform pick operation with selection point provided.
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:63
abstract specification for renderers
find world x,y,z corresponding to display x,y,z
#define VTK_MARSHALAUTO