VTK  9.4.20250322
vtkVRHardwarePicker.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
17#ifndef vtkVRHardwarePicker_h
18#define vtkVRHardwarePicker_h
19
20#include "vtkPropPicker.h"
21#include "vtkRenderingVRModule.h" // For export macro
22#include "vtkSmartPointer.h" // for ivar
23
24VTK_ABI_NAMESPACE_BEGIN
25class vtkSelection;
26
27class VTKRENDERINGVR_EXPORT vtkVRHardwarePicker : public vtkPropPicker
28{
29public:
31
33
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
39 virtual int PickProp(double selectionPt[3], double eventWorldOrientation[4],
40 vtkRenderer* renderer, vtkPropCollection* pickfrom, bool actorPassOnly);
41
42 // return the latest selection
44
45protected:
47 ~vtkVRHardwarePicker() override = default;
48
49 void Initialize() override;
51
52private:
54 void operator=(const vtkVRHardwarePicker&) = delete;
55};
56
57VTK_ABI_NAMESPACE_END
58#endif
a simple class to control print indentation
Definition vtkIndent.h:108
an ordered list of Props
pick an actor/prop using graphics hardware
abstract specification for renderers
data object that represents a "selection" in VTK.
Hold a reference to a vtkObjectBase instance.
pick an actor/prop given a controller position and orientation
vtkSmartPointer< vtkSelection > Selection
virtual int PickProp(double selectionPt[3], double eventWorldOrientation[4], vtkRenderer *renderer, vtkPropCollection *pickfrom, bool actorPassOnly)
Perform a pick from the user-provided list of vtkProps.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkVRHardwarePicker() override=default
void Initialize() override
static vtkVRHardwarePicker * New()
vtkVRHardwarePicker()=default
vtkSelection * GetSelection()