VTK  9.6.20260407
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
92
93#ifndef vtkPropPicker_h
94#define vtkPropPicker_h
95
97#include "vtkRenderingCoreModule.h" // For export macro
98#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
99
100VTK_ABI_NAMESPACE_BEGIN
101class vtkProp;
103
104class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkPropPicker : public vtkAbstractPropPicker
105{
106public:
108
110 void PrintSelf(ostream& os, vtkIndent indent) override;
111
118 int PickProp(double selectionX, double selectionY, vtkRenderer* renderer);
119
125 double selectionX, double selectionY, vtkRenderer* renderer, vtkPropCollection* pickfrom);
126
130 int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
131 int Pick(VTK_FUTURE_CONST double selectionPt[3], vtkRenderer* renderer)
132 {
133 return this->Pick(selectionPt[0], selectionPt[1], selectionPt[2], renderer);
134 }
135
141 int Pick3DPoint(VTK_FUTURE_CONST double selectionPt[3], vtkRenderer* ren) override;
142
149 int PickProp3DPoint(VTK_FUTURE_CONST double pos[3], vtkRenderer* renderer);
150
156 VTK_FUTURE_CONST double pos[3], vtkRenderer* renderer, vtkPropCollection* pickfrom);
157
161 virtual int PickProp3DRay(VTK_FUTURE_CONST double selectionPt[3],
162 VTK_FUTURE_CONST double eventWorldOrientation[4], vtkRenderer* renderer,
163 vtkPropCollection* pickfrom);
164
170 int Pick3DRay(VTK_FUTURE_CONST double selectionPt[3], VTK_FUTURE_CONST double orient[4],
171 vtkRenderer* ren) override;
172
173protected:
175 ~vtkPropPicker() override;
176
177 void Initialize() override;
178
180
181 // Used to get x-y-z pick position
183
184private:
185 vtkPropPicker(const vtkPropPicker&) = delete;
186 void operator=(const vtkPropPicker&) = delete;
187};
188
189VTK_ABI_NAMESPACE_END
190#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
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:69
abstract specification for renderers
find world x,y,z corresponding to display x,y,z
#define VTK_MARSHALAUTO