45 #ifndef CEffectMagnetH 46 #define CEffectMagnetH 101 const unsigned int& a_toolID,
This class implements a 3D vector.
Definition: CVector3d.h:88
virtual ~cEffectMagnet()
Destructor of cEffectMagnet.
Definition: CEffectMagnet.h:89
cEffectMagnet(cGenericObject *a_parent)
Constructor of cEffectMagnet.
Definition: CEffectMagnet.cpp:61
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition: CGenericObject.h:112
void setEnabledInside(const bool a_enabled)
This method enables or disables the magnetic effect when the tool is located inside the object...
Definition: CEffectMagnet.h:105
This class implements a base class for haptic effects.
Definition: CGenericEffect.h:117
bool computeForce(const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int &a_toolID, cVector3d &a_reactionForce)
This method computes the resulting force effect.
Definition: CEffectMagnet.cpp:79
Implements a base class for haptic effects.
bool getEnabledInside()
This method returns true if the magnetic effect is active when inside the object, false otherwise...
Definition: CEffectMagnet.h:108
This class implements a haptic magnetic effect.
Definition: CEffectMagnet.h:77
Definition: CAudioBuffer.cpp:56
bool m_enabledInside
If true then the magnet effect is active when the tool is located inside the object.
Definition: CEffectMagnet.h:118