29 #ifndef __SPRINGEFFECT_H__
30 #define __SPRINGEFFECT_H__
33 #include <HAPI/HapticSpring.h>
64 Inst< MFVec3f > _force = 0,
65 Inst< SFFloat > _springConstant = 0,
66 Inst< SFFloat > _startDistance = 0,
67 Inst< SFFloat > _escapeDistance = 0,
68 Inst< SFBool > _active = 0,
69 Inst< MFInt32 > _deviceIndex = 0,
70 Inst< SFNode > _metadata = 0,
71 Inst< SFFloat > _damping = 0,
72 Inst< SFFloat > _positionInterpolation = 0,
73 Inst< SFVec3f > _interpolatedPosition = 0 );
156 virtual HAPI::HapticSpring * createHAPISpring() {
157 return new HAPI::HapticSpring(
true);
Header file for H3DForceEffect.
Contains the MFVec3f field class.
Contains the SFBool field class.
Contains the SFFloat field class.
Contains the SFInt32 field class.
Contains the SFVec3f field class.
The base class for scenegraph force effects.
Definition: H3DForceEffect.h:39
SpringEffect is a localized haptic effect where the haptics device is pulled towards to a point in sp...
Definition: SpringEffect.h:60
H3DUniquePtr< MFVec3f > force
The force applied by the spring to the haptics device since the last scenegraph update.
Definition: SpringEffect.h:93
H3DUniquePtr< SFFloat > escapeDistance
If the effect is active, the effect will be deactivated if the haptics device moves outside this dist...
Definition: SpringEffect.h:115
H3DUniquePtr< SFFloat > damping
The damping constant to use in the force calculation.
Definition: SpringEffect.h:130
H3DUniquePtr< SFFloat > startDistance
When the haptics device comes within this distance the spring effect is activated.
Definition: SpringEffect.h:108
H3DUniquePtr< SFFloat > springConstant
The spring constant of the spring.
Definition: SpringEffect.h:101
AutoRefVector< HAPI::HapticSpring > haptic_spring
Internal haptic spring instance.
Definition: SpringEffect.h:153
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: SpringEffect.h:150
H3DUniquePtr< SFVec3f > interpolatedPosition
The interpolated position of the spring.
Definition: SpringEffect.h:147
H3DUniquePtr< SFBool > active
Active is true when the spring effect is active.
Definition: SpringEffect.h:121
H3DUniquePtr< SFVec3f > position
The position of the spring.
Definition: SpringEffect.h:86
H3DUniquePtr< SFFloat > positionInterpolation
The positionInterpolation is used to force the haptics loop to not move all the way from the last pos...
Definition: SpringEffect.h:142
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194