cEffectVibration Class Reference
[Haptic Effects]

cEffectVibration models force vibrations by defining a frequency and amplitude. More...

#include <CEffectVibration.h>

Inheritance diagram for cEffectVibration:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 cEffectVibration (cGenericObject *a_parent)
 Constructor of cEffectVibration.
virtual ~cEffectVibration ()
 Destructor of cEffectVibration.
bool computeForce (const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int &a_toolID, cVector3d &a_reactionForce)
 Compute resulting force.

Protected Attributes

cPrecisionClock clock
 Vibration signal clock.


Detailed Description

cEffectVibration models force vibrations by defining a frequency and amplitude.

Constructor & Destructor Documentation

cEffectVibration::cEffectVibration ( cGenericObject a_parent  ) 

Constructor of cEffectVibration.

Constructor of cEffectVibration.

Parameters:
a_parent Parent object.


Member Function Documentation

bool cEffectVibration::computeForce ( const cVector3d a_toolPos,
const cVector3d a_toolVel,
const unsigned int &  a_toolID,
cVector3d a_reactionForce 
) [virtual]

Compute resulting force.

Compute the resulting force effect.

Parameters:
a_toolPos Position of tool.
a_toolVel Velocity of tool.
a_toolID Identification number of force algorithm.
a_reactionForce Return the computed force here.
Returns:
Return false if no interaction force is computed.

Reimplemented from cGenericEffect.


The documentation for this class was generated from the following files:


CHAI3D 2.0.0 documentation
Please address any questions to support@chai3d.org
(C) 2003-2009 - CHAI 3D
All Rights Reserved.