![]() |
VR-Exchange 2.6 API Documentation
|
DtModEntityTranslator subclasses DtEntityTranslator to change translation. More...

Public Member Functions | |
| ModEntityTranslator (MAKVrExchange::DtBroker *broker) | |
| CTOR. | |
| virtual | ~ModEntityTranslator () |
| Virtual DTOR. | |
| virtual MAKVrExchange::DtPortalEntity * | translate (MAKVrExchange::DtPortalEntity *destination, const DtEntityStateRepository &source, const DtReflectedEntity &refObj) |
| Translates a DIS entity to a Portal entity. | |
| virtual DtEntityStateRepository * | translate (DtEntityStateRepository *dest, const MAKVrExchange::DtPortalEntity &src, const MAKVrExchange::DtPortalReflectedEntity &refObj) |
| Translates a Portal entity to a DIS entity. | |
Public Member Functions inherited from MAKVrExchange::DtDisBroker::DtEntityTranslator | |
| Dt_DEF_TRANSLATOR_NAME ("Entity State") | |
| Static translatorName method returns the translator name. | |
| DtEntityTranslator (DtBroker *broker) | |
| CTOR. | |
| virtual | ~DtEntityTranslator () |
| DTOR. | |
| virtual void | tick () |
| Ticks all Portal and DIS publishers. | |
| virtual void | initializePortalCallbacks () |
| virtual void | removePortalCallbacks () |
Public Member Functions inherited from MAKVrExchange::DtDisBroker::DtDisObjectTranslator< ENTITY_TEMPLATE_ARGS > | |
| DtDisObjectTranslator (DtBroker *broker, const DtString &name, DtPortalMessageKind kind) | |
| CTOR. | |
| virtual | ~DtDisObjectTranslator () |
| Virtual DTOR. | |
| virtual void | enableReflectTranslator (bool enabled) |
| Enables or disables the translator reflecting objects from DIS. | |
| virtual void | forceUpdateAll () |
| Tells all publishers to send an update next tick. | |
| virtual DtDisBroker * | disBroker () |
| virtual const DtDisBroker * | disBroker () const |
| virtual T_PortalObject * | translate (T_PortalObject *destination, const T_DisObjectStateRepository &source, const T_DisReflectedObject &refObj)=0 |
| Translates the given DIS object to a Portal object (abstract). | |
| virtual T_DisObjectStateRepository * | translate (T_DisObjectStateRepository *destination, const T_PortalObject &source, const T_PortalReflectedObject &refObj)=0 |
| Translates the given Portal object to an DIS object (abstract). | |
Private Member Functions | |
| ModEntityTranslator (const ModEntityTranslator &other) | |
| ModEntityTranslator & | operator= (const ModEntityTranslator &other) |
Additional Inherited Members | |
Public Types inherited from MAKVrExchange::DtDisBroker::DtDisObjectTranslator< ENTITY_TEMPLATE_ARGS > | |
| enum | UpdateType |
| Enums used with the ObjectAction callback. More... | |
| typedef DtDisObjectTranslator < DIS_TEMPLATE_FUNCTION > | ParentClass |
| Typedef for the templated class type. | |
| typedef DtBaseObjectTranslator < T_PortalObject, T_PortalReflectedObject > | BaseTranslatorClass |
| Typedef for the templated base class type. | |
Protected Types inherited from MAKVrExchange::DtDisBroker::DtEntityTranslator | |
| typedef std::map < DtEntityIdentifier, DtBrokerObject * > | EntityByEntityIdMap |
| typedef std::map < DtEntityIdentifier, const DtPortalReflectedDiGuy * > | DiGuyWaitList |
| typedef std::map < DtEntityIdentifier, DtPortalDiGuyPublisher * > | PortalDiGuyPublisherMap |
Protected Member Functions inherited from MAKVrExchange::DtDisBroker::DtEntityTranslator | |
| virtual void | initializeDisCallbacks () |
| Overriding DIS Callbacks to add calling of DI-Guy PDUs as well as entities. | |
| virtual bool | isDisPublishable (DtBrokerObject *brokerObj, const DtPortalReflectedEntity *refObj) |
| Overridden to check for valid entity ID, type, location, and marking text (conditional). | |
| virtual void | discoverDisObject (DtReflectedEntity *obj) |
| Creates and initializes a broker object and portal publisher. | |
| virtual void | discoverPortalObject (const DtPortalReflectedEntity &obj) |
| Creates and initializes a broker object and DIS publisher. | |
| virtual void | discoverPortalDiGuy (const DtPortalReflectedDiGuy &obj) |
| Updates the associated entity or waits for it to be discovered. | |
| virtual DtString | disObjectName (const DtPortalReflectedEntity *refObj) const |
| Gets the reflected object's entity id for publisher creation. | |
| virtual void | createDisPublisher (DtBrokerObject *brokerObject) |
| Creates a new DtEntityPublisher and stores it in the broker object. | |
| virtual void | updateDisBrokerObject (DtBrokerObject *brokerObj, const DtEntityStateRepository &sr) |
| Updates the broker object with the latest entity information. | |
| virtual void | updateFilteredState (DtBrokerObject *brokerObj, DtPortalEntityPublisher *publisher, DtReflectedEntity *refObj) |
| Performs the entity filtering logic. | |
| virtual void | updatePortalBrokerObject (DtBrokerObject *brokerObj, const DtPortalEntity &sr) |
| Updates the broker object with the latest entity information. | |
| virtual void | receivePortalDiGuyUpdate (const DtPortalReflectedDiGuy &obj) |
| Updates the entity's DIS publisher with the new state. | |
| virtual void | removeDisObject (const DtReflectedObject &refObj) |
| Overridden to remove the entity ID from the entity ID map. | |
| virtual void | removePortalObject (const DtPortalReflectedEntity &refObj) |
| Removes the portal entity from the entity ID map. | |
| virtual void | removePortalDiGuy (const DtPortalReflectedDiGuy *diGuy) |
| Removes the DI-Guy from the wait-list if he's still there. | |
| virtual void | deleteDisPublisher (DtBrokerObject *brokerObj) |
| Destroys the broker object's DtEntityPublisher. | |
| virtual bool | hasDiGuyAttributes (const DtEntityStateRepository &entity) |
| Checks whether the entity has DI-Guy attributes. | |
| virtual void | syncDisDeadReckonedValues (DtEntityStateRepository *destination, const DtPortalEntity &source) |
| Syncs the DIS object's dead-reckoned values with the portal object's. | |
| virtual void | syncPortalDeadReckonedValues (DtPortalEntity *destination, const DtEntityStateRepository &source) |
| Syncs the portal object's dead-reckoned values with the DIS object's. | |
| virtual DtPortalDiGuy * | translate (DtPortalDiGuy *destination, const DtEntityStateRepository &source) |
| Translates DIS Entity DI-Guy attributes into a portal DI-Guy. | |
| virtual DtEntityStateRepository * | translate (DtEntityStateRepository *destination, const DtPortalDiGuy &source) |
| Translates a portal DI-Guy into a DIS entity state rep. | |
Static Protected Member Functions inherited from MAKVrExchange::DtDisBroker::DtEntityTranslator | |
| static bool | portalDiGuyDiscoveryCriteria (const DtPortalReflectedObject *obj, void *usr) |
| Static callback for testing whether the portal object should be discovered. | |
| static void | portalDiGuyAddedCb (const DtPortalReflectedDiGuy &obj, void *usr) |
| Static callback for processing newly discovered portal DI-Guy objects. | |
| static void | portalDiGuyUpdatedCb (const DtPortalReflectedDiGuy &obj, void *usr) |
| Static callback for processing portal DI-Guy object updates. | |
| static void | portalDiGuyDeletedCb (const DtPortalReflectedDiGuy &obj, void *usr) |
| Static callback for processing portal DI-Guy object destruction. | |
Protected Attributes inherited from MAKVrExchange::DtDisBroker::DtEntityTranslator | |
| EntityByEntityIdMap | myPortalEntityByEntityIdMap |
| EntityByEntityIdMap | myDisEntityByEntityIdMap |
| DiGuyWaitList | myDiGuyWaitList |
| PortalDiGuyPublisherMap | myPortalDiGuyPublisherMap |
| DtPortalReflectedDiGuyManager * | myPortalReflectedDiGuyManager |
DtModEntityTranslator subclasses DtEntityTranslator to change translation.
| ModEntityTranslator::ModEntityTranslator | ( | MAKVrExchange::DtBroker * | broker | ) |
CTOR.
|
virtual |
Virtual DTOR.
|
private |
|
private |
|
virtual |
Translates a DIS entity to a Portal entity.
Reimplemented from MAKVrExchange::DtDisBroker::DtEntityTranslator.
|
virtual |
Translates a Portal entity to a DIS entity.
Reimplemented from MAKVrExchange::DtDisBroker::DtEntityTranslator.