![]() |
VR-Forces 4.0.4 Class Documentation
|
DtIndirectFireWeaponController is a controller that models firing an indirect fire weapon (e.g. More...

Public Member Functions | |
| DtIndirectFireWeaponController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtIndirectFireWeaponController () |
| destructor | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual bool | createTargetPointPort () |
| Creates a new DtVectorPort named "target-point-port". | |
| virtual DtVectorOutputPort * | targetPointPort () const |
| Accessor for the target point port. | |
| virtual bool | createMaxRangePort () |
| Creates a new DtAnalogPort named "max-range-port". | |
| virtual DtAnalogOutputPort * | maxRangePort () const |
| Accessor for the max range port. | |
| virtual DtVrfIndirectFirePSR * | indirectFireProcessState () |
| virtual const DtVrfIndirectFirePSR * | indirectFireProcessState () const |
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 | |
| virtual bool | createPorts () |
| Overridden to call createTargetPointPort and createMaxRangePort. | |
| virtual void | lookupAndCacheProcessSR () |
This function looks up a process state repository in the process state repository manager by name, and caches a pointer to it in
myWeaponProcessState. | |
| DtIndirectFireWeaponController () | |
| default constructor; not implemented | |
| DtIndirectFireWeaponController (const DtIndirectFireWeaponController &orig) | |
| copy constructor; not implemented | |
| const DtIndirectFireWeaponController & | operator= (const DtIndirectFireWeaponController &orig) |
| assignment operator; not implemented | |
Protected Attributes | |
Ports and Port Groups | |
| DtVectorOutputPort * | myTargetPointPort |
| Output Port Name: target-point-port Output Port Description: Local position to fire at. | |
| DtAnalogOutputPort * | myMaxRangePort |
| Output Port Name: max-range-port Output Port Description: Maximum range in meters. | |
DtIndirectFireWeaponController is a controller that models firing an indirect fire weapon (e.g.
a cannon).
Developer Description: Extends the DtBaseWeaponController with the additional ports needed to specify target location and maximum range.
Uses Descriptor Type: DtBaseWeaponControllerDescriptor
| DtIndirectFireWeaponController::DtIndirectFireWeaponController | ( | 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 DtIndirectFireWeaponController::~DtIndirectFireWeaponController | ( | ) | [virtual] |
destructor
| DtIndirectFireWeaponController::DtIndirectFireWeaponController | ( | ) | [protected] |
default constructor; not implemented
| DtIndirectFireWeaponController::DtIndirectFireWeaponController | ( | const DtIndirectFireWeaponController & | orig | ) | [protected] |
copy constructor; not implemented
| virtual DtString DtIndirectFireWeaponController::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 DtBaseWeaponController.
| virtual bool DtIndirectFireWeaponController::createTargetPointPort | ( | ) | [virtual] |
Creates a new DtVectorPort named "target-point-port".
| virtual DtVectorOutputPort* DtIndirectFireWeaponController::targetPointPort | ( | ) | const [virtual] |
Accessor for the target point port.
| virtual bool DtIndirectFireWeaponController::createMaxRangePort | ( | ) | [virtual] |
Creates a new DtAnalogPort named "max-range-port".
| virtual DtAnalogOutputPort* DtIndirectFireWeaponController::maxRangePort | ( | ) | const [virtual] |
Accessor for the max range port.
| static DtSimComponent* DtIndirectFireWeaponController::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 DtBaseWeaponController.
| virtual DtVrfIndirectFirePSR* DtIndirectFireWeaponController::indirectFireProcessState | ( | ) | [virtual] |
| virtual const DtVrfIndirectFirePSR* DtIndirectFireWeaponController::indirectFireProcessState | ( | ) | const [virtual] |
| virtual bool DtIndirectFireWeaponController::createPorts | ( | ) | [protected, virtual] |
Overridden to call createTargetPointPort and createMaxRangePort.
Reimplemented from DtBaseWeaponController.
| virtual void DtIndirectFireWeaponController::lookupAndCacheProcessSR | ( | ) | [protected, virtual] |
This function looks up a process state repository in the process state repository manager by name, and caches a pointer to it in
The name (if it exists) is given in the component descriptor (DtComponentDescriptor::processStateRepositoryName). If the name does not exist, it uses the appropriate default name defined in procSRTypes.h. Another component is responsible for creating and destroying the process state repository. Overridden from DtBaseWeaponController to print a warning if it can't be cast to the derived type of process state repository, DtVrfIndirectFirePSR.
Reimplemented from DtBaseWeaponController.
| const DtIndirectFireWeaponController& DtIndirectFireWeaponController::operator= | ( | const DtIndirectFireWeaponController & | orig | ) | [protected] |
assignment operator; not implemented
Output Port Name: target-point-port
Output Port Description: Local position to fire at.
Output Port Range:
Output Port Default Value:
Output Group Parent:
Output Port Name: max-range-port
Output Port Description: Maximum range in meters.
Output Port Range:
Output Port Default Value:
Output Group Parent: