vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
vrecko
Vrecko - the Virtual Reality Engine
Dynamic Art module
L-system plant modeler - module for Vrecko
Head Up Display module
Space Partitioning - module for Vrecko
Todo List
Deprecated List
Namespaces
Classes
Files
File List
include
base
AP_base.h
Avatar.h
Display.h
hand.h
Light.h
MouseHand.h
MTMatrixTransform.h
Rotate.h
ShowFDH.h
ShowFDHModel.h
SystemInfo.h
helpers
vrecko
vreckoAP
vreckoDP
vreckoUtils
src
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
hand.h
Go to the documentation of this file.
1
#include <
vrecko/Ability.h
>
2
3
#include <
vrecko/EnvironmentObject.h
>
4
5
using namespace
vrecko;
6
7
namespace
base {
8
9
class
hand
:
public
Ability
{
10
public
:
11
hand
();
12
~hand
() {};
13
14
// ------ BaseClass functions ------------------------
16
// void processEvent(const std::string &input_name, void *value);
17
// ---------------------------------------------------
18
19
void
update(
void
);
20
21
void
preInitialize
() {owner = (
EnvironmentObject
*)pOwner;}
22
23
protected
:
24
osg::Vec3 _grab_position, _actual_position,
_last_position
;
25
osg::Matrix _grab_rotation, _actual_rotation,
_last_rotation
;
26
osg::Matrix
_parent_rotation
, _parent_inverse_rotation;
27
bool
_first
;
28
bool
dyn_version
;
29
30
EnvironmentObject
*
selected_object
;
31
Ability
*
ab_with_input_Use
;
32
bool
manipulate
;
33
34
osg::Vec3 _last_positions[200];
35
int
_current_pos
;
36
osg::Matrix
_grab_rotation2
;
37
osg::Vec3
_grab_position2
;
38
osg::Vec3
force
;
39
bool
first
;
40
41
// new
42
osg::Matrix grab_transform, current_transform,
last_transform
;
43
osg::Matrix grab_transform_SO,
SOparent_mat
;
44
45
EnvironmentObject
*
owner
;
46
47
DECLARE_INPUT
(Grab, MessageBool);
48
DECLARE_OUTPUT
(RelativeLocation,
MessageMatrix
);
49
};
50
51
}
include
base
hand.h
Generated on Tue Feb 19 2013 10:23:40 for vrecko by
1.8.3.1