|
VR-Engage
2.3
|
DtVreAirVehicleSetController extends the base set controller functionality specifically for air vehicles. It provides specialized commands and behavior for air vehicles, such as altitude control and location setting. This controller manages multiple air vehicle entities as a coordinated set.
#include <vreAirVehicleSetController.h>
Public Member Functions | |
| DtVreAirVehicleSetController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreAirVehicleSetController () override |
| virtual const char * | type () const override |
| virtual void | processSetAltitude (DtSimMessage *msg) override |
| virtual void | setLocation (DtVector geocentricLocation, int flag, double altitudeAboveTerrain, bool &dataAvailable) override |
Public Member Functions inherited from makVre::DtVreSetController< DtAirVehicleSetController > | |
| DtVreSetController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=nullptr, DtReaderWriterRegistry *parentRegistry=nullptr) | |
| DtVreSetController ()=delete | |
| DtVreSetController (const DtVreSetController &orig)=delete | |
| virtual | ~DtVreSetController () override |
| const DtVreSetController & | operator= (const DtVreSetController &orig)=delete |
| virtual void | setRadio (DtSimRadio *radio) |
| virtual void | processSetPlayerControlled (DtSimMessage *msg) |
| virtual void | processSetDisableOwnershipTransfer (DtSimMessage *msg) |
| virtual void | processSetRestore (DtSimMessage *msg) |
| virtual void | updatePlayerControlled (const SetVreControlledContent &change) |
| virtual void | preFirstTickInit () |
| virtual void | tick () |
Public Member Functions inherited from makVre::DtVreSimComponent< DtAirVehicleSetController > | |
| DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreSimComponent () |
| bool | isPlayerControlled (const std::string &role="") const |
| std::vector< std::string > | controllingStations (const std::string &role) const |
| std::vector< std::string > | engagedRoles () const |
| DtString | entitySystemName () const |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
Static Public Member Functions inherited from makVre::DtVreSetController< DtAirVehicleSetController > | |
| static void | setPlayerControlledCallback (DtSimMessage *msg, void *usrData) |
| static void | setDisableOwnershipTransferCallback (DtSimMessage *msg, void *usrData) |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=nullptr, DtReaderWriterRegistry *parentRegistry=nullptr) |
Private Member Functions | |
| DtVreAirVehicleSetController () | |
| DtVreAirVehicleSetController (const DtVreAirVehicleSetController &orig) | |
| const DtVreAirVehicleSetController & | operator= (const DtVreAirVehicleSetController &orig) |
Additional Inherited Members | |
Protected Member Functions inherited from makVre::DtVreSetController< DtAirVehicleSetController > | |
| void | setLastVrfSimStateProperty (const DtString &simAddress) |
| virtual void | processPreSave (DtLocalObject::SaveType saveType) |
| virtual void | processPostSave (DtLocalObject::SaveType saveType) |
| virtual void | sendAssignRolePlayerMessage (const DtString &stationId, const DtString &roleName) |
| bool | isEmbarkedRoleAssignment (const DtString &stationId, const std::string &roleType, const std::string &roleName) const |
| virtual bool | shouldReplayRestoredRoleAssignment (const DtString &roleName, const DtStatePropertyRoleStationItem &stationItem) |
| virtual void | replayRestoredRoleAssignments () |
Protected Attributes inherited from makVre::DtVreSetController< DtAirVehicleSetController > | |
| bool | myWarnedAboutResource |
| bool | myObjectWasTransferred |
| DtPropertyInterface * | myDetachedRolesStateProperty |
| boost::signals2::connection | myOwnershipTransferConn |
| boost::signals2::connection | myPreSaveConn |
| boost::signals2::connection | myPostSaveConn |
| std::list< SetVreControlledContent > | myPendingControlChanges |
| makVre::DtVreAirVehicleSetController::DtVreAirVehicleSetController | ( | const DtString & | name, |
| DtLocalObject * | owner, | ||
| DtSimulationServices * | simManager, | ||
| DtComponentDescriptor * | desc = 0, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor.
| name | The name of this component |
| owner | The local object that owns this component |
| simManager | The simulation services manager |
| desc | Component descriptor with configuration parameters |
| parentRegistry | Optional parent registry for reader/writer functionality |
Creates a new air vehicle set controller component with the specified parameters.
Referenced by DtVreAirVehicleSetController(), and operator=().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the air vehicle set controller component.
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
|
private |
Copy constructor (not implemented)
Copy constructor is private and not implemented to prevent copy construction.
References DtVreAirVehicleSetController().
|
overridevirtual |
Gets the type identifier for this component.
Implements the DtSimComponent::type() method to return the type identifier for this component.
|
static |
Factory method to create a new instance of this component.
| name | The name for the new component |
| owner | The local object that will own this component |
| simManager | The simulation services manager |
| desc | Optional component descriptor |
| parentRegistry | Optional parent registry for reader/writer functionality |
Static factory method used by the component creation system to instantiate new instances of this component type.
|
overridevirtual |
Processes a set altitude message.
| msg | The simulation message containing the altitude setting request |
Handles messages requesting to set the altitude for all air vehicles in the set. Extracts the altitude value from the message and applies it to the set members.
Reimplemented from makVre::DtVreSetController< DtAirVehicleSetController >.
|
overridevirtual |
Sets the location for air vehicles in the set.
| geocentricLocation | The new geocentric location vector |
| flag | Altitude-handling flag (DtLocalEntitySetControllerPSR) |
| altitudeAboveTerrain | Requested altitude above terrain for ClampAboveTerrain |
| dataAvailable | Output parameter set to true if the location was successfully set |
Sets the geocentric location for all air vehicles in the set. The method updates the dataAvailable flag to indicate whether the location was successfully applied.
|
private |
Assignment operator (not implemented)
Assignment operator is private and not implemented to prevent assignment.
References DtVreAirVehicleSetController().