chai3d::cGenericForceAlgorithm Class Reference

This class implements a base class for modeling force rendering algorithms. More...

#include <CGenericForceAlgorithm.h>

Inheritance diagram for chai3d::cGenericForceAlgorithm:

Public Member Functions

 cGenericForceAlgorithm ()
 Constructor of cGenericForceAlgorithm. More...
 
virtual ~cGenericForceAlgorithm ()
 Destructor of cGenericForceAlgorithm. More...
 
cWorldgetWorld ()
 This method returns a pointer to the world in which the force algorithm is operating. More...
 
virtual void initialize (cWorld *a_world, const cVector3d &a_initialPos)
 This method initializes the algorithm by passing the starting position of the haptic device. More...
 
virtual cVector3d computeForces (const cVector3d &a_toolPos, const cVector3d &a_toolVel)
 This method computes the next force given the updated position of the haptic device. More...
 
void setShowEnabled (bool a_showEnabled)
 
bool getShowEnabled ()
 

Protected Member Functions

virtual void render (cRenderOptions &a_options)
 This method renders the force algorithm graphically using OpenGL. (For debug purposes) More...
 

Protected Attributes

cWorldm_world
 Pointer to the world in which the force algorithm operates. More...
 
bool m_showEnabled
 If true then the graphic display mode is enabled. More...
 

Detailed Description

cGenericForceAlgorithm is an abstract class for modeling algorithms that compute single point interation forces.

Constructor & Destructor Documentation

chai3d::cGenericForceAlgorithm::cGenericForceAlgorithm ( )

Constructor of cGenericForceAlgorithm.

virtual chai3d::cGenericForceAlgorithm::~cGenericForceAlgorithm ( )
inlinevirtual

Member Function Documentation

cWorld* chai3d::cGenericForceAlgorithm::getWorld ( )
inline
virtual void chai3d::cGenericForceAlgorithm::initialize ( cWorld a_world,
const cVector3d a_initialPos 
)
inlinevirtual
virtual cVector3d chai3d::cGenericForceAlgorithm::computeForces ( const cVector3d a_toolPos,
const cVector3d a_toolVel 
)
inlinevirtual
void chai3d::cGenericForceAlgorithm::setShowEnabled ( bool  a_showEnabled)
inline
bool chai3d::cGenericForceAlgorithm::getShowEnabled ( )
inline
virtual void chai3d::cGenericForceAlgorithm::render ( cRenderOptions a_options)
inlineprotectedvirtual

Member Data Documentation

cWorld* chai3d::cGenericForceAlgorithm::m_world
protected
bool chai3d::cGenericForceAlgorithm::m_showEnabled
protected

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