#include <ThrusterMotor.h>
Inheritance diagram for opal::ThrusterMotor:
Public Member Functions | |
ThrusterMotor () | |
virtual | ~ThrusterMotor () |
virtual void OPAL_CALL | init (const ThrusterMotorData &data) |
virtual const ThrusterMotorData &OPAL_CALL | getData () const |
virtual MotorType OPAL_CALL | getType () const |
virtual void OPAL_CALL | setName (const std::string &name) |
virtual const std::string &OPAL_CALL | getName () const |
virtual bool OPAL_CALL | isEnabled () const |
virtual void OPAL_CALL | setEnabled (bool e) |
virtual void OPAL_CALL | setForce (const Force &f) |
virtual const Force &OPAL_CALL | getForce () const |
virtual bool OPAL_CALL | internal_dependsOnSolid (Solid *s) |
virtual void OPAL_CALL | internal_update () |
Protected Attributes | |
ThrusterMotorData | mData |
Definition at line 41 of file ThrusterMotor.h.
|
Definition at line 34 of file ThrusterMotor.cpp. |
|
Definition at line 40 of file ThrusterMotor.cpp. |
|
Returns all data describing the Motor.
Definition at line 57 of file ThrusterMotor.cpp. References mData. |
|
Gets the Force applied by this Motor every time step.
Definition at line 106 of file ThrusterMotor.cpp. References opal::ThrusterMotorData::force, and mData. |
|
Returns the Motor's name.
Implements opal::Motor. Definition at line 72 of file ThrusterMotor.cpp. References mData, and opal::MotorData::name. |
|
Returns the Motor type.
Implements opal::Motor. Definition at line 62 of file ThrusterMotor.cpp. References opal::MotorData::getType(), and mData. |
|
Initializes the Motor with the given data structure. If the Solid pointer in the data are NULL, the Motor will do nothing. The Force in this data structure will automatically be set to a "single step" Force. Definition at line 50 of file ThrusterMotor.cpp. References opal::ThrusterMotorData::force, opal::Motor::init(), mData, and opal::Force::singleStep. |
|
Returns true if this Motor depends on the given Solid.
Reimplemented from opal::Motor. Definition at line 111 of file ThrusterMotor.cpp. References mData, and opal::ThrusterMotorData::solid. |
|
Called regularly to update the Motor. This does nothing if the Motor is disabled. Implements opal::Motor. Definition at line 92 of file ThrusterMotor.cpp. References opal::Solid::addForce(), opal::MotorData::enabled, opal::ThrusterMotorData::force, mData, and opal::ThrusterMotorData::solid. |
|
Returns true if the Motor is enabled.
Implements opal::Motor. Definition at line 77 of file ThrusterMotor.cpp. References opal::MotorData::enabled, and mData. |
|
Sets whether the Motor has any effect.
Implements opal::Motor. Definition at line 82 of file ThrusterMotor.cpp. References opal::MotorData::enabled, and mData. |
|
Sets the Force applied by this Motor every time step. The Force in this data structure will automatically be set to a "single step" Force. Definition at line 100 of file ThrusterMotor.cpp. References opal::ThrusterMotorData::force, mData, and opal::Force::singleStep. |
|
Sets the Motor's name.
Implements opal::Motor. Definition at line 67 of file ThrusterMotor.cpp. References mData, and opal::MotorData::name. |
|
Stores data describing the Motor.
Definition at line 86 of file ThrusterMotor.h. Referenced by getData(), getForce(), getName(), getType(), init(), internal_dependsOnSolid(), internal_update(), isEnabled(), setEnabled(), setForce(), and setName(). |