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

Public Member Functions | |
| ModEntityTranslator (MAKVrExchange::DtBroker *broker) | |
| CTOR. More... | |
| virtual | ~ModEntityTranslator () |
| Virtual DTOR. More... | |
| virtual MAKVrExchange::DtPortalEntity * | translate (MAKVrExchange::DtPortalEntity *destination, const DtEntityStateRepository &source, const DtReflectedEntity &refObj) |
| Translates a DIS entity to a Portal entity. More... | |
| virtual DtEntityStateRepository * | translate (DtEntityStateRepository *dest, const MAKVrExchange::DtPortalEntity &src, const MAKVrExchange::DtPortalReflectedEntity &refObj) |
| Translates a Portal entity to a DIS entity. More... | |
Public Member Functions inherited from MAKVrExchange::DtDisBroker::DtEntityTranslator | |
| Dt_DEF_TRANSLATOR_NAME ("Entity State") | |
| Static translatorName method returns the translator name. More... | |
| DtEntityTranslator (DtBroker *broker) | |
| CTOR. More... | |
| virtual | ~DtEntityTranslator () |
| DTOR. More... | |
| virtual void | tick () |
| Ticks all Portal and DIS publishers. More... | |
| 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. More... | |
| virtual | ~DtDisObjectTranslator () |
| Virtual DTOR. More... | |
| virtual void | enableReflectTranslator (bool enabled) |
| Enables or disables the translator reflecting objects from DIS. More... | |
| virtual void | forceUpdateAll () |
| Tells all publishers to send an update next tick. More... | |
| 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). More... | |
| 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). More... | |
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. More... | |
| typedef DtBaseObjectTranslator < T_PortalObject, T_PortalReflectedObject > | BaseTranslatorClass |
| Typedef for the templated base class type. More... | |
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 Types inherited from MAKVrExchange::DtDisBroker::DtDisObjectTranslator< ENTITY_TEMPLATE_ARGS > | |
| typedef std::pair< DtTime, bool > | LocationFilteringInfo |
| typedef std::map< const DtReflectedObject *, LocationFilteringInfo > | LocationFilteringMap |
| typedef std::map< const DtReflectedObject *, DtBrokerObject * > | DisToPortalReflectedMap |
| typedef std::map< const DtPortalReflectedObject *, DtBrokerObject * > | PortalToDisReflectedMap |
| typedef std::set< DtString > | TransDebugObjectNamesSet |
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. More... | |
| virtual bool | isDisPublishable (DtBrokerObject *brokerObj, const DtPortalReflectedEntity *refObj) |
| Overridden to check for valid entity ID, type, location, and marking text (conditional). More... | |
| virtual void | discoverDisObject (DtReflectedEntity &obj) |
| Creates and initializes a broker object and portal publisher. More... | |
| virtual void | discoverPortalObject (const DtPortalReflectedEntity &obj) |
| Creates and initializes a broker object and DIS publisher. More... | |
| virtual void | discoverPortalDiGuy (const DtPortalReflectedDiGuy &obj) |
| Updates the associated entity or waits for it to be discovered. More... | |
| virtual DtString | disObjectName (const DtPortalReflectedEntity *refObj) const |
| Gets the reflected object's entity id for publisher creation. More... | |
| virtual void | createDisPublisher (DtBrokerObject *brokerObject) |
| Creates a new DtEntityPublisher and stores it in the broker object. More... | |
| virtual void | updateDisBrokerObject (DtBrokerObject *brokerObj, const DtEntityStateRepository &sr) |
| Updates the broker object with the latest entity information. More... | |
| virtual void | updateFilteredState (DtBrokerObject *brokerObj, DtPortalEntityPublisher *publisher, DtReflectedEntity *refObj) |
| Performs the entity filtering logic. More... | |
| virtual void | updateFilteredState (DtBrokerObject *brokerObj, const DtPortalReflectedEntity *refObj) |
| \brief Performs the entity filtering logic. More... | |
| virtual void | updatePortalBrokerObject (DtBrokerObject *brokerObj, const DtPortalEntity &sr) |
| Updates the broker object with the latest entity information. More... | |
| virtual void | receivePortalDiGuyUpdate (const DtPortalReflectedDiGuy &obj) |
| Updates the entity's DIS publisher with the new state. More... | |
| virtual void | removeDisObject (const DtReflectedObject &refObj) |
| Overridden to remove the entity ID from the entity ID map. More... | |
| virtual void | removePortalObject (const DtPortalReflectedEntity &refObj) |
| Removes the portal entity from the entity ID map. More... | |
| virtual void | removePortalDiGuy (const DtPortalReflectedDiGuy *diGuy) |
| Removes the DI-Guy from the wait-list if he's still there. More... | |
| virtual void | deleteDisPublisher (DtBrokerObject *brokerObj) |
| Destroys the broker object's DtEntityPublisher. More... | |
| virtual bool | hasDiGuyAttributes (const DtEntityStateRepository &entity) |
| Checks whether the entity has DI-Guy attributes. More... | |
| virtual void | syncDisDeadReckonedValues (DtEntityStateRepository *destination, const DtPortalEntity &source) |
| Syncs the DIS object's dead-reckoned values with the portal object's. More... | |
| virtual void | syncPortalDeadReckonedValues (DtPortalEntity *destination, const DtEntityStateRepository &source) |
| Syncs the portal object's dead-reckoned values with the DIS object's. More... | |
| virtual DtPortalDiGuy * | translate (DtPortalDiGuy *destination, const DtEntityStateRepository &source) |
| Translates DIS Entity DI-Guy attributes into a portal DI-Guy. More... | |
| virtual DtEntityStateRepository * | translate (DtEntityStateRepository *destination, const DtPortalDiGuy &source) |
| Translates a portal DI-Guy into a DIS entity state rep. More... | |
Protected Member Functions inherited from MAKVrExchange::DtDisBroker::DtDisObjectTranslator< ENTITY_TEMPLATE_ARGS > | |
| virtual void | updateFilteredState (DtBrokerObject *brokerObj, DtPortalObjectPublisherTemplate< T_PortalObject > *publisher, T_DisReflectedObject *refObj) |
| Ensures the given object is properly filtered. More... | |
| virtual void | updateFilteredState (DtBrokerObject *brokerObj, const T_PortalReflectedObject *refObj) |
| Called by ::receivePortalUpdate. More... | |
| virtual bool | filterLocation (const DtReflectedObject &refObj, const DtVector &location) |
| Checks location filtering and returns the filtered state. More... | |
| virtual bool | filterLocation (const DtPortalReflectedObject &refObj, const DtVector &location) |
| Checks location filtering and returns the filtered state. More... | |
| virtual void | requestTransDiagCb (const DtRequestTranslationDiagnosticMessage &msg) |
| Virtual translation diagnostic request callback. More... | |
| virtual void | printIncomingOutgoingStateReps (const DtPortalObject &incoming, const DtStateRepository &outgoing) const |
| Print debug info for the given state reps. More... | |
| virtual void | printIncomingOutgoingStateReps (const DtStateRepository &incoming, const DtPortalObject &outgoing) const |
| Print debug info for the given state reps. More... | |
| virtual void | performPortalDebugging (const DtString &objectName) |
| Build and send debugging message for GUI debugging. More... | |
| virtual void | performPortalDebugging (const DtPortalObject &incoming, const DtStateRepository &outgoing) |
| Build and send debugging message for GUI debugging. More... | |
| virtual void | performPortalDebugging (const DtStateRepository &incoming, const DtPortalObject &outgoing) |
| Build and send debugging message for GUI debugging. More... | |
| virtual void | printDumpGuiToText (const DtBrokerObject &brokerObj, UpdateType ut) const |
| virtual unsigned int | numObjects () const |
| Returns the current number of objects. More... | |
| virtual void | shutdown () |
| Performs any virtual shutdown logic prior to deletion. More... | |
| virtual void | removeDisCallbacks () |
| virtual DtBrokerObject * | createBrokerObject (const DtReflectedObject *refObj) |
| Creates a broker object for the given reflected object. More... | |
| virtual DtBrokerObject * | createBrokerObject (const DtPortalReflectedObject *refObj) |
| Creates a broker object for the given reflected object. More... | |
| virtual DtBrokerObject * | findBrokerObject (const DtReflectedObject *refObj) |
| Find the broker object for the given reflected object. More... | |
| virtual DtBrokerObject * | findBrokerObject (const DtPortalReflectedObject *refObj) |
| Creates a broker object for the given reflected object. More... | |
| virtual DtBrokerObject * | findBrokerObject (const DtString &objectName) |
| Find the broker object for the object with the given name. More... | |
| virtual DtBrokerObject * | releaseBrokerObject (const DtReflectedObject *refObj) |
| Find the broker object for the given reflected object. More... | |
| virtual DtBrokerObject * | releaseBrokerObject (const DtPortalReflectedObject *refObj) |
| Creates a broker object for the given reflected object. More... | |
| virtual bool | isPortalDiscoverable (const DtPortalReflectedObject *refObj) |
| Creates broker object for reflected Portal object. More... | |
| virtual bool | isDisPublishable (DtBrokerObject *brokerObj, const T_PortalReflectedObject *refObj) |
| Tests whether the object is publishable as a DIS object. More... | |
| virtual bool | isDisDiscoverable (const DtReflectedObject *refObj) |
| Creates broker object for reflected DIS object. More... | |
| virtual void | callObjectDiscoverCallbacks (const DtBrokerObject *obj) |
| virtual void | callObjectUpdateCallbacks (const DtBrokerObject *obj) |
| virtual void | callObjectRemoveCallbacks (const DtBrokerObject *obj) |
| virtual void | discoverDisObject (T_DisReflectedObject &obj) |
| virtual void | discoverPortalObject (const T_PortalReflectedObject &obj) |
| virtual DtString | disObjectName (const T_PortalReflectedObject *refObj) const |
| Determines the name to use for the given reflected object. More... | |
| virtual DtEntityIdentifier | mapIdentifier (const T_PortalReflectedObject *refObj, const DtString &identifier) |
| Maps the reflected object's global or entity identifier to a DIS id. More... | |
| virtual DtEntityIdentifier | mapObjectId (const DtEntityIdentifier &identifier) |
| Maps the entity IDs with respect to the remapDisIds setting. More... | |
| virtual DtObjectPublisher * | instantiateDisPublisher (const T_PortalReflectedObject *refObj, const DtEntityIdentifier &name) |
| Instantiates the publisher for the given reflected object. More... | |
| virtual bool | performDisGlobalIdMapping (const DtObjectPublisher *publisher, const T_PortalReflectedObject &refObj, DtGlobalIdMapper::ObjectType type=DtGlobalIdMapper::EntityType, int systemId=DtGlobalIdMapper::NoSystemId, int beamId=DtGlobalIdMapper::NoBeamId) |
| Maps the publisher's global ID to the reflected object's identifier. More... | |
| virtual void | createPortalPublisher (DtBrokerObject *brokerObj) |
| Determines the name to use for the given reflected object. More... | |
| virtual DtString | portalObjectName (const T_DisReflectedObject *refObj) const |
| Determines the name to use for the given reflected object. More... | |
| virtual bool | performPortalGlobalIdMapping (const DtPortalObjectPublisherTemplate< T_PortalObject > *publisher, const T_DisReflectedObject &refObj, DtGlobalIdMapper::ObjectType type=DtGlobalIdMapper::EntityType, int systemId=DtGlobalIdMapper::NoSystemId, int beamId=DtGlobalIdMapper::NoBeamId) |
| Maps the publisher's global ID to the reflected object's identifier. More... | |
| virtual void | receiveDisUpdate (T_DisReflectedObject &obj) |
| virtual void | receivePortalUpdate (const T_PortalReflectedObject &obj) |
| virtual void | updateDisBrokerObject (DtBrokerObject *brokerObj, const T_DisObjectStateRepository &sr) |
| virtual void | updatePortalBrokerObject (DtBrokerObject *brokerObj, const T_PortalObject &sr) |
| virtual void | removePortalObject (const T_PortalReflectedObject &refObj) |
| virtual void | deletePortalPublisher (DtBrokerObject *brokerObj) |
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. More... | |
| static void | portalDiGuyAddedCb (const DtPortalReflectedDiGuy &obj, void *usr) |
| Static callback for processing newly discovered portal DI-Guy objects. More... | |
| static void | portalDiGuyUpdatedCb (const DtPortalReflectedDiGuy &obj, void *usr) |
| Static callback for processing portal DI-Guy object updates. More... | |
| static void | portalDiGuyDeletedCb (const DtPortalReflectedDiGuy &obj, void *usr) |
| Static callback for processing portal DI-Guy object destruction. More... | |
Static Protected Member Functions inherited from MAKVrExchange::DtDisBroker::DtDisObjectTranslator< ENTITY_TEMPLATE_ARGS > | |
| static void | requestTransDiagCb (const DtRequestTranslationDiagnosticMessage &msg, void *usr) |
| Static translation diagnostic request callback. More... | |
| static bool | disDiscoveryCriteria (DtReflectedObject *refObj, void *usr) |
| The DIS reflected list's discovery condition callback. More... | |
| static void | disObjectAddedCb (T_DisReflectedObject *refObj, void *usr) |
| Callback called when an object is added to the reflected list. More... | |
| static void | disObjectUpdatedCb (T_DisReflectedObject *refObj, void *usr) |
| Callback called when an object in the reflected list is updated. More... | |
| static void | disObjectDeletedCb (T_DisReflectedObject *refObj, void *usr) |
| Callback called when an object in the reflected list is deleted. More... | |
Protected Attributes inherited from MAKVrExchange::DtDisBroker::DtEntityTranslator | |
| EntityByEntityIdMap | myPortalEntityByEntityIdMap |
| EntityByEntityIdMap | myDisEntityByEntityIdMap |
| DiGuyWaitList | myDiGuyWaitList |
| PortalDiGuyPublisherMap | myPortalDiGuyPublisherMap |
| DtPortalReflectedDiGuyManager * | myPortalReflectedDiGuyManager |
Protected Attributes inherited from MAKVrExchange::DtDisBroker::DtDisObjectTranslator< ENTITY_TEMPLATE_ARGS > | |
| T_DisReflectedObjectList * | myDisReflectedList |
| LocationFilteringMap | myLocationFilteringMap |
| DisToPortalReflectedMap | myPortalPublisherMap |
| PortalToDisReflectedMap | myDisPublisherMap |
| TransDebugObjectNamesSet | myTransDebugNames |
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.