vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MultiplyFilter.h
Go to the documentation of this file.
1 #ifndef MULTIPLY_FILTER_H
2 #define MULTIPLY_FILTER_H
3 
5 
6 #ifdef COMPILE_PHANTOM_DEVICE
7 
8 namespace vreckoDP_PHANToM {
9 
10 /* PHANToM filter to multiply the forces (torque is often too small to feel). */
11 class MultiplyForceFilter : public PHANToMFilter {
12 public:
13  MultiplyForceFilter();
14 
15  virtual bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parameters);
16 
17  virtual void apply(PHANToMSTATE &pState, osg::Vec3 &force, osg::Vec3 &torque);
18 
19 protected:
20  float fMulForce;
21  float fMulTorque;
22 };
23 
24 }
25 
26 #endif
27 
28 
29 #endif