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
VibrationLabel.h
Go to the documentation of this file.
1
#ifndef VF_VIBRATIONLABEL
2
#define VF_VIBRATIONLABEL
3
4
#include <
vrecko/Ability.h
>
5
#include <vreckoDP/base/PHANToM.h>
6
7
using namespace
vrecko;
8
using namespace
vreckoDP_base;
9
namespace
VirtualFixture{
10
11
class
VibrationLabel
:
public
PHANToMFilter {
12
public
:
13
VibrationLabel
();
14
~VibrationLabel
() {};
15
17
void
apply(PHANToM *pPHANToM, osg::Vec3 &force);
18
void
processEvent(
const
std::string &input_name,
void
*value);
19
20
void
preInitialize(
void
);
21
void
postInitialize(
void
);
22
void
update(
void
);
23
24
bool
loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*pParametersNode);
25
XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*getXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *);
26
27
bool
active
;
//if true, it will be active
28
29
float
frequency
;
//frequency of vibration
30
float
amplitude
;
//amplitude of vivration
31
osg::Vec3
direction
;
//direction of vibration -> if freq > 20 hz, direction is indistinguisable!!!
32
33
protected
:
34
PHANToM *
PHANToMDevice
;
35
bool
all_on
;
36
};
37
38
};
39
#endif
src
vreckoAP
VF
VibrationLabel.h
Generated on Tue Feb 19 2013 10:23:47 for vrecko by
1.8.3.1