![]() |
VR-Forces 4.0.4 Class Documentation
|
DtMountingController; models rotation of a launcher. More...

Public Member Functions | |
| DtMountingController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtMountingController () |
| destructor | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual void | findDesiredAzimuthAndElevation () |
| virtual void | setTargetPoint (const DtVector &localTargetPoint) |
| Set a point you want this mounting to line up with. | |
| virtual const DtVector & | targetPoint () |
| virtual void | findBodyAzimuthElevationToTargetPoint (const DtVector &targetPointIn) |
| Through the out params, this method returns the azimuth and elevation relative to the body required to point the mount at a particular targetPoint. | |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| DtMountingController () | |
| Default constructor; should not be called. | |
| DtMountingController (const DtMountingController &orig) | |
| copy constructor; shallow; does not copy the ports. | |
| const DtMountingController & | operator= (const DtMountingController &orig) |
| assignment operator; see comments on copy constructor! | |
Protected Attributes | |
| bool | myUseTargetPoint |
| Where the mount is supposed to point in local database coords. | |
| DtVector | myTargetPoint |
DtMountingController; models rotation of a launcher.
DtMountingController is a controller that generates the azimuth and elevation controls needed to manipulate a launcher.
End User Description: Given a target location to aim towards, it generates the control outputs necessary to rotate a launcher into position.
Uses Descriptor Type: DtComponentDescriptor
| DtMountingController::DtMountingController | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(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 DtMountingController::~DtMountingController | ( | ) | [virtual] |
destructor
| DtMountingController::DtMountingController | ( | ) | [protected] |
Default constructor; should not be called.
Here because the compiler will generate an unprotected one otherwise.
| DtMountingController::DtMountingController | ( | const DtMountingController & | orig | ) | [protected] |
copy constructor; shallow; does not copy the ports.
| virtual DtString DtMountingController::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 DtBaseMountingController.
| virtual void DtMountingController::findDesiredAzimuthAndElevation | ( | ) | [virtual] |
Reimplemented from DtBaseMountingController.
| virtual void DtMountingController::setTargetPoint | ( | const DtVector & | localTargetPoint | ) | [virtual] |
Set a point you want this mounting to line up with.
The localTargetPoint is in local database coords.
| virtual const DtVector& DtMountingController::targetPoint | ( | ) | [virtual] |
| virtual void DtMountingController::findBodyAzimuthElevationToTargetPoint | ( | const DtVector & | targetPointIn | ) | [virtual] |
Through the out params, this method returns the azimuth and elevation relative to the body required to point the mount at a particular targetPoint.
| static DtSimComponent* DtMountingController::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). |
Reimplemented from DtBaseMountingController.
| const DtMountingController& DtMountingController::operator= | ( | const DtMountingController & | orig | ) | [protected] |
assignment operator; see comments on copy constructor!
bool DtMountingController::myUseTargetPoint [protected] |
Where the mount is supposed to point in local database coords.
DtVector DtMountingController::myTargetPoint [protected] |