cEffectViscosity Class Reference
[Haptic Effects]

cEffectViscosity models the reaction force of a tool moving through a viscous environment. More...

#include <CEffectViscosity.h>

Inheritance diagram for cEffectViscosity:

Inheritance graph
[legend]

List of all members.

Public Member Functions

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


Detailed Description

cEffectViscosity models the reaction force of a tool moving through a viscous environment.

Constructor & Destructor Documentation

cEffectViscosity::cEffectViscosity ( cGenericObject a_parent  ) 

Constructor of CEffectViscosity.

Constructor of cEffectViscosity.

Parameters:
a_parent Parent object.


Member Function Documentation

bool cEffectViscosity::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 the force algorithm stored in the tool.
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.