PhysicsSoundManager Class Reference

#include <PhysicsSoundManager.h>

Inherits ModuleInterface, and SimulationStepListenerInterface.

Collaboration diagram for PhysicsSoundManager:

List of all members.


Public Member Functions

 PhysicsSoundManager ()
virtual ~PhysicsSoundManager ()
virtual bool loadConfig (std::string configFile)
virtual void cleanup ()
virtual std::string getName ()
virtual void step (float dt, unsigned simulationTime)

Protected Member Functions

void manageSliderJoints (float dt)
void manageHingeJoints (float dt)
std::vector< oops::Joint * > getJoints (std::string entityTypeName, std::string jointName)

Protected Attributes

std::map< oops::SliderJoint
*, JointSoundDefinition * > 
sliderJointSounds
std::map< oops::HingeJoint
*, JointSoundDefinition * > 
hingeJointSounds

Constructor & Destructor Documentation

PhysicsSoundManager::PhysicsSoundManager (  ) 

PhysicsSoundManager::~PhysicsSoundManager (  )  [virtual]


Member Function Documentation

void PhysicsSoundManager::cleanup (  )  [virtual]

Instruct the module to free all memory allocated internally.

Reimplemented from ModuleInterface.

std::vector< oops::Joint * > PhysicsSoundManager::getJoints ( std::string  entityTypeName,
std::string  jointName 
) [protected]

std::string PhysicsSoundManager::getName (  )  [virtual]

Return the unique name of the module.

Implements ModuleInterface.

bool PhysicsSoundManager::loadConfig ( std::string  configFile  )  [virtual]

Instruct the module to read its configuration from a file.

Returns:
true on success.
Parameters:
configFile path of the XML-file.

Implements ModuleInterface.

void PhysicsSoundManager::manageHingeJoints ( float  dt  )  [protected]

void PhysicsSoundManager::manageSliderJoints ( float  dt  )  [protected]

void PhysicsSoundManager::step ( float  dt,
unsigned  simulationTime 
) [virtual]

Callback function when Physics::step is called. This method is called from the Physics Thread when a simulation step will be initiated. The passed argument defines the timestep which will be simulated. The real simulation step takes place after this method call.

Parameters:
dt timestep of the next simulation step
simulationTime time of the simulation

Implements SimulationStepListenerInterface.


Member Data Documentation


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

Generated on Wed Oct 20 16:11:59 2010 for inVRs by doxygen 1.5.8