This class implements a haptic vibration effect. More...
#include <CEffectVibration.h>

Public Member Functions | |
| cEffectVibration (cGenericObject *a_parent) | |
| Constructor of cEffectVibration. More... | |
| virtual | ~cEffectVibration () |
| Destructor of cEffectVibration. More... | |
| 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. More... | |
Public Member Functions inherited from chai3d::cGenericEffect | |
| cGenericEffect (cGenericObject *a_parent) | |
| Constructor of CGenericEffect. More... | |
| virtual | ~cGenericEffect () |
| Destructor of CGenericEffect. More... | |
| void | setEnabled (bool a_enabled) |
| This method enables or disables this effect. More... | |
| bool | getEnabled () const |
| This method returns true if this effect is enables, false otherwise. More... | |
Protected Attributes | |
| cPrecisionClock | clock |
| Vibration signal clock. More... | |
Protected Attributes inherited from chai3d::cGenericEffect | |
| bool | m_enabled |
| Is this effect currently enabled? More... | |
Additional Inherited Members | |
Public Attributes inherited from chai3d::cGenericEffect | |
| cGenericObject * | m_parent |
| Object to which the force effects applies. More... | |
Protected Member Functions inherited from chai3d::cGenericEffect | |
| virtual void | initialize () |
| This method initializes the haptic effect model. More... | |
This class implements a haptic vibration effect. The vibration is defined by its frequency and amplitude.
| chai3d::cEffectVibration::cEffectVibration | ( | cGenericObject * | a_parent | ) |
Constructor of cEffectVibration.
| a_parent | Parent object. |
|
inlinevirtual |
|
virtual |
This method computes the resulting force effect.
| a_toolPos | Position of tool. |
| a_toolVel | Velocity of tool. |
| a_toolID | Identification number of the force algorithm stored in the tool. |
| a_reactionForce | Return value for the computed force. |
Reimplemented from chai3d::cGenericEffect.
|
protected |