25 #include <boost/unordered_map.hpp>
29 class DtAgentManagerInterface;
30 class DtSharedSettingsManager;
31 class DtElementDefinitionNew;
33 namespace EntityStateListener
68 virtual void setVisible(
bool visible );
71 virtual bool visible()
const;
90 virtual void updateElementDefinitionFromDefinitions();
94 virtual void updateElementDefinitionFromDefinitions( std::vector<DtUnicode>& definitions );
99 virtual const DtUnicode& elementDefinition()
const;
100 virtual void setElementDefinition(
const DtUnicode& definition);
103 virtual std::string displayUnitCollectionName()
const;
106 virtual void setDisplayUnitCollectionName(
const std::string& definition);
113 virtual void setDriverType(
const std::string& driverType);
127 virtual ModelSetToSceneObjectIdMap& modelSetToSceneObjectIdMap();
144 virtual void reportElementCreated();
148 virtual void reportDisplayName();
151 virtual void reportConnectionObjectID();
154 virtual void reportConnectionObjectType();
157 virtual void reportOverlayNameChanged();
160 virtual void reportVisibility();
163 virtual void reportDamageStateChanged();
166 virtual void reportDriverType();
170 virtual void reportElementSubtype();
173 virtual void reportElementDefinitionName();
176 virtual void reportDisplayUnitCollectionName();
180 void slot_updateOverlayNameRaw(
const char* text);
183 void slot_updateConnectionObjectID(
const std::string&
id );
187 void slot_updateConnectionObjectType(
const std::string& type );
190 void slot_updateDisplayName(
const std::string& text);
193 void slot_updateOverlayName(
const std::string& pname);
201 virtual void getDefinitions( std::vector<DtUnicode>& definitions );
203 virtual void setModelSetEnabled(
int modelSet,
bool enabled ) = 0;
207 virtual bool distribute()
const;
208 virtual void setDistribute(
const bool distribute );
264 virtual const std::string& tag() = 0;
267 template<
typename ElementTemplateType>
291 return new ElementTemplateType( simulation, listener );
296 return ElementTemplateType::theElementType();
299 virtual const std::string&
tag()
302 const static std::string str(
"DIS" );
303 #elif DtHLA_1516_EVOLVED
304 const static std::string str(
"HLA1516e" );
306 const static std::string str(
"HLA1516" );
308 const static std::string str(
"HLA13" );
310 const static std::string str(
"" );
DtBaseConnection & myBaseConnection
Definition: DtElement.h:217
ModelSets
Definition: DtObserverMode.h:32
DtUnicode myElementDefinitionName
Definition: DtElement.h:219
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
std::string myDisplayUnitCollectionName
Definition: DtElement.h:221
DamageState
Definition: DtEntityStateListener.h:59
EntityStateListener::DamageState myDamageState
Definition: DtElement.h:228
std::string myElementOverlayName
Definition: DtElement.h:225
bool myElementReported
Definition: DtElement.h:230
boost::unordered_map< int, ModelSetVisualizerCreationMap > VisualTypeVisualizerCreationMap
Map that indicates whether a visualizer should be created, by visual type, for all given model sets...
Definition: DtVisualizerCreationSettings.h:42
The shared settings manager, is the global object responsible for managing any shared settings object...
Definition: DtSharedSettingsManager.h:42
Definition: DtElement.h:268
const DtElementDefinitionNew * myElementDefinition
Definition: DtElement.h:220
The DtElement class implements the common behavior of simulation based elements added to the scene...
Definition: DtElement.h:41
ElementSubtypes
Definition: DtElementAttributes.h:56
virtual DtElementCreatorTemplate * clone() const
Every derived class must override this method.
Definition: DtElement.h:283
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:38
Contains vrvCore::DtObserverMode class.
std::string myConnectionObjectType
Definition: DtElement.h:223
ModelSetToSceneObjectIdMap myModelSetToSceneObjectIdMap
Definition: DtElement.h:232
Contains makVrv::DtSharedModelSetSettings class.
bool myElementVisible
Definition: DtElement.h:229
Contains makVrv:DtEntityStateListener class.
DtElementID myElementId
Definition: DtElement.h:218
boost::unordered_map< DtObserverMode::ModelSets, DtUniqueID > ModelSetToSceneObjectIdMap
Definition: DtElement.h:45
Abstract DtElementCreator creator.
Definition: DtElement.h:237
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
virtual ~DtElementCreator()
DTOR.
Definition: DtElement.h:248
DtElementCreatorTemplate()
Definition: DtElement.h:272
virtual const std::string & tag()
Returns the creator's tag.
Definition: DtElement.h:299
The element definition class contains the element definition information. The makVrv::DtElementDefini...
Definition: DtElementDefinitionNew.h:25
ElementType
Definition: DtElementEntry.h:26
Contains makVrv:DtBaseConnection class.
Contains makVrv::DtElementAttributes class.
DtElementAttributes::ElementSubtypes myElementSubtype
Definition: DtElement.h:227
bool myDistribute
Definition: DtElement.h:231
DtSharedSettingsManager & mySettingsManager
Definition: DtElement.h:215
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:33
DtElementID elementID() const
Get the element ID of the element. Usually the element ID is the unique id of the listener...
Definition: DtElement.h:79
std::string myDisplayName
Definition: DtElement.h:224
const DtVisualizerCreationSettings::VisualTypeVisualizerCreationMap & myVisualTypeVisualizerCreationMap
Definition: DtElement.h:216
std::string myConnectionObjectID
Definition: DtElement.h:222
DtElementAttribute is a common base class used for all element attributes, such as those found in a D...
Definition: DtElementAttribute.h:20
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:25
DtElementCreator()
CTOR.
Definition: DtElement.h:242
DtAgentManagerInterface & mySceneInterface
Map that indicates whether a visualizer should be created, by visual type, for all given model sets...
Definition: DtElement.h:214
Contains makVrv::DtElementEntry class.
Contains makVrv::DtVisualizerCreationSettingsManager class.
virtual const DtElementEntry::ElementType elementType() const
Returns the creator's type.
Definition: DtElement.h:294
std::string myDriverType
Definition: DtElement.h:226
virtual ~DtElementCreatorTemplate()
DTOR.
Definition: DtElement.h:278
std::map< int, bool > ModelSetVisualizedMap
Definition: DtSharedModelSetSettings.h:27
virtual DtElement * createElement(DtBaseConnection &simulation, DtStateListener &listener) const
Create function.
Definition: DtElement.h:288
Contains DLL export macros.