![]() |
VR-Forces 4.3 Class Documentation
|
The DtVrlinkElement class implements the common behavior of VR-Link simulation based elements added to the scene. More...

Public Member Functions | |
| DtVrlinkElement (DtBaseConnection &conn, DtElementID elementId) | |
| Construct an element with the base connection and the element id. | |
| virtual | ~DtVrlinkElement () |
| virtual void | visualize (const DtSharedModelSetSettings::ModelSetVisualizedMap &sets) |
| Visualize the element. | |
| virtual void | setVisible (bool visible) |
| Set the element to be visible. | |
| bool | visible () const |
| Get whether the element is visible. | |
| DtElementID | elementID () const |
| Get the element ID of the element. | |
| const DtUnicode & | definition () const |
| Accessor to get the visual definition. | |
| virtual DtElementEntry::ObjectType | elementType () const =0 |
| Virtual function for getting the element type. | |
| virtual void | changeElementAttribute (const DtElementAttribute *attr) |
| Request a change to the value of one of this element's attributes. | |
Protected Member Functions | |
| void | reportElementCreated () |
| Report that an element was created. | |
| void | reportDisplayName () |
| Report that an element display name has changed. | |
| void | reportConnectionObjectType () |
| Report an element's ID. | |
| void | reportConnectionObjectID () |
| Report an element's type. | |
| void | reportOverlayNameChanged () |
| Report that an element parent overlay name has changed. | |
| void | reportVisibility () |
| Report that an element visibility has changed. | |
| void | reportDamageStateChanged () |
| Report that an element damage state has changed. | |
| void | updateEntityType (const DtEntityType &type) |
| void | slot_updateDisplayNameRaw (const char *text) |
| Called when display name for the element has been changed - passed as raw. | |
| void | slot_updateOverlayNameRaw (const char *text) |
| Called when overlay name for the element has been changed - passed as raw. | |
| void | slot_updateConnectionObjectID (const DtEntityIdentifier &id) |
| Called when the entity identifier is discovered. | |
| void | slot_updateDisplayName (const std::string &text) |
| Called when display name for the element has been changed. | |
| void | slot_updateOverlayName (const std::string &pname) |
| Called when overlay name for the element has been changed. | |
| void | slot_updateDamageState (const unsigned int state) |
| Called when damage state for the element has been changed. | |
| virtual void | getDefinitions (std::vector< DtUnicode > &definitions)=0 |
| virtual void | setModelSetEnabled (int modelSet, bool enabled)=0 |
Protected Attributes | |
| DtBaseConnection & | myBaseConnection |
| DtElementID | myElementId |
| DtUnicode | myElementDefinition |
| std::string | myConnectionObjectID |
| std::string | myConnectionObjectType |
| std::string | myDisplayName |
| std::string | myElementOverlayName |
| unsigned int | myDamageState |
| bool | myElementVisible |
| bool | myElementReported |
The DtVrlinkElement class implements the common behavior of VR-Link simulation based elements added to the scene.
Examples of specific elements include Entities, and Tactical Graphics.
| makVrv::DtVrlinkElement::DtVrlinkElement | ( | DtBaseConnection & | conn, |
| DtElementID | elementId | ||
| ) |
Construct an element with the base connection and the element id.
|
virtual |
|
virtual |
Visualize the element.
Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtSmokeElement, makVrv::DT_PROTOCOL_NAMESPACE::DtTacticalGraphicElement, makVrv::DT_PROTOCOL_NAMESPACE::DtEntityElement, makVrv::DT_PROTOCOL_NAMESPACE::DtLaserDesignatorElement, and makVrv::DT_PROTOCOL_NAMESPACE::DtAggregateElement.
|
virtual |
Set the element to be visible.
Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtTacticalGraphicElement, makVrv::DT_PROTOCOL_NAMESPACE::DtSmokeElement, makVrv::DT_PROTOCOL_NAMESPACE::DtEntityElement, makVrv::DT_PROTOCOL_NAMESPACE::DtLaserDesignatorElement, and makVrv::DT_PROTOCOL_NAMESPACE::DtAggregateElement.
| bool makVrv::DtVrlinkElement::visible | ( | ) | const |
Get whether the element is visible.
|
inline |
Get the element ID of the element.
Usually the element ID is the unique id of the listener.
| const DtUnicode& makVrv::DtVrlinkElement::definition | ( | ) | const |
Accessor to get the visual definition.
The definition changes when updateEntityType is called.
|
pure virtual |
Virtual function for getting the element type.
Implemented in makVrv::DT_PROTOCOL_NAMESPACE::DtEntityElement, makVrv::DT_PROTOCOL_NAMESPACE::DtLaserDesignatorElement, makVrv::DT_PROTOCOL_NAMESPACE::DtAggregateElement, makVrv::DT_PROTOCOL_NAMESPACE::DtTacticalGraphicElement, and makVrv::DT_PROTOCOL_NAMESPACE::DtSmokeElement.
|
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.
|
protected |
Report that an element was created.
|
protected |
Report that an element display name has changed.
|
protected |
Report an element's ID.
|
protected |
Report an element's type.
|
protected |
Report that an element parent overlay name has changed.
|
protected |
Report that an element visibility has changed.
|
protected |
Report that an element damage state has changed.
|
protected |
|
protected |
Called when display name for the element has been changed - passed as raw.
|
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 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.
|
protectedpure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |