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
Damper.h
Go to the documentation of this file.
1
#include <
vrecko/Ability.h
>
2
#include <vreckoDP/base/PHANToM.h>
3
4
using namespace
vrecko;
5
using namespace
vreckoDP_base;
6
namespace
VirtualFixture{
7
8
class
Damper
:
public
PHANToMFilter {
9
public
:
10
Damper
();
11
~Damper
() {};
12
14
void
apply(PHANToM *pPHANToM, osg::Vec3 &force);
15
void
processEvent(
const
std::string &input_name,
void
*value);
16
17
void
preInitialize(
void
);
18
void
postInitialize(
void
);
19
void
update(
void
);
20
21
bool
loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*pParametersNode);
22
XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*getXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *);
23
24
protected
:
25
PHANToM *
PHANToMDevice
;
26
bool
all_on
;
27
bool
active
;
//if true, attractive field will be active
28
float
minspeed
;
//if velocity is less then minspeed damper will be inactive
29
float
speed2force
;
//damping coeficient
30
};
31
32
};
src
vreckoAP
VF
Damper.h
Generated on Tue Feb 19 2013 10:23:47 for vrecko by
1.8.3.1