vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VisualizeFilter.h
Go to the documentation of this file.
1 #ifndef VISUALIZE_FILTER_H
2 #define VISUALIZE_FILTER_H
3 
5 
6 #ifdef COMPILE_PHANTOM_DEVICE
7 
8 namespace vreckoDP_PHANToM {
9 
10 /* PHANToM filter to display the force/torque. */
11 class VisualizeFilter : public PHANToMFilter {
12 public:
13  VisualizeFilter();
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  unsigned long forceObject, torqueObject;
21 
22  float forceScale, torqueScale;
23 
24  void updateObjectTransform(unsigned long objectID, osg::Vec3 &start, osg::Vec3 &dir, float fScale);
25 };
26 
27 }
28 
29 #endif
30 
31 
32 #endif