![]() |
VR-Link API Documentation for DIS
|
Instances of this class provide a protocol independent interface to a list of reflected aggregates in a DIS environment. More...
Inheritance diagram for DtReflectedAggregateList:
Collaboration diagram for DtReflectedAggregateList:Public Member Functions | |
| DtReflectedAggregateList (DtExerciseConn *exConn, bool smoothCapable=false) | |
| Constructor. | |
| virtual | ~DtReflectedAggregateList () |
| Destructor. | |
| virtual DtReflectedAggregate * | lookup (const DtObjectId &id) const |
| Lookup an aggregate from its object ID. | |
| virtual DtReflectedAggregate * | first () const |
| Get the first and last elements of the aggregate list. | |
| virtual DtReflectedAggregate * | last () const |
| virtual void | addAggregateAdditionCallback (DtAggregateCallbackFunction cb, void *userData) |
| Aggregate added callback registration/deregistration. | |
| virtual void | removeAggregateAdditionCallback (DtAggregateCallbackFunction cb, void *userData) |
| virtual void | addAggregateRemovalCallback (DtAggregateCallbackFunction cb, void *userData) |
| Aggregate removed callback registration/deregistration. | |
| virtual void | removeAggregateRemovalCallback (DtAggregateCallbackFunction cb, void *userData) |
| virtual void | print () |
| Print the SRs of all objects. | |
| virtual DtReflectedAggregate * | processAggregateState (const DtAggregateStatePdu &pdu) |
| Process an incoming aggregate state pdu. | |
| virtual void | processRelativeLocationPdu (const DtRelativeLocationPdu &pdu) |
| Process an incoming relativeLocation pdu. | |
Protected Member Functions | |
| virtual DtReflectedObject * | newReflectedObj (const DtStateMsg &msg) |
| Create a new object from a state message. | |
| virtual DtReflectedObject * | processStateMessage (const DtStateMsg &msg) |
| Process an incoming state message. | |
| virtual void | objectAdded (DtReflectedObject *obj) |
| Called after an aggregate is added and before additional callbacks are processed. | |
| virtual const DtBaseHashKey & | hashKeyFromStateMessage (const DtStateMsg *msg) |
| Get a hash key from a state message. | |
| virtual DtReflectedAggregate * | newReflectedAggregate (const DtEntityIdentifier &id, const DtEntityType &type) const |
| Create a new reflected aggregate. | |
| virtual void | aggregateAdded (DtReflectedAggregate *agg) |
| Called after an aggregate is added and before additional callbacks are processed. | |
Static Protected Member Functions | |
| static void | aggregateStateCb (DtAggregateStatePdu *pdu, void *usr) |
| Callback for the exercise connection. | |
| static void | relativeLocationCb (DtRelativeLocationPdu *pdu, void *usr) |
| Callback which calls processRelativeLocationPdu. | |
Protected Attributes | |
| bool | mySmoothCapable |
| DtEntityIdentifierHashKey * | myHashKey |
Private Member Functions | |
| DtReflectedAggregateList & | operator= (const DtReflectedAggregateList &orig) |
| Assignment operator -- not implemented. | |
| DtReflectedAggregateList (const DtReflectedAggregateList &orig) | |
| Copy constructor -- not implemented. | |
Instances of this class provide a protocol independent interface to a list of reflected aggregates in a DIS environment.
| DtReflectedAggregateList::DtReflectedAggregateList | ( | DtExerciseConn * | exConn, |
| bool | smoothCapable = false |
||
| ) |
Constructor.
| virtual DtReflectedAggregateList::~DtReflectedAggregateList | ( | ) | [virtual] |
Destructor.
| DtReflectedAggregateList::DtReflectedAggregateList | ( | const DtReflectedAggregateList & | orig | ) | [private] |
Copy constructor -- not implemented.
| virtual void DtReflectedAggregateList::addAggregateAdditionCallback | ( | DtAggregateCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
Aggregate added callback registration/deregistration.
| virtual void DtReflectedAggregateList::addAggregateRemovalCallback | ( | DtAggregateCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
Aggregate removed callback registration/deregistration.
| virtual void DtReflectedAggregateList::aggregateAdded | ( | DtReflectedAggregate * | agg | ) | [protected, virtual] |
Called after an aggregate is added and before additional callbacks are processed.
Right now, this function only calls DtInfo.
| static void DtReflectedAggregateList::aggregateStateCb | ( | DtAggregateStatePdu * | pdu, |
| void * | usr | ||
| ) | [static, protected] |
Callback for the exercise connection.
| virtual DtReflectedAggregate* DtReflectedAggregateList::first | ( | ) | const [virtual] |
Get the first and last elements of the aggregate list.
| virtual const DtBaseHashKey& DtReflectedAggregateList::hashKeyFromStateMessage | ( | const DtStateMsg * | msg | ) | [protected, virtual] |
Get a hash key from a state message.
Implements DtReflectedObjectList.
| virtual DtReflectedAggregate* DtReflectedAggregateList::last | ( | ) | const [virtual] |
| virtual DtReflectedAggregate* DtReflectedAggregateList::lookup | ( | const DtObjectId & | id | ) | const [virtual] |
Lookup an aggregate from its object ID.
| virtual DtReflectedAggregate* DtReflectedAggregateList::newReflectedAggregate | ( | const DtEntityIdentifier & | id, |
| const DtEntityType & | type | ||
| ) | const [protected, virtual] |
Create a new reflected aggregate.
| virtual DtReflectedObject* DtReflectedAggregateList::newReflectedObj | ( | const DtStateMsg & | msg | ) | [protected, virtual] |
Create a new object from a state message.
Implements DtReflectedObjectList.
| virtual void DtReflectedAggregateList::objectAdded | ( | DtReflectedObject * | obj | ) | [protected, virtual] |
Called after an aggregate is added and before additional callbacks are processed.
Right now, this function only calls DtInfo.
Reimplemented from DtReflectedObjectList.
| DtReflectedAggregateList& DtReflectedAggregateList::operator= | ( | const DtReflectedAggregateList & | orig | ) | [private] |
Assignment operator -- not implemented.
| virtual void DtReflectedAggregateList::print | ( | ) | [virtual] |
Print the SRs of all objects.
| virtual DtReflectedAggregate* DtReflectedAggregateList::processAggregateState | ( | const DtAggregateStatePdu & | pdu | ) | [virtual] |
Process an incoming aggregate state pdu.
Then calls down to base class processStateMessage().
| virtual void DtReflectedAggregateList::processRelativeLocationPdu | ( | const DtRelativeLocationPdu & | pdu | ) | [virtual] |
Process an incoming relativeLocation pdu.
| virtual DtReflectedObject* DtReflectedAggregateList::processStateMessage | ( | const DtStateMsg & | msg | ) | [protected, virtual] |
Process an incoming state message.
Reimplemented from DtReflectedObjectList.
| static void DtReflectedAggregateList::relativeLocationCb | ( | DtRelativeLocationPdu * | pdu, |
| void * | usr | ||
| ) | [static, protected] |
Callback which calls processRelativeLocationPdu.
| virtual void DtReflectedAggregateList::removeAggregateAdditionCallback | ( | DtAggregateCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
| virtual void DtReflectedAggregateList::removeAggregateRemovalCallback | ( | DtAggregateCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
bool DtReflectedAggregateList::mySmoothCapable [protected] |