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
MicroScribe3D.h
Go to the documentation of this file.
1
2
#ifndef MICROSCRIBE3D_H
3
#define MICROSCRIBE3D_H
4
5
#include <
vrecko/IOPins.h
>
6
#include <
vrecko/Device.h
>
7
#include <
vrecko/EventDispatcher.h
>
8
9
#include <osg/Vec3>
10
#include <osg/Quat>
11
12
#include "
classes.h
"
13
#include "
arm.h
"
14
15
namespace
vreckoDP_base {
16
17
18
class
DP_EXPORT
MicroScribe3D
:
public
vrecko::Device
{
19
public
:
20
MicroScribe3D
();
21
MicroScribe3D
(
const
char
*port_name);
22
~
MicroScribe3D
();
23
24
virtual
int
openDevice(
void
);
25
int
closeDevice(
void
);
26
27
void
update(
void
);
28
29
int
getButt
() {
return
butt; };
30
private
:
31
Arm
arm;
32
arm_result
armRes;
33
34
osg::Vec3 pos, normal;
35
osg::Quat orient;
36
int
butt;
37
38
void
dispatch();
39
40
protected
:
41
vrecko::EventDispatcher
*
pEventDispatcher
;
42
43
DECLARE_OUTPUT
(Buttons, vrecko::MessageInt);
44
DECLARE_OUTPUT
(Position,
vrecko::MessageVec3
);
45
DECLARE_OUTPUT
(Normal,
vrecko::MessageVec3
);
46
DECLARE_OUTPUT
(Orientation,
vrecko::MessageQuat
);
47
};
48
49
}
50
51
#endif
include
vreckoDP
base
MicroScribe3D.h
Generated on Tue Feb 19 2013 10:23:45 for vrecko by
1.8.3.1