![]() |
VR-Link API Documentation for DIS
|
The DtReflectedObject instance for an Environmental Process Object. More...
Inheritance diagram for DtReflectedEnvironmentProcess:
Collaboration diagram for DtReflectedEnvironmentProcess:Public Types | |
| typedef DtEnvironmentProcessRepository *(* | DtStateRepCreator )() |
| Function prototype for functions that create DtEnvironmentProcessRepositories. | |
Public Member Functions | |
| DtReflectedEnvironmentProcess (DtExerciseConn *conn, const DtEntityIdentifier &id, const DtEntityType &type) | |
| constructor | |
| virtual | ~DtReflectedEnvironmentProcess () |
| destructor | |
| virtual DtEnvironmentProcessRepository * | environmentProcessStateRep () const |
| Returns ptr to environmentProcessStateRepository -- through which you can inspect current state info. | |
| virtual DtEnvironmentProcessRepository * | epsr () const |
| Synonym for environmentStateRep. | |
| virtual DtStateRepository * | stateRep () const |
| Implementation for abstract base class. Calls epsr(). | |
| virtual DtEnvironmentProcessDecoder * | decoder () |
| Returns a pointer to the Decoder being used to decode state messages into our EPSR. | |
| virtual const DtEntityIdentifier & | entityId () const |
| Returns the entity identifier. | |
| virtual const DtObjectId & | id () const |
| Get the environment process's id. (For DIS, DtObjectId is DtEntityIdentifier). | |
| virtual const DtObjectId & | localId () const |
| Get the environment process's local id. For DIS - same as id(). | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| Get the environment process's object's global object designator - for DIS, it's the same as its DtEntityIdentifier. | |
| virtual void | processStateMessage (const DtStateMsg &msg) |
| Process an environment process state PDU. | |
| virtual DtReflectedEnvironmentProcess * | next () const |
| Get the next and previous elements in the reflected environment process list. | |
| virtual DtReflectedEnvironmentProcess * | prev () const |
| virtual DtReflectedEnvironmentProcess * | wrapNext () const |
| Get the next and previous elements, wrap at the ends of the list. | |
| virtual DtReflectedEnvironmentProcess * | wrapPrev () const |
| virtual void | addPostUpdateCallback (DtEnvironmentProcessCallbackFunction cb, void *userData) |
| Environment Process callback registration/deregistration. | |
| virtual void | removePostUpdateCallback (DtEnvironmentProcessCallbackFunction cb, void *userData) |
| virtual const DtBaseHashKey & | hashKey () const |
| Get a hhash key for this object. | |
| virtual DtString | idString () const |
| Get a string identification of this object. | |
| virtual void | processEnvironmentProcess (const DtEnvironmentalProcessPdu &pdu) |
| Process an environmentalProcess PDU. | |
Static Public Member Functions | |
| static void | setStateRepCreator (DtStateRepCreator creator) |
| Give us a function to be used for creating SRs. | |
| static DtStateRepCreator | stateRepCreator (void) |
Protected Member Functions | |
| DtReflectedEnvironmentProcess (const DtReflectedEnvironmentProcess &orig) | |
| copy constructor -- not implemented | |
| DtReflectedEnvironmentProcess & | operator= (const DtReflectedEnvironmentProcess &orig) |
| assignment operator -- not implemented | |
Protected Attributes | |
| DtEntityIdentifier | myId |
| DtEnvironmentProcessRepository * | myStateRep |
| DtEnvironmentProcessDecoder * | myDecoder |
| DtEntityIdentifierHashKey | myHashKey |
Static Protected Attributes | |
| static DtStateRepCreator | theStateRepCreator |
The DtReflectedObject instance for an Environmental Process Object.
Examples: Environmental Process Example
Function prototype for functions that create DtEnvironmentProcessRepositories.
| DtReflectedEnvironmentProcess::DtReflectedEnvironmentProcess | ( | DtExerciseConn * | conn, |
| const DtEntityIdentifier & | id, | ||
| const DtEntityType & | type | ||
| ) |
constructor
| virtual DtReflectedEnvironmentProcess::~DtReflectedEnvironmentProcess | ( | ) | [virtual] |
destructor
| DtReflectedEnvironmentProcess::DtReflectedEnvironmentProcess | ( | const DtReflectedEnvironmentProcess & | orig | ) | [protected] |
copy constructor -- not implemented
| virtual void DtReflectedEnvironmentProcess::addPostUpdateCallback | ( | DtEnvironmentProcessCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
Environment Process callback registration/deregistration.
| virtual DtEnvironmentProcessDecoder* DtReflectedEnvironmentProcess::decoder | ( | ) | [virtual] |
Returns a pointer to the Decoder being used to decode state messages into our EPSR.
| virtual const DtEntityIdentifier& DtReflectedEnvironmentProcess::entityId | ( | ) | const [virtual] |
Returns the entity identifier.
| virtual DtEnvironmentProcessRepository* DtReflectedEnvironmentProcess::environmentProcessStateRep | ( | ) | const [virtual] |
Returns ptr to environmentProcessStateRepository -- through which you can inspect current state info.
| virtual DtEnvironmentProcessRepository* DtReflectedEnvironmentProcess::epsr | ( | ) | const [virtual] |
Synonym for environmentStateRep.
| virtual const DtGlobalObjectDesignator& DtReflectedEnvironmentProcess::globalId | ( | ) | const [virtual] |
Get the environment process's object's global object designator - for DIS, it's the same as its DtEntityIdentifier.
Implements DtReflectedObject.
| virtual const DtBaseHashKey& DtReflectedEnvironmentProcess::hashKey | ( | ) | const [virtual] |
Get a hhash key for this object.
Implements DtReflectedObject.
| virtual const DtObjectId& DtReflectedEnvironmentProcess::id | ( | ) | const [virtual] |
Get the environment process's id. (For DIS, DtObjectId is DtEntityIdentifier).
| virtual DtString DtReflectedEnvironmentProcess::idString | ( | ) | const [virtual] |
Get a string identification of this object.
Implements DtReflectedObject.
| virtual const DtObjectId& DtReflectedEnvironmentProcess::localId | ( | ) | const [virtual] |
Get the environment process's local id. For DIS - same as id().
| virtual DtReflectedEnvironmentProcess* DtReflectedEnvironmentProcess::next | ( | ) | const [virtual] |
Get the next and previous elements in the reflected environment process list.
Reimplemented from DtListedObj.
| DtReflectedEnvironmentProcess& DtReflectedEnvironmentProcess::operator= | ( | const DtReflectedEnvironmentProcess & | orig | ) | [protected] |
assignment operator -- not implemented
| virtual DtReflectedEnvironmentProcess* DtReflectedEnvironmentProcess::prev | ( | ) | const [virtual] |
Reimplemented from DtListedObj.
| virtual void DtReflectedEnvironmentProcess::processEnvironmentProcess | ( | const DtEnvironmentalProcessPdu & | pdu | ) | [virtual] |
Process an environmentalProcess PDU.
Also calls down to base class processStateMessage().
| virtual void DtReflectedEnvironmentProcess::processStateMessage | ( | const DtStateMsg & | msg | ) | [virtual] |
Process an environment process state PDU.
Calls processEnvironmentProcess().
Reimplemented from DtReflectedObject.
| virtual void DtReflectedEnvironmentProcess::removePostUpdateCallback | ( | DtEnvironmentProcessCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
| static void DtReflectedEnvironmentProcess::setStateRepCreator | ( | DtStateRepCreator | creator | ) | [static] |
Give us a function to be used for creating SRs.
| virtual DtStateRepository* DtReflectedEnvironmentProcess::stateRep | ( | ) | const [virtual] |
Implementation for abstract base class. Calls epsr().
Implements DtReflectedObject.
| static DtStateRepCreator DtReflectedEnvironmentProcess::stateRepCreator | ( | void | ) | [static] |
| virtual DtReflectedEnvironmentProcess* DtReflectedEnvironmentProcess::wrapNext | ( | ) | const [virtual] |
Get the next and previous elements, wrap at the ends of the list.
Reimplemented from DtListedObj.
| virtual DtReflectedEnvironmentProcess* DtReflectedEnvironmentProcess::wrapPrev | ( | ) | const [virtual] |
Reimplemented from DtListedObj.
DtStateRepCreator DtReflectedEnvironmentProcess::theStateRepCreator [static, protected] |