VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreAirVehicleSetController Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtVreAirVehicleSetController:
[legend]

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, bool &dataAvailable)
 
- Public Member Functions inherited from makVre::DtVreSetController< DtAirVehicleSetController >
 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 ()
 
- 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
 
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 DtSimComponent * creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 

Private Member Functions

 DtVreAirVehicleSetController ()
 
 DtVreAirVehicleSetController (const DtVreAirVehicleSetController &orig)
 
const DtVreAirVehicleSetControlleroperator= (const DtVreAirVehicleSetController &orig)
 

Additional Inherited Members

- Protected Attributes inherited from makVre::DtVreSetController< DtAirVehicleSetController >
bool myWarnedAboutResource
 
std::list< SetVreControlledContent > myPendingControlChanges
 

Constructor & Destructor Documentation

◆ DtVreAirVehicleSetController() [1/3]

makVre::DtVreAirVehicleSetController::DtVreAirVehicleSetController ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )

Constructor.

Parameters
nameThe name of this component
ownerThe local object that owns this component
simManagerThe simulation services manager
descComponent descriptor with configuration parameters
parentRegistryOptional 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]

makVre::DtVreAirVehicleSetController::DtVreAirVehicleSetController ( const DtVreAirVehicleSetController & orig)
private

Copy constructor (not implemented)

Copy constructor is private and not implemented to prevent copy construction.

References DtVreAirVehicleSetController().

Member Function Documentation

◆ 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
nameThe name for the new component
ownerThe local object that will own this component
simManagerThe simulation services manager
descOptional component descriptor
parentRegistryOptional 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
msgThe 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
geocentricLocationThe new geocentric location vector
dataAvailableOutput 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=()

const DtVreAirVehicleSetController & makVre::DtVreAirVehicleSetController::operator= ( const DtVreAirVehicleSetController & orig)
private

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: