![]() |
VR-Forces 5.0.2 Developer's Guide
|
The DtElement class implements the common behavior of simulation based elements added to the scene. Examples of specific elements include Entities, and Tactical Graphics.

Public Types | |
| using | ModelSetToSceneObjectIdMap = boost::unordered_map< DtObserverMode::ModelSets, DtUniqueID > |
| using makVrv::DtElement::ModelSetToSceneObjectIdMap = boost::unordered_map<DtObserverMode::ModelSets, DtUniqueID> |
| makVrv::DtElement::DtElement | ( | DtBaseConnection & | conn, |
| DtElementID | elementId | ||
| ) |
Construct an element with the base connection and the element id.
|
virtual |
DTOR.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
virtual |
Visualize the element.
Reimplemented in makVrv::DtTacticalGraphicElement, makVrv::DtEntityElement, makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainElement, makVrv::DtVertexTacticalGraphicElement, makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfVrlinkEntityElement, makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfVrlinkAggregateElement, makVrv::DtAggregateElement, makVrv::DT_PROTOCOL_NAMESPACE::DtSmokeElement, makVrv::DtShapeTacticalGraphicElement, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateElement, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityElement, makVrv::DtPointTacticalGraphicElement, and makVrv::DT_PROTOCOL_NAMESPACE::DtLaserDesignatorElement.
|
virtual |
Set the element to be visible.
Reimplemented in makVrv::DtTacticalGraphicElement, makVrv::DtEntityElement, and makVrv::DtIntervisibilityElement.
|
virtual |
Get whether the element is visible.
|
virtual |
Set the element ID - used for the likes of vertex elements, where the element ID is not the listeners unique ID.
|
inline |
Get the element ID of the element. Usually the element ID is the unique id of the listener.
|
virtual |
Element definition.
Calls getDefinitions - which is only implemented by derived classes such as VRL. Sets the element definition from getDefinitions. If there is more than one element definition in the list, randomly picks a definition to use.
|
virtual |
Sets the element definition from the in param list of definitions. If there is more than one element definition in the list, randomly picks a definition to use.
|
virtual |
Accessor to get the visual definition. The definition changes when updateEntityType is called.
|
virtual |
|
virtual |
Get the display unit collection name to use for the element.
|
virtual |
Set the display unit collection name to use for the element.
|
pure virtual |
Virtual function for getting the element type.
Implemented in makVrv::DtTacticalGraphicElement, makVrv::DtEntityElement, makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainElement, makVrv::DT_PROTOCOL_NAMESPACE::DtLaserDesignatorElement, makVrv::DtIntervisibilityElement, makVrv::DtAggregateElement, makVrv::DT_PROTOCOL_NAMESPACE::DtSmokeElement, makVrv::DtVertexTacticalGraphicElement, makVrf::DtVrfSpotReportElement, makVrv::DtShapeTacticalGraphicElement, makVrv::DtPointTacticalGraphicElement, and makVrf::DtVrfTDLMessageDataElement.
|
virtual |
Specify which driver the element came from. Specializing elements will usually set this.
|
virtual |
Set the member variable myElementSubtype.
|
virtual |
Request a change to the value of one of this element's attributes. Non-elements (inluding objects in the main thread) may request that the value of some attribute of an element be modifed; that is effected here.
|
virtual |
Elements can contain multiple model sets, and each model set requires a scene object, these methods map them to each other.
Get the model set to scene object ID map
|
virtual |
Associate a model set of this element with a specific scene object.
|
virtual |
Erase the model set pair from the ModelSetToSceneObjectIdMap.
|
virtual |
Get the scene object ID for a specific model set.
|
protectedvirtual |
Reporting Methods.
Report that an element was created.
Reimplemented in makVrv::DtVertexTacticalGraphicElement.
|
protectedvirtual |
Report that an element display name has changed.
|
protectedvirtual |
Report an element's ID.
|
protectedvirtual |
Report an element's type.
|
protectedvirtual |
Report that an element parent overlay name has changed.
|
protectedvirtual |
Report that an element visibility has changed.
|
protectedvirtual |
Report that an element damage state has changed.
|
protectedvirtual |
Report that the element comes from a specific connection.
Reimplemented in makVrv::DtIntervisibilityElement.
|
protectedvirtual |
Report the element's subtype. Some element types (Entity and Aggregate currently) that are used to further categorized them for display.
|
protectedvirtual |
Report the element's element definition.
|
protectedvirtual |
Report the element's display unit type.
|
protected |
Called when overlay name for the element has been changed - passed as raw.
|
protected |
Called when the entity identifier is discovered.
|
protected |
Called when the entity type is discovered or changed Calls updateElementDefinitionFromDefinitions()
|
protected |
Called when display name for the element has been changed.
|
protected |
Called when overlay name for the element has been changed.
|
protected |
Called when damage state for the element has been changed.
|
protectedvirtual |
Intentional NOP Overridden by derived connection specfic elements. Some elements do not require connection specific types, such as TGs.
Reimplemented in makVrv::DtIntervisibilityElement, makVrv::DT_PROTOCOL_NAMESPACE::DtLaserDesignatorElement, makVrv::DT_PROTOCOL_NAMESPACE::DtSmokeElement, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateElement, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityElement.
|
protectedpure virtual |
Implemented in makVrv::DtIntervisibilityElement, makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainElement, makVrv::DtTacticalGraphicElement, makVrv::DtEntityElement, makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfVrlinkAggregateElement, makVrv::DtAggregateElement, makVrv::DT_PROTOCOL_NAMESPACE::DtSmokeElement, makVrv::DT_PROTOCOL_NAMESPACE::DtLaserDesignatorElement, makVrf::DtVrfSpotReportElement, and makVrf::DtIntervisibilityRadarCoverageElement.
|
protectedvirtual |
Get / Set the distribute flag.
|
protectedvirtual |
Get / Set the distribute flag.
|
protected |
Map that indicates whether a visualizer should be created, by visual type, for all given model sets.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |