![]() |
VR-Forces Developer's Guide
|
This is the FIXED length portion of a DtIfAggregateAs message content when placed on the network.
class DtIfAggregateAs:
Instances of DtIfAggregateAs are the content for messages sent to the back end, instructing it to aggregate a given set of entities into a pseudo-aggregate of a given echelon level.
Content-Type: DtAggregateAsMessageType
Parameters: forceType - Force type of aggregate to create (from disEnums.h).
entityType - Entity type of aggregate to create.
subordinates - A DtList of uuids of entities to add subordinate entities.

Public Member Functions | |
| DtIfAggregateAs () | |
| virtual | ~DtIfAggregateAs () override |
| DtIfAggregateAs (const DtIfAggregateAs &orig) | |
| DtIfAggregateAs & | operator= (const DtIfAggregateAs &orig) |
| virtual int | type () const override |
| virtual DtSimInterfaceContent * | clone () const override |
| virtual DtForceType | forceType () const |
| virtual void | setForceType (DtForceType force) |
| virtual const DtEntityType & | entityType () const |
| virtual void | setEntityType (const DtEntityType &type) |
| virtual void | setPosition (const DtVector &position) |
| virtual const DtVector & | position () const |
| virtual DtReal | heading () const |
| virtual void | setHeading (DtReal heading) |
| virtual unsigned long | requestId () const |
| virtual void | setRequestId (unsigned long id) |
| virtual void | addSubordinate (const DtUUID &name) |
| virtual void | setUUID (const DtUUID &) |
| virtual const DtUUID & | uuid () const |
| virtual const std::vector < DtUUID > & | subordinates () const |
| virtual std::vector< DtUUID > & | subordinates () |
| virtual DtAggregateState | initialAggregateState () const |
| virtual void | setInitialAggregateState (DtAggregateState aggregateState) |
| virtual int | netRepSize () const override |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) override |
| virtual bool | setToNet () override |
| virtual void | printDataToString (DtString &str) override |
| virtual void | setAddToOrbat (bool) |
| virtual bool | addToOrbat () const |
Public Member Functions inherited from DtSimInterfaceContent | |
| virtual | ~DtSimInterfaceContent () |
| virtual bool | update (const DtSimInterfaceContent *data) |
| virtual char * | netRep () |
| virtual void | printContentType (DtString &str) |
| virtual void | setUseSessionId (bool yesNo) |
| virtual bool | useSessionId () const |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Static Public Member Functions inherited from DtSimInterfaceContent | |
| static DtSimInterfaceContent * | createInterfaceContent (int type) |
| static void | addInterfaceContentCreatorFcn (int type, DtInterfaceContentCreatorFcn fcn) |
| static void | setFactory (DtInterfaceContentFactory *factory) |
| static DtInterfaceContentFactory * | factory () |
| static void | registerContentTypePrinter (DtSimInterfaceContentTypePrinterFcn printFcn) |
Protected Attributes | |
| DtForceType | myForceType |
| DtEntityType | myEntityType |
| DtVector | myPosition |
| DtReal | myHeading |
| std::vector< DtUUID > | myEntitiesToAggregate |
| DtU32 | myRequestId |
| DtU8 | myInitialAggregateState |
| DtUUID | myUUID |
| bool | myAddToOrbat |
Protected Attributes inherited from DtSimInterfaceContent | |
| char * | myNetRep |
| bool | myUseSessionId |
Additional Inherited Members | |
Protected Member Functions inherited from DtSimInterfaceContent | |
| DtSimInterfaceContent () | |
| DtSimInterfaceContent (const DtSimInterfaceContent &orig) | |
| const DtSimInterfaceContent & | operator= (const DtSimInterfaceContent &orig) |
| virtual char * | createNetworkBuffer () |
Static Protected Attributes inherited from DtSimInterfaceContent | |
| static DtInterfaceContentFactory * | myFactory |
| static DtSimInterfaceContentTypePrinterFcn | theContentTypePrinterFcn |
| DtIfAggregateAs::DtIfAggregateAs | ( | ) |
default constructor
|
overridevirtual |
destructor
| DtIfAggregateAs::DtIfAggregateAs | ( | const DtIfAggregateAs & | orig | ) |
copy constructor
| DtIfAggregateAs& DtIfAggregateAs::operator= | ( | const DtIfAggregateAs & | orig | ) |
assignment operator
|
overridevirtual |
Returns the type of Interface Content; DtRemoveEntityMessageName.
Implements DtSimInterfaceContent.
|
overridevirtual |
Implements DtSimInterfaceContent.
|
virtual |
Force type of aggregate to create. See VrLink DtForceType for details.
|
virtual |
|
virtual |
Entity type of aggregate to create. See VrLink DtEntityType for details.
|
virtual |
|
virtual |
Set/get local (database) position of aggregate (in meters).
|
virtual |
|
virtual |
Set/get heading of aggregate (0 is north, clockwise, in radians).
|
virtual |
Request Id of aggregate to create. This ID can be used to check whether the request has been carried out.
|
virtual |
Adds a subordinate entity to the aggregate, given its echelon ID name.
|
virtual |
If need be, the starting UUID to give to the aggregate when creating it.
|
virtual |
|
virtual |
Gets the list of subordinate entities. List is a list of uuids.
|
virtual |
|
virtual |
Set/get the initial aggregate state when creating an aggregate. Not used for non-aggregate objects. Default is DtDisaggregated.
|
virtual |
|
overridevirtual |
Reimplemented from DtSimInterfaceContent.
|
overridevirtual |
Reimplemented from DtSimInterfaceContent.
|
overridevirtual |
Reimplemented from DtSimInterfaceContent.
|
overridevirtual |
Reimplemented from DtSimInterfaceContent.
|
static |
|
virtual |
Whether or not this aggregate (and potentially its subordiantes) should be added to the orbat. if the subordaintes are in the orbat and this flag is false the aggregate will still be added to the orbat. Default is true.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |