WebLVC 1.7d API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
ModEntityTranslator Class Reference

DtModEntityTranslator subclasses DtEntityTranslator to change translation. More...

Inheritance diagram for ModEntityTranslator:
Inheritance graph
[legend]

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 DtDisBrokerdisBroker ()
 
virtual const DtDisBrokerdisBroker () 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)
 
ModEntityTranslatoroperator= (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< DtStringTransDebugObjectNamesSet
 
- 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 DtPortalDiGuytranslate (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 DtBrokerObjectcreateBrokerObject (const DtReflectedObject *refObj)
 Creates a broker object for the given reflected object. More...
 
virtual DtBrokerObjectcreateBrokerObject (const DtPortalReflectedObject *refObj)
 Creates a broker object for the given reflected object. More...
 
virtual DtBrokerObjectfindBrokerObject (const DtReflectedObject *refObj)
 Find the broker object for the given reflected object. More...
 
virtual DtBrokerObjectfindBrokerObject (const DtPortalReflectedObject *refObj)
 Creates a broker object for the given reflected object. More...
 
virtual DtBrokerObjectfindBrokerObject (const DtString &objectName)
 Find the broker object for the object with the given name. More...
 
virtual DtBrokerObjectreleaseBrokerObject (const DtReflectedObject *refObj)
 Find the broker object for the given reflected object. More...
 
virtual DtBrokerObjectreleaseBrokerObject (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
 
DtPortalReflectedDiGuyManagermyPortalReflectedDiGuyManager
 
- Protected Attributes inherited from MAKVrExchange::DtDisBroker::DtDisObjectTranslator< ENTITY_TEMPLATE_ARGS >
T_DisReflectedObjectList * myDisReflectedList
 
LocationFilteringMap myLocationFilteringMap
 
DisToPortalReflectedMap myPortalPublisherMap
 
PortalToDisReflectedMap myDisPublisherMap
 
TransDebugObjectNamesSet myTransDebugNames
 

Detailed Description

DtModEntityTranslator subclasses DtEntityTranslator to change translation.

Constructor & Destructor Documentation

ModEntityTranslator::ModEntityTranslator ( MAKVrExchange::DtBroker broker)

CTOR.

virtual ModEntityTranslator::~ModEntityTranslator ( )
virtual

Virtual DTOR.

ModEntityTranslator::ModEntityTranslator ( const ModEntityTranslator other)
private

Member Function Documentation

ModEntityTranslator& ModEntityTranslator::operator= ( const ModEntityTranslator other)
private
virtual MAKVrExchange::DtPortalEntity* ModEntityTranslator::translate ( MAKVrExchange::DtPortalEntity destination,
const DtEntityStateRepository &  source,
const DtReflectedEntity &  refObj 
)
virtual

Translates a DIS entity to a Portal entity.

Reimplemented from MAKVrExchange::DtDisBroker::DtEntityTranslator.

virtual DtEntityStateRepository* ModEntityTranslator::translate ( DtEntityStateRepository *  dest,
const MAKVrExchange::DtPortalEntity src,
const MAKVrExchange::DtPortalReflectedEntity refObj 
)
virtual

Translates a Portal entity to a DIS entity.

Reimplemented from MAKVrExchange::DtDisBroker::DtEntityTranslator.


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)