My Project
Loading...
Searching...
No Matches
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.
 
virtual ~cGenericForceAlgorithm ()
 Destructor of cGenericForceAlgorithm.
 
cWorld * getWorld ()
 This method returns a pointer to the world in which the force algorithm is operating.
 
virtual void initialize (cWorld *a_world, const cVector3d &a_initialPos)
 This method initializes the algorithm by passing the starting position of the haptic device.
 
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.
 
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)
 

Protected Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ cGenericForceAlgorithm()

chai3d::cGenericForceAlgorithm::cGenericForceAlgorithm ( )

Constructor of cGenericForceAlgorithm.

◆ ~cGenericForceAlgorithm()

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

Member Function Documentation

◆ getWorld()

cWorld * chai3d::cGenericForceAlgorithm::getWorld ( )
inline

◆ initialize()

virtual void chai3d::cGenericForceAlgorithm::initialize ( cWorld *  a_world,
const cVector3d &  a_initialPos 
)
inlinevirtual

◆ computeForces()

virtual cVector3d chai3d::cGenericForceAlgorithm::computeForces ( const cVector3d &  a_toolPos,
const cVector3d &  a_toolVel 
)
inlinevirtual

◆ setShowEnabled()

void chai3d::cGenericForceAlgorithm::setShowEnabled ( bool  a_showEnabled)
inline

◆ getShowEnabled()

bool chai3d::cGenericForceAlgorithm::getShowEnabled ( )
inline

◆ render()

virtual void chai3d::cGenericForceAlgorithm::render ( cRenderOptions &  a_options)
inlineprotectedvirtual

Member Data Documentation

◆ m_world

cWorld* chai3d::cGenericForceAlgorithm::m_world
protected

◆ m_showEnabled

bool chai3d::cGenericForceAlgorithm::m_showEnabled
protected

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