45#ifndef CGenericEffectH
46#define CGenericEffectH
141 const unsigned int& a_toolID,
144 a_reactionForce.
zero();
This class implements a base class for haptic effects.
Definition CGenericEffect.h:118
virtual ~cGenericEffect()
Destructor of CGenericEffect.
Definition CGenericEffect.h:129
void setEnabled(bool a_enabled)
This method enables or disables this effect.
Definition CGenericEffect.h:149
cGenericObject * m_parent
Object to which the force effects applies.
Definition CGenericEffect.h:162
bool m_enabled
Is this effect currently enabled?
Definition CGenericEffect.h:182
virtual bool computeForce(const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int &a_toolID, cVector3d &a_reactionForce)
This method computes the resulting force.
Definition CGenericEffect.h:139
bool getEnabled() const
This method returns true if this effect is enables, false otherwise.
Definition CGenericEffect.h:152
virtual void initialize()
This method initializes the haptic effect model.
Definition CGenericEffect.h:172
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition CGenericObject.h:113
Definition CAudioBuffer.cpp:57
const int C_EFFECT_MAX_IDN
Definition CGenericEffect.h:77
This class implements a 3D vector.
Definition CVector3d.h:89
void zero()
This method clears all vector components with zeros.
Definition CVector3d.h:236