VTK  9.1.0
vtkVRHardwarePicker.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkVRHardwarePicker.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
26#ifndef vtkVRHardwarePicker_h
27#define vtkVRHardwarePicker_h
28
29#include "vtkPropPicker.h"
30#include "vtkRenderingVRModule.h" // For export macro
31
32class vtkSelection;
33
34class VTKRENDERINGVR_EXPORT vtkVRHardwarePicker : public vtkPropPicker
35{
36public:
38
40
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
46 virtual int PickProp(double selectionPt[3], double eventWorldOrientation[4],
47 vtkRenderer* renderer, vtkPropCollection* pickfrom, bool actorPassOnly);
48
49 vtkGetObjectMacro(Selection, vtkSelection);
50
51protected:
53 ~vtkVRHardwarePicker() override = default;
54
55 void Initialize() override;
56 vtkSelection* Selection = nullptr;
57
58private:
60 void operator=(const vtkVRHardwarePicker&) = delete;
61};
62
63#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
an ordered list of Props
pick an actor/prop using graphics hardware
abstract specification for renderers
Definition: vtkRenderer.h:173
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:163
pick an actor/prop given a controller position and orientation
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