![]() |
VR-Forces Developer's Guide
|
A single vertex tactical graphic element. This element requires its own kinematic state object. DtShapeTacticalGraphicElements create DtVertexTacticalGraphicElements. DtVertexTacticalGraphicElement's can be instantiated on their own as well. When created by a tactical graphic shape this element will maintain the vertex index that it has been assigned, the index corresponds to the vertex list in the DtTacticalGraphicStateListener.

Static Public Member Functions | |
| static const DtElementEntry::ElementType | theElementType () |
Static Public Member Functions inherited from makVrv::DtPointTacticalGraphicElement | |
| static const DtElementEntry::ElementType | theElementType () |
Static Public Member Functions inherited from makVrv::DtTacticalGraphicElement | |
| static const DtElementEntry::ElementType | theElementType () |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTacticalGraphicElement | |
| using | ModelSetDataArray = std::array< DtTacticalGraphicModelSetData, MAX_MODEL_SETS > |
Public Types inherited from makVrv::DtElement | |
| using | ModelSetToSceneObjectIdMap = boost::unordered_map< DtModelSetId, DtUniqueID > |
Protected Member Functions inherited from makVrv::DtTacticalGraphicElement | |
| virtual void | processElementParameters () |
| void | setKindAndCategory (int kind, int category) |
| virtual void | reportKindAndCategory () |
| virtual void | slot_visibilityChanged (bool vis) |
Protected Member Functions inherited from makVrv::DtElement | |
| void | slot_updateOverlayNameRaw (const char *text) |
| void | slot_updateConnectionObjectID (const std::string &id) |
| void | slot_updateConnectionObjectType (const std::string &type) |
| void | slot_updateDisplayName (const std::string &text) |
| void | slot_updateOverlayName (const std::string &pname) |
| void | slot_updateDamageState (EntityStateListener::DamageState state) |
| virtual void | getDefinitions (std::vector< DtUnicode > &definitions) |
| virtual void | warnVisualizationFailed (const std::string &file, int line, const std::string &function, DtVisualizerSet *visSet, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet, DtException ex) |
| virtual void | reportDisplayName () |
| virtual void | reportConnectionObjectID () |
| virtual void | reportConnectionObjectType () |
| virtual void | reportOverlayNameChanged () |
| virtual void | reportVisibility () |
| virtual void | reportDamageStateChanged () |
| virtual void | reportDriverType () |
| virtual void | reportElementSubtype () |
| virtual void | reportElementDefinitionName () |
| virtual void | reportDisplayUnitCollectionName () |
| virtual bool | distribute () const |
| virtual void | setDistribute (const bool distribute) |
| makVrv::DtVertexTacticalGraphicElement::DtVertexTacticalGraphicElement | ( | DtBaseConnection & | conn, |
| DtStateListener & | listener | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed - equals operator
|
virtual |
Generally vertex elements are created by shape elements, meaning they use the shape's listener. We must override some values that DtTacticalGraphicElement has set because they refer to the shape, not the vertex. This method calls myConnections.disconnectSignals() to stop the vertex type getting updated if the shape element changes type. Calls: slot_updateOverlayName, slot_updateDisplayName. slot_updateConnectionObjectID Reconnects to: signal_forceTypeSet To instantiate a vertex element on its own with a custom listener, do not call this method.
|
overridevirtual |
Returns the element type, in this case tactical graphic vertex.
Reimplemented from makVrv::DtPointTacticalGraphicElement.
|
static |
|
overridevirtual |
Override to set the parent element ID to the shape that created this vertex.
Reimplemented from makVrv::DtElement.
|
virtual |
Parent element id mutators The listener also contains the parent element ID, as one listener is used for the entire shape.
|
virtual |
Parent element id mutators The listener also contains the parent element ID, as one listener is used for the entire shape.
|
overridevirtual |
Visualize the element.
Reimplemented from makVrv::DtTacticalGraphicElement.
Vertex index.
|
virtual |
Vertex index.
|
virtual |
Model set object accessors.
Returns casted type for convenience Can return nullptr
|
overridevirtual |
Create a DtVertexEnvironmentalKinematicState object Calls setVertexIndex on the kin state.
Reimplemented from makVrv::DtPointTacticalGraphicElement.
|
protected |
|
protected |