45 #ifndef CGenericEffectH 46 #define CGenericEffectH 141 const unsigned int& a_toolID,
144 a_reactionForce.
zero();
This class implements a 3D vector.
Definition: CVector3d.h:88
cGenericObject * m_parent
Object to which the force effects applies.
Definition: CGenericEffect.h:162
void zero()
This method clears all vector components with zeros.
Definition: CVector3d.h:256
cGenericEffect(cGenericObject *a_parent)
Constructor of CGenericEffect.
Definition: CGenericEffect.cpp:59
bool getEnabled() const
This method returns true if this effect is enables, false otherwise.
Definition: CGenericEffect.h:152
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
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition: CGenericObject.h:112
This class implements a base class for haptic effects.
Definition: CGenericEffect.h:117
virtual ~cGenericEffect()
Destructor of CGenericEffect.
Definition: CGenericEffect.h:129
const int C_EFFECT_MAX_IDN
Definition: CGenericEffect.h:77
Definition: CAudioBuffer.cpp:56
virtual void initialize()
This method initializes the haptic effect model.
Definition: CGenericEffect.h:172
bool m_enabled
Is this effect currently enabled?
Definition: CGenericEffect.h:182
void setEnabled(bool a_enabled)
This method enables or disables this effect.
Definition: CGenericEffect.h:149