VTK
9.1.0
Rendering
VR
vtkVRHardwarePicker.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkVRHardwarePicker.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 vtkVRHardwarePicker_h
30
#define vtkVRHardwarePicker_h
31
32
#include "
vtkPropPicker.h
"
33
#include "vtkRenderingVRModule.h"
// For export macro
34
35
class
vtkSelection
;
36
37
class
VTKRENDERINGVR_EXPORT
vtkVRHardwarePicker
:
public
vtkPropPicker
38
{
39
public
:
40
static
vtkVRHardwarePicker
*
New
();
41
42
vtkTypeMacro(
vtkVRHardwarePicker
,
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
vtkGetObjectMacro(Selection,
vtkSelection
);
53
54
protected
:
55
vtkVRHardwarePicker
() =
default
;
56
~vtkVRHardwarePicker
()
override
=
default
;
57
58
void
Initialize
()
override
;
59
vtkSelection
* Selection =
nullptr
;
60
61
private
:
62
vtkVRHardwarePicker
(
const
vtkVRHardwarePicker
&) =
delete
;
63
void
operator=(
const
vtkVRHardwarePicker
&) =
delete
;
64
};
65
66
#endif
vtkVRHardwarePicker
pick an actor/prop given a controller position and orientation
Definition:
vtkVRHardwarePicker.h:38
vtkPropPicker.h
vtkVRHardwarePicker::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSelection
data object that represents a "selection" in VTK.
Definition:
vtkSelection.h:163
vtkVRHardwarePicker::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.
vtkVRHardwarePicker::vtkVRHardwarePicker
vtkVRHardwarePicker()=default
vtkVRHardwarePicker::New
static vtkVRHardwarePicker * New()
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkPropPicker
pick an actor/prop using graphics hardware
Definition:
vtkPropPicker.h:125
vtkVRHardwarePicker::~vtkVRHardwarePicker
~vtkVRHardwarePicker() override=default
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:182
vtkVRHardwarePicker::Initialize
void Initialize() override
vtkPropCollection
an ordered list of Props
Definition:
vtkPropCollection.h:85
Generated on Fri Nov 5 2021 00:11:18 for VTK by
1.8.20