VTK  9.3.0
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
14#ifndef vtkVRHardwarePicker_h
15#define vtkVRHardwarePicker_h
16
17#include "vtkPropPicker.h"
18#include "vtkRenderingVRModule.h" // For export macro
19#include "vtkSmartPointer.h" // for ivar
20
21VTK_ABI_NAMESPACE_BEGIN
22class vtkSelection;
23
24class VTKRENDERINGVR_EXPORT vtkVRHardwarePicker : public vtkPropPicker
25{
26public:
28
30
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
36 virtual int PickProp(double selectionPt[3], double eventWorldOrientation[4],
37 vtkRenderer* renderer, vtkPropCollection* pickfrom, bool actorPassOnly);
38
39 // return the latest selection
41
42protected:
44 ~vtkVRHardwarePicker() override = default;
45
46 void Initialize() override;
48
49private:
51 void operator=(const vtkVRHardwarePicker&) = delete;
52};
53
54VTK_ABI_NAMESPACE_END
55#endif
a simple class to control print indentation
Definition vtkIndent.h:29
an ordered list of Props
pick an actor/prop using graphics hardware
abstract specification for renderers
Definition vtkRenderer.h:59
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()