VTK
9.0.1
Rendering
OpenVR
vtkOpenVRHardwarePicker.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOpemVRHardwarePicker.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
29
#ifndef vtkOpenVRHardwarePicker_h
30
#define vtkOpenVRHardwarePicker_h
31
32
#include "
vtkPropPicker.h
"
33
#include "vtkRenderingOpenVRModule.h"
// For export macro
34
35
class
vtkSelection
;
36
37
class
VTKRENDERINGOPENVR_EXPORT
vtkOpenVRHardwarePicker
:
public
vtkPropPicker
38
{
39
public
:
40
static
vtkOpenVRHardwarePicker
*
New
();
41
42
vtkTypeMacro(
vtkOpenVRHardwarePicker
,
vtkPropPicker
);
43
44
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
45
49
virtual
int
PickProp
(
double
selectionPt[3],
double
eventWorldOrientation[4],
50
vtkRenderer
* renderer,
vtkPropCollection
* pickfrom,
bool
actorPassOnly);
51
52
vtkSelection
*
GetSelection
() {
return
this->Selection; }
53
54
protected
:
55
vtkOpenVRHardwarePicker
();
56
~vtkOpenVRHardwarePicker
()
override
;
57
58
void
Initialize
()
override
;
59
vtkSelection
*
Selection
;
60
61
private
:
62
vtkOpenVRHardwarePicker
(
const
vtkOpenVRHardwarePicker
&) =
delete
;
// Not implemented.
63
void
operator=(
const
vtkOpenVRHardwarePicker
&) =
delete
;
// Not implemented.
64
};
65
66
#endif
vtkOpenVRHardwarePicker::vtkOpenVRHardwarePicker
vtkOpenVRHardwarePicker()
vtkPropPicker.h
vtkOpenVRHardwarePicker::PickProp
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.
vtkOpenVRHardwarePicker::Initialize
void Initialize() override
vtkOpenVRHardwarePicker::GetSelection
vtkSelection * GetSelection()
Definition:
vtkOpenVRHardwarePicker.h:52
vtkSelection
data object that represents a "selection" in VTK.
Definition:
vtkSelection.h:58
vtkOpenVRHardwarePicker::New
static vtkOpenVRHardwarePicker * New()
vtkOpenVRHardwarePicker
pick an actor/prop given a controller position and orientation
Definition:
vtkOpenVRHardwarePicker.h:38
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:34
vtkPropPicker
pick an actor/prop using graphics hardware
Definition:
vtkPropPicker.h:46
vtkOpenVRHardwarePicker::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenVRHardwarePicker::Selection
vtkSelection * Selection
Definition:
vtkOpenVRHardwarePicker.h:59
vtkOpenVRHardwarePicker::~vtkOpenVRHardwarePicker
~vtkOpenVRHardwarePicker() override
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:68
vtkPropCollection
an ordered list of Props
Definition:
vtkPropCollection.h:36
Generated on Wed Jul 28 2021 11:35:54 for VTK by
1.8.20