45#ifndef CGenericForceAlgorithmH
46#define CGenericForceAlgorithmH
Implements a base class for all objects.
This class implements a base class for modeling force rendering algorithms.
Definition CGenericForceAlgorithm.h:85
bool getShowEnabled()
Definition CGenericForceAlgorithm.h:119
void setShowEnabled(bool a_showEnabled)
Definition CGenericForceAlgorithm.h:116
virtual ~cGenericForceAlgorithm()
Destructor of cGenericForceAlgorithm.
Definition CGenericForceAlgorithm.h:96
cGenericForceAlgorithm()
Constructor of cGenericForceAlgorithm.
Definition CGenericForceAlgorithm.cpp:57
virtual void render(cRenderOptions &a_options)
This method renders the force algorithm graphically using OpenGL. (For debug purposes)
Definition CGenericForceAlgorithm.h:129
virtual void initialize(cWorld *a_world, const cVector3d &a_initialPos)
This method initializes the algorithm by passing the starting position of the haptic device.
Definition CGenericForceAlgorithm.h:109
cWorld * m_world
Pointer to the world in which the force algorithm operates.
Definition CGenericForceAlgorithm.h:139
cWorld * getWorld()
This method returns a pointer to the world in which the force algorithm is operating.
Definition CGenericForceAlgorithm.h:106
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.
Definition CGenericForceAlgorithm.h:112
bool m_showEnabled
If true then the graphic display mode is enabled.
Definition CGenericForceAlgorithm.h:142
This class implements a virtual world.
Definition CWorld.h:93
Definition CAudioBuffer.cpp:57
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83
This class implements a 3D vector.
Definition CVector3d.h:89