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>
|
| | 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, bool &dataAvailable) |
| |
| | DtVreSetController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| |
| virtual | ~DtVreSetController () override |
| |
| virtual void | setRadio (DtSimRadio *radio) |
| |
| virtual void | processSetPlayerControlled (DtSimMessage *msg) |
| |
| virtual void | updatePlayerControlled (const SetVreControlledContent &change) |
| |
| virtual void | preFirstTickInit () |
| |
| virtual void | tick () |
| |
| | DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| |
| virtual | ~DtVreSimComponent () |
| |
| bool | isPlayerControlled (const std::string &role="") const |
| |
| DtString | entitySystemName () const |
| |
|
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| |
| static void | setPlayerControlledCallback (DtSimMessage *msg, void *usrData) |
| |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| |
◆ DtVreAirVehicleSetController() [1/3]
| makVre::DtVreAirVehicleSetController::DtVreAirVehicleSetController |
( |
const DtString & | name, |
|
|
DtLocalObject * | owner, |
|
|
DtSimulationServices * | simManager, |
|
|
DtComponentDescriptor * | desc = 0, |
|
|
DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor.
- Parameters
-
| 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=().
◆ ~DtVreAirVehicleSetController()
| virtual makVre::DtVreAirVehicleSetController::~DtVreAirVehicleSetController |
( |
| ) |
|
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the air vehicle set controller component.
◆ DtVreAirVehicleSetController() [2/3]
| makVre::DtVreAirVehicleSetController::DtVreAirVehicleSetController |
( |
| ) |
|
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
◆ DtVreAirVehicleSetController() [3/3]
Copy constructor (not implemented)
Copy constructor is private and not implemented to prevent copy construction.
References DtVreAirVehicleSetController().
◆ type()
| virtual const char * makVre::DtVreAirVehicleSetController::type |
( |
| ) |
const |
|
overridevirtual |
Gets the type identifier for this component.
- Returns
- String identifying the component type (DtVreAirVehicleSetControllerType)
Implements the DtSimComponent::type() method to return the type identifier for this component.
◆ creator()
| static DtSimComponent * makVre::DtVreAirVehicleSetController::creator |
( |
const DtString & | name, |
|
|
DtLocalObject * | owner, |
|
|
DtSimulationServices * | simManager, |
|
|
DtComponentDescriptor * | desc = 0, |
|
|
DtReaderWriterRegistry * | parentRegistry = 0 ) |
|
static |
Factory method to create a new instance of this component.
- Parameters
-
| 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 |
- Returns
- Pointer to the newly created component
Static factory method used by the component creation system to instantiate new instances of this component type.
◆ processSetAltitude()
| virtual void makVre::DtVreAirVehicleSetController::processSetAltitude |
( |
DtSimMessage * | msg | ) |
|
|
overridevirtual |
Processes a set altitude message.
- Parameters
-
| 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 >.
◆ setLocation()
| virtual void makVre::DtVreAirVehicleSetController::setLocation |
( |
DtVector | geocentricLocation, |
|
|
bool & | dataAvailable ) |
|
virtual |
Sets the location for air vehicles in the set.
- Parameters
-
| geocentricLocation | The new geocentric location vector |
| 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.
◆ operator=()
Assignment operator (not implemented)
- Returns
- Reference to this object
Assignment operator is private and not implemented to prevent assignment.
References DtVreAirVehicleSetController().
The documentation for this class was generated from the following file: