Go to the documentation of this file.
132 void put_ray(
float* ray_origin,
float* ray_direction)
const;
158 #include <cgv/config/lib_end.h>
@ VR_MENU
VIVE: menu button; occulus: start button.
Definition: vr_state.h:35
std::string get_state_flag_string(VRButtonStateFlags flags)
convert flags to string
Definition: vr_state.cxx:110
@ VRF_MENU
application menu button
Definition: vr_state.h:64
@ VR_DPAD_LEFT
direction pad left
Definition: vr_state.h:40
VRStatus status
whether trackable is currently tracked, only in case of true, the pose member contains useful informa...
Definition: vr_state.h:96
@ VR_DPAD_RIGHT
direction pad right
Definition: vr_state.h:41
@ VRS_TRACKED
trackable is connected and tracked
Definition: vr_state.h:88
VRButtonStateFlags
one flag for each vr controller button
Definition: vr_state.h:62
@ VR_INPUT2
input 2
Definition: vr_state.h:51
@ VR_DPAD_UP_RIGHT
direction pad diagonally up and right
Definition: vr_state.h:44
@ VRF_INPUT0
button of input 0
Definition: vr_state.h:72
@ VRF_DPAD_LEFT
direction pad left button
Definition: vr_state.h:66
@ VRF_A
A button.
Definition: vr_state.h:70
@ VRF_INPUT2
button of input 2
Definition: vr_state.h:76
the vr namespace for virtual reality support
Definition: gl_vr_display.cxx:5
@ VR_INPUT0_TOUCH
touched input 0
Definition: vr_state.h:46
@ VRS_ATTACHED
trackable is connected via wireless but not tracked
Definition: vr_state.h:87
@ VRF_INPUT1_TOUCH
touch sensor for input 1 which often is touchpad or stick
Definition: vr_state.h:73
unsigned button_flags
combination of flags in VRButtonStateFlags combined with the OR operation
Definition: vr_state.h:122
@ VRF_INPUT3_TOUCH
touch sensor for input 3 which often is touchpad or stick
Definition: vr_state.h:77
@ VR_INPUT3
input 3
Definition: vr_state.h:53
@ VRF_PROXIMITY
proximity sensor
Definition: vr_state.h:81
@ VR_PROXIMITY
proximity sensor
Definition: vr_state.h:56
@ VR_DPAD_UP
direction pad up
Definition: vr_state.h:43
vr_trackable_state hmd
status and pose of hmd
Definition: vr_state.h:141
const unsigned max_nr_controller_axes
maximum number of axes per controller
Definition: vr_state.h:23
std::string get_key_string(unsigned short key)
convert key to string
Definition: vr_state.cxx:78
@ VR_A
A button.
Definition: vr_state.h:45
@ VR_SYSTEM
VIVE: system button; occulus: ???
Definition: vr_state.h:34
@ VRF_INPUT1
button of input 1
Definition: vr_state.h:74
@ VR_DPAD_DOWN_LEFT
direction pad diagonally down and left
Definition: vr_state.h:37
@ VRF_INPUT4_TOUCH
touch sensor for input 4 which often is touchpad or stick
Definition: vr_state.h:79
@ VR_INPUT4_TOUCH
touched input 4
Definition: vr_state.h:54
a trackable knows whether it is tracked and its 6d pose stored as 3x4 matrix in column major format
Definition: vr_state.h:94
@ VRF_INPUT0_TOUCH
touch sensor for input 0 which often is touchpad or stick
Definition: vr_state.h:71
@ VR_INPUT0
input 0
Definition: vr_state.h:47
@ VRS_DETACHED
trackable is not reachable via wireless
Definition: vr_state.h:86
@ VR_DPAD_DOWN
direction pad down
Definition: vr_state.h:38
@ VRF_INPUT4
button of input 4
Definition: vr_state.h:80
@ VRF_INPUT3
button of input 3
Definition: vr_state.h:78
@ VR_INPUT3_TOUCH
touched input 3
Definition: vr_state.h:52
@ VR_BEGIN
begin marker used in for loops over all VR keys
Definition: vr_state.h:58
@ VR_INPUT1
input 1
Definition: vr_state.h:49
@ VRF_DPAD_RIGHT
direction pad right button
Definition: vr_state.h:67
Extends the trackable state by information on the buttons, input axes and vibration strengths.
Definition: vr_state.h:118
@ VR_DPAD_UP_LEFT
direction pad diagonally up and left
Definition: vr_state.h:42
KeyAction
repeated definition from cgv/gui/key_event.h
Definition: vr_state.h:26
@ VR_INPUT4
input 4
Definition: vr_state.h:55
@ VRF_DPAD_UP
direction pad up button
Definition: vr_state.h:69
VRKeys
enumerate all VR keys starting at 1024
Definition: vr_state.h:32
const unsigned max_nr_controllers
maximum number of attachable controller and tracker devices
Definition: vr_state.h:19
unsigned time_stamp
a unique time stamp for fast test whether state changed
Definition: vr_state.h:120
structure that stores all information describing the state of a VR kit
Definition: vr_state.h:139
@ VRF_DPAD_DOWN
direction pad down button
Definition: vr_state.h:68
@ VR_GRIP
grip button
Definition: vr_state.h:36
@ VR_END
end marker used in for loops over all VR keys
Definition: vr_state.h:57
const unsigned max_nr_controller_inputs
maximum number of inputs per controller
Definition: vr_state.h:21
@ VRF_SYSTEM
system button
Definition: vr_state.h:63
@ VR_INPUT2_TOUCH
touched input 2
Definition: vr_state.h:50
@ VR_INPUT1_TOUCH
touched input 1
Definition: vr_state.h:48
@ VRF_INPUT2_TOUCH
touch sensor for input 2 which often is touchpad or stick
Definition: vr_state.h:75
std::string get_status_string(VRStatus status)
convert flags to string
Definition: vr_state.cxx:166
@ VR_DPAD_DOWN_RIGHT
direction pad diagonally down and right
Definition: vr_state.h:39
VRStatus
different status values for a trackable
Definition: vr_state.h:85
@ VRF_GRIP
grip button
Definition: vr_state.h:65