24#include <boost/unordered_map.hpp>
287 virtual const std::string&
tag() = 0;
290 template<
typename ElementTemplateType>
314 return new ElementTemplateType( simulation, listener );
319 return ElementTemplateType::theElementType();
322 virtual const std::string&
tag()
325 const static std::string str(
"DIS");
327 const static std::string str(
"HLA4");
328#elif DtHLA_1516_EVOLVED
329 const static std::string str(
"HLA1516e" );
331 const static std::string str(
"HLA1516" );
333 const static std::string str(
"HLA13" );
335 const static std::string str(
"" );
Contains makVrv:DtBaseConnection class.
Contains makVrv::DtElementAttributes class.
Contains makVrv::DtElementEntry class.
Contains makVrv::DtSharedModelSetSettings class.
Contains makVrv::DtVisualizerCreationSettingsManager class.
The abstract interface necessary for agents.
Definition DtAgentManagerInterface.h:34
The DtBaseConnection is an abstract class.
Definition DtBaseConnection.h:36
DtElementAttribute is a common base class used for all element attributes, such as those found in a D...
Definition DtElementAttribute.h:21
DtElementCreator()
CTOR.
Definition DtElement.h:265
virtual DtElement * createElement(DtBaseConnection &simulation, DtStateListener &listener) const =0
Create function.
virtual const std::string & tag()=0
Returns the creator's tag.
virtual DtElementCreator * clone() const =0
Every derived class must override this method.
virtual ~DtElementCreator()
DTOR.
Definition DtElement.h:271
virtual const DtElementEntry::ElementType elementType() const =0
Returns the creator's type.
virtual const DtElementEntry::ElementType elementType() const
Returns the creator's type.
Definition DtElement.h:317
virtual DtElementCreatorTemplate * clone() const
Every derived class must override this method.
Definition DtElement.h:306
virtual const std::string & tag()
Returns the creator's tag.
Definition DtElement.h:322
DtElementCreatorTemplate()
Definition DtElement.h:295
virtual ~DtElementCreatorTemplate()
DTOR.
Definition DtElement.h:301
virtual DtElement * createElement(DtBaseConnection &simulation, DtStateListener &listener) const
Create function.
Definition DtElement.h:311
Definition DtElementDefinition.h:27
ElementType
Definition DtElementEntry.h:27
Definition DtElement.h:45
virtual void reportDriverType()
Report that the element comes from a specific connection.
virtual void reportDisplayUnitCollectionName()
Report the element's display unit type.
virtual ModelSetToSceneObjectIdMap & modelSetToSceneObjectIdMap()
Get the model set to scene object ID map.
virtual void visualize(const DtSharedModelSetSettings::ModelSetVisualizedMap &sets)
Visualize the element.
boost::unordered_map< DtModelSetId, DtUniqueID > ModelSetToSceneObjectIdMap
Definition DtElement.h:48
virtual void setDriverType(const std::string &driverType)
std::string myConnectionObjectID
Definition DtElement.h:243
void slot_updateOverlayNameRaw(const char *text)
Called when overlay name for the element has been changed - passed as raw.
DtElement()=delete
not allowed - default constructor
virtual void setSceneObjectIdForModelSet(DtModelSetId modelSet, DtUniqueID id)
Associate a model set of this element with a specific scene object.
virtual void getDefinitions(std::vector< DtUnicode > &definitions)
virtual void updateElementDefinitionFromDefinitions()
Element definition.
virtual std::string displayUnitCollectionName() const
Get the display unit collection name to use for the element.
std::string myElementOverlayName
Definition DtElement.h:248
DtElementID elementID() const
Definition DtElement.h:82
std::string myConnectionObjectGlobalID
Definition DtElement.h:246
virtual void reportDamageStateChanged()
Report that an element damage state has changed.
virtual void reportConnectionObjectType()
Report an element's type.
virtual void setVisible(bool visible)
Set the element to be visible.
std::string myConnectionObjectSidc
Definition DtElement.h:245
void slot_updateConnectionObjectGlobalID(const std::string &globalId)
Called when the global ID is discovered.
DtElement(DtBaseConnection &conn, DtElementID elementId)
Construct an element with the base connection and the element id.
virtual ~DtElement()
DTOR.
DtSharedSettingsManager & mySettingsManager
Definition DtElement.h:236
virtual const DtUnicode & elementDefinition() const
virtual bool visible() const
Get whether the element is visible.
const DtVisualizerCreationSettings::VisualTypeVisualizerCreationMap & myVisualTypeVisualizerCreationMap
Definition DtElement.h:237
void slot_updateConnectionObjectSidc(const std::string &sidc)
Called when the SIDC is discovered or changed.
virtual void setDisplayUnitCollectionName(const std::string &definition)
Set the display unit collection name to use for the element.
ModelSetToSceneObjectIdMap myModelSetToSceneObjectIdMap
Definition DtElement.h:255
virtual void updateElementDefinitionFromDefinitions(std::vector< DtUnicode > &definitions)
virtual const DtElementEntry::ElementType elementType() const =0
Virtual function for getting the element type.
virtual void reportConnectionObjectGlobalID()
Report an element's global ID.
void slot_updateDisplayName(const std::string &text)
Called when display name for the element has been changed.
std::string myDriverType
Definition DtElement.h:249
virtual void removeSceneObjectIdForModelSet(DtModelSetId modelSet)
Erase the model set pair from the ModelSetToSceneObjectIdMap.
virtual void warnVisualizationFailed(const std::string &file, int line, const std::string &function, DtVisualizerSet *visSet, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet, DtException ex)
std::string myDisplayUnitCollectionName
Definition DtElement.h:242
virtual void reportElementDefinitionName()
Report the element's element definition.
virtual void setDistribute(const bool distribute)
DtBaseConnection & myBaseConnection
Definition DtElement.h:238
virtual void reportVisibility()
Report that an element visibility has changed.
virtual void setElementSubtype(DtElementAttributes::ElementSubtypes subtype)
Set the member variable myElementSubtype.
DtElement(const DtElement &)=delete
not allowed - copy constructor
virtual void reportConnectionObjectID()
Report an element's ID.
bool myDistribute
Definition DtElement.h:254
virtual void reportOverlayNameChanged()
Report that an element parent overlay name has changed.
bool myElementReported
Definition DtElement.h:253
EntityStateListener::DamageState myDamageState
Definition DtElement.h:251
virtual void reportElementSubtype()
virtual bool distribute() const
virtual void reportDisplayName()
Report that an element display name has changed.
virtual void setModelSetEnabled(DtModelSetId modelSet, bool enabled)=0
DtElementID myElementId
Definition DtElement.h:239
bool myElementVisible
Definition DtElement.h:252
virtual void changeElementAttribute(const DtElementAttribute *attr)
virtual void setElementId(const DtElementID)
DtElement & operator=(const DtElement &)=delete
not allowed - equals operator
virtual void reportElementCreated()
Reporting Methods.
DtElementAttributes::ElementSubtypes myElementSubtype
Definition DtElement.h:250
void slot_updateOverlayName(const std::string &pname)
Called when overlay name for the element has been changed.
virtual void reportConnectionObjectSidc()
Report an element's SIDC.
DtUnicode myElementDefinitionName
Definition DtElement.h:240
void slot_updateConnectionObjectType(const std::string &type)
std::string myConnectionObjectType
Definition DtElement.h:244
DtAgentManagerInterface & mySceneInterface
Definition DtElement.h:235
virtual void setElementDefinition(const DtUnicode &definition)
void slot_updateDamageState(EntityStateListener::DamageState state)
Called when damage state for the element has been changed.
const DtElementDefinition * myElementDefinition
Definition DtElement.h:241
virtual DtUniqueID sceneObjectIdForModelSet(DtModelSetId modelSet) const
Get the scene object ID for a specific model set.
std::string myDisplayName
Definition DtElement.h:247
void slot_updateConnectionObjectID(const std::string &id)
Called when the entity identifier is discovered.
Agent class for the scene object class: DtSceneObject.
Definition DtSceneObjectAgent.hpp:32
std::map< DtModelSetId, bool > ModelSetVisualizedMap
Definition DtSharedModelSetSettings.h:28
Definition DtSharedSettingsManager.h:43
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition DtStateListener.h:27
Definition DtUnicode.h:34
std::unordered_map< DtModelSetId, ModelSetVisualizerCreationMap > VisualTypeVisualizerCreationMap
Definition DtVisualizerCreationSettings.h:43
This contains all the DtVisualizers used to visualize an element in a particular model set.
Definition DtVisualizerSet.h:32
Definition DtEntityAudializer.h:24
DamageState
Definition DtEntityStateListener.h:66
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
DtModelSetId
Definition DtModelSetEnums.h:20
DtUniqueID DtElementID
Definition DtUniqueID.h:23
unsigned long long DtUniqueID
Definition DtUniqueID.h:19
ElementSubtypes
Definition DtElementAttributes.h:60
Contains DLL export macros.
#define DT_DLL_VRVCORE
Definition vrvCore.h:20