#include <OgreHapticsForceEffectAlgorithm.h>
Public Member Functions | |
ForceEffectAlgorithm (const String &type) | |
Default constructor. | |
virtual | ~ForceEffectAlgorithm () |
Virtual destructor. | |
virtual const String & | getType (void) const |
Returns the name of the type of algorithm. | |
virtual void | reset (void) |
Resets parameters used by the algorithm. | |
virtual const ForceOutput & | calculateForces (const Vector3 &position, const Quaternion &orientation, const Vector3 &linearVelocity, const Vector3 &angularVelocity, double timeElapsed)=0 |
Called from the haptic thread to calculate the forces and torques to be added to the final output of the current haptic frame in which this is operation is called. | |
Protected Attributes | |
String | mType |
Name of the type of algorithm. | |
ForceOutput | mOutput |
Output of the algorithm, to be used by subclasses. |
ForceEffect::setAlgorithmParameterList
Definition at line 48 of file OgreHapticsForceEffectAlgorithm.h.
OgreHaptics::ForceEffectAlgorithm::ForceEffectAlgorithm | ( | const String & | type | ) |
Default constructor.
virtual OgreHaptics::ForceEffectAlgorithm::~ForceEffectAlgorithm | ( | ) | [virtual] |
virtual const String& OgreHaptics::ForceEffectAlgorithm::getType | ( | void | ) | const [virtual] |
Returns the name of the type of algorithm.
Definition at line 62 of file OgreHapticsForceEffectAlgorithm.h.
virtual void OgreHaptics::ForceEffectAlgorithm::reset | ( | void | ) | [virtual] |
Resets parameters used by the algorithm.
Definition at line 74 of file OgreHapticsForceEffectAlgorithm.h.
virtual const ForceOutput& OgreHaptics::ForceEffectAlgorithm::calculateForces | ( | const Vector3 & | position, | |
const Quaternion & | orientation, | |||
const Vector3 & | linearVelocity, | |||
const Vector3 & | angularVelocity, | |||
double | timeElapsed | |||
) | [pure virtual] |
Called from the haptic thread to calculate the forces and torques to be added to the final output of the current haptic frame in which this is operation is called.
position | The position of a device in device space coordinates. | |
orientation | The orientation of a device in device space coordinates. | |
linearVelocity | The linear velocity of a device in device space coordinates. | |
angularVelocity | The angular velocity of a device in device space coordinates. | |
timeElapsed | The time since the last call in seconds. |
String OgreHaptics::ForceEffectAlgorithm::mType [protected] |
Output of the algorithm, to be used by subclasses.
Definition at line 96 of file OgreHapticsForceEffectAlgorithm.h.
Last modified Tue Jan 6 22:31:26 2009