1 #ifndef CAMERAMOVEMENT_FILTER_H
2 #define CAMERAMOVEMENT_FILTER_H
6 #ifdef COMPILE_PHANTOM_DEVICE
10 namespace vreckoDP_PHANToM {
13 class CameraMovementForceFilter :
public FadeForceFilter {
15 CameraMovementForceFilter();
17 virtual bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *parameters);
19 virtual void apply(PHANToMSTATE &pState, osg::Vec3 &force, osg::Vec3 &torque);
22 osg::Vec3f origAvatarPos;
23 osg::Quat origAvatarRot;
25 osg::Vec3f origToolPos;
26 osg::Quat origToolRot;
28 bool bMovementStarted;
30 void startCameraMovement(PHANToMSTATE &pState);
31 void endCameraMovement();