vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
HeadTracking.h
Go to the documentation of this file.
1
#pragma once
2
#ifndef __HEAD_TRACKING_H
3
#define __HEAD_TRACKING_H
4
5
#include <osg\Vec4>
6
#include <
vrecko\Ability.h
>
7
8
#include "
htUtils.h
"
9
10
namespace
ht
11
{
12
13
class
HeadTracking
:
public
vrecko::Ability
14
{
15
public
:
16
HeadTracking
();
17
virtual
~HeadTracking
();
18
19
virtual
bool
initialize
(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*parameters = NULL);
20
21
virtual
void
update
();
22
23
DECLARE_INPUT
(Transformation,
vrecko::MessageSensorTransformation
);
24
25
protected
:
26
// Scene parameters
27
float
unit
;
28
29
// Screen parameters
30
ht::Screen
screen
;
31
osg::Vec3
s_corner
,
s_width
,
s_height
;
32
33
// Sensor parameters
34
osg::Vec3
head_pos
;
35
osg::Quat
head_orientation
;
36
int
head_sensor_number
;
37
osg::Vec3
left_eye_off
;
38
osg::Vec3
right_eye_off
;
39
40
// Optitrack parameters
41
float
optitrack_scale
;
42
osg::Vec3
optitrack_origin_position
;
43
osg::Vec3
optitrack_translate_mapping
;
44
float
head_tracking_scale
;
45
osg::Vec3
head_tracking_origin_position
;
46
osg::Vec3
head_tracking_translate_mapping
;
47
48
// Other variables
49
osg::Vec4
last_avatar_pos
;
50
51
DECLARE_OUTPUT
(MoveAvatar,
vrecko::MessageVec3
);
52
};
53
54
}
55
56
#endif // __HEAD_TRACKING_H
include
vreckoAP
HeadTracking
HeadTracking.h
Generated on Tue Feb 19 2013 10:23:44 for vrecko by
1.8.3.1