cGenericEffect Class Reference
[Haptic Effects]

cGenericEffect provides a base class to program haptic effects (force models) when a virtual tool interacts with objects of a virtual environment. More...

#include <CGenericEffect.h>

Inheritance diagram for cGenericEffect:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 cGenericEffect (cGenericObject *a_parent)
 Constructor of CGenericEffect.
virtual ~cGenericEffect ()
 Destructor of CGenericEffect.
virtual bool computeForce (const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int &a_toolID, cVector3d &a_reactionForce)
 Compute a resulting force.
cVector3d getLastComputedForce ()
 Read last computed force.
void enable (bool a_status)
 Enable or disable current effect.
bool isEnabled ()
 Is the current effect enabled.

Public Attributes

cGenericObjectm_parent
 object to which the force effects applies.

Protected Member Functions

virtual void initialize ()
 initialize effect model.

Protected Attributes

cVector3d m_lastComputedForce
 last computed force.
bool m_enabled
 is the current effect enabled.


Detailed Description

cGenericEffect provides a base class to program haptic effects (force models) when a virtual tool interacts with objects of a virtual environment.

Constructor & Destructor Documentation

cGenericEffect::cGenericEffect ( cGenericObject a_parent  ) 

Constructor of CGenericEffect.

Constructor of cGenericEffect.

Parameters:
a_parent Parent object.


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.