VTK
dox
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
=========================================================================*/
26
#ifndef vtkOpenVRHardwarePicker_h
27
#define vtkOpenVRHardwarePicker_h
28
29
#include "
vtkPropPicker.h
"
30
#include "vtkRenderingOpenVRModule.h"
// For export macro
31
32
class
vtkSelection
;
33
34
class
VTKRENDERINGOPENVR_EXPORT
vtkOpenVRHardwarePicker
:
public
vtkPropPicker
35
{
36
public
:
37
static
vtkOpenVRHardwarePicker
*
New
();
38
39
vtkTypeMacro(
vtkOpenVRHardwarePicker
,
vtkPropPicker
);
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);
48
49
vtkSelection
*
GetSelection
() {
50
return
this->Selection; }
51
52
protected
:
53
vtkOpenVRHardwarePicker
();
54
~
vtkOpenVRHardwarePicker
()
override
;
55
56
void
Initialize
()
override
;
57
vtkSelection
*
Selection
;
58
59
private
:
60
vtkOpenVRHardwarePicker
(
const
vtkOpenVRHardwarePicker
&) =
delete
;
// Not implemented.
61
void
operator=(
const
vtkOpenVRHardwarePicker
&) =
delete
;
// Not implemented.
62
};
63
64
#endif
vtkPropPicker.h
vtkOpenVRHardwarePicker::GetSelection
vtkSelection * GetSelection()
Definition:
vtkOpenVRHardwarePicker.h:49
vtkSelection
data object that represents a "selection" in VTK.
Definition:
vtkSelection.h:63
vtkPropPicker::Initialize
void Initialize() override
vtkOpenVRHardwarePicker
pick an actor/prop given a controller position and orientation
Definition:
vtkOpenVRHardwarePicker.h:34
vtkPropPicker::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPropPicker::New
static vtkPropPicker * New()
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkPropPicker::PickProp
int PickProp(double selectionX, double selectionY, vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
vtkPropPicker
pick an actor/prop using graphics hardware
Definition:
vtkPropPicker.h:42
vtkOpenVRHardwarePicker::Selection
vtkSelection * Selection
Definition:
vtkOpenVRHardwarePicker.h:57
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:63
vtkPropCollection
an ordered list of Props
Definition:
vtkPropCollection.h:41
Generated by
1.8.16