![]() |
VR-Forces 4.0.4 Class Documentation
|
DtGroundOrbitController; models orbiting a given location for ground vehicles. More...

Public Member Functions | |
| DtGroundOrbitController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=NULL, DtReaderWriterRegistry *parentRegistry=NULL) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtGroundOrbitController () |
| destructor | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual void | processOrbitTask (DtSimMessage *msg) |
| virtual void | tick () |
| Update control values. | |
| virtual void | registerTaskMsgCallbacks () |
| Overridden to register interest in orbit messages. | |
Static Public Member Functions | |
| static void | orbitTaskCallback (DtSimMessage *msg, void *usr) |
| Instances of this component will register this callback with their own 'this' pointer as user data with the msg executive requesting notification of orbit tasks. | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| void | setActuatorsState (double currentHeading, double desiredHeading, double desiredSpeed, double desiredBreak, DtAutoTransmissionGearEnum desiredGear) |
| DtVector | center () const |
| void | setCenter (const DtVector &newCenter) |
| double | radius () const |
| The radius from which to orbit. | |
| void | setRadius (double newRadius) |
| The radius from which to orbit. | |
| bool | clockwise () const |
| void | setClockwise (bool yesOrNo) |
Private Member Functions | |
| DtGroundOrbitController (const DtGroundOrbitController &original) | |
| not implemented | |
| DtGroundOrbitController & | operator= (const DtGroundOrbitController &original) |
Private Attributes | |
| double | myOrbitRadiusSquared |
| Cached calculation value! | |
DtGroundOrbitController; models orbiting a given location for ground vehicles.
DtGroundOrbitController is a controller that models orbiting a given location, at a given radius, for ground vehicles.
End User Description: Moves the entity of which it is a part around a user-specified (or other controller specified) center point. The resulting behavior is that the entity "orbits" the desired location.
Uses Descriptor Type: DtComponentDescriptor
| DtGroundOrbitController::DtGroundOrbitController | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = NULL, |
||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtGroundOrbitController::~DtGroundOrbitController | ( | ) | [virtual] |
destructor
| DtGroundOrbitController::DtGroundOrbitController | ( | const DtGroundOrbitController & | original | ) | [private] |
not implemented
| virtual DtString DtGroundOrbitController::type | ( | ) | const [virtual] |
Returns a string identifies the class type of component.
Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.
Reimplemented from DtGroundAutoControllerComponent.
| static void DtGroundOrbitController::orbitTaskCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static] |
Instances of this component will register this callback with their own 'this' pointer as user data with the msg executive requesting notification of orbit tasks.
| virtual void DtGroundOrbitController::processOrbitTask | ( | DtSimMessage * | msg | ) | [virtual] |
| virtual void DtGroundOrbitController::tick | ( | ) | [virtual] |
Update control values.
Reimplemented from DtSimComponent.
| static DtSimComponent* DtGroundOrbitController::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual void DtGroundOrbitController::registerTaskMsgCallbacks | ( | ) | [virtual] |
Overridden to register interest in orbit messages.
Reimplemented from DtTaskControllerComponent.
| DtVector DtGroundOrbitController::center | ( | ) | const [protected] |
| void DtGroundOrbitController::setCenter | ( | const DtVector & | newCenter | ) | [protected] |
| double DtGroundOrbitController::radius | ( | ) | const [protected] |
The radius from which to orbit.
This must be greater than 0.0!
| void DtGroundOrbitController::setRadius | ( | double | newRadius | ) | [protected] |
The radius from which to orbit.
This must be greater than 0.0!
| bool DtGroundOrbitController::clockwise | ( | ) | const [protected] |
| void DtGroundOrbitController::setClockwise | ( | bool | yesOrNo | ) | [protected] |
| void DtGroundOrbitController::setActuatorsState | ( | double | currentHeading, |
| double | desiredHeading, | ||
| double | desiredSpeed, | ||
| double | desiredBreak, | ||
| DtAutoTransmissionGearEnum | desiredGear | ||
| ) | [protected] |
| DtGroundOrbitController& DtGroundOrbitController::operator= | ( | const DtGroundOrbitController & | original | ) | [private] |
double DtGroundOrbitController::myOrbitRadiusSquared [mutable, private] |
Cached calculation value!