![]() |
VR-Forces Developer's Guide
|
A single tactical graphic element. A tactical graphic element may be visualized using multiple visualizer sets one per model set.

Classes | |
| struct | DtTacticalGraphicModelSetData |
Public Types | |
| using | ModelSetDataArray = std::array< DtTacticalGraphicModelSetData, MAX_MODEL_SETS > |
Public Types inherited from makVrv::DtElement | |
| using | ModelSetToSceneObjectIdMap = boost::unordered_map< DtModelSetId, DtUniqueID > |
Static Public Member Functions | |
| static const DtElementEntry::ElementType | theElementType () |
Protected Member Functions | |
| 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 | reportElementCreated () |
| 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) |
| using makVrv::DtTacticalGraphicElement::ModelSetDataArray = std::array<DtTacticalGraphicModelSetData, MAX_MODEL_SETS> |
MAX_MODEL_SETS is defined in DtModelSetEnums.h.
| makVrv::DtTacticalGraphicElement::DtTacticalGraphicElement | ( | DtBaseConnection & | conn, |
| DtStateListener & | listener | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed - equals operator
|
overridevirtual |
Visualize the element. Find the element definition and creates the element wide kinematic state - DtEntityKinematicState. Processes the element wide parameters in preparation for calling DtElement::visualize. Element wide parameters are currently those specified for the 3D Model Set. DtSharedModelSetSettings::ModelSetVisualizedMap contains the model sets that are to be visualized. Each entry in the map is passed to setModelSetEnabled to either be created or destroyed if it has already been created.
Reimplemented from makVrv::DtElement.
Reimplemented in makVrv::DtVertexTacticalGraphicElement, and makVrv::DtShapeTacticalGraphicElement.
|
overridevirtual |
Sets the particular model set up. Does nothing if it already exists. This method does a large portion of entity creation. It creates the sceneObject agent and the visualizer set for a model set. It sets information from the visualizer definition on the kin state, and then calls updateVisibilityState If the model set is disabled it will delete the pointers and the stuct in myModelSetToEntityObjectMap.
Implements makVrv::DtElement.
|
virtual |
|
virtual |
|
inline |
Find all visualizers Note this is for all model sets.
References myModelSetDataArray.
|
inline |
Find all visualizers in all model sets if they satisfy the dynamic_cast to the VizualizerClass.
References myModelSetDataArray.
|
virtual |
Set the element to be visible.
|
virtual |
Get the current model set array.
|
virtual |
Model set object accessors.
|
virtual |
Model set object accessors.
|
virtual |
Model set object accessors.
|
virtual |
Model set object accessors.
|
virtual |
Attempt to find this element's kinematic state, can return nullptr.
|
virtual |
Get the listener for the entity this visualizer is visualizing.
|
overridevirtual |
Returns the element type, in this case tactical graphic.
Implements makVrv::DtElement.
Reimplemented in makVrv::DtVertexTacticalGraphicElement, makVrv::DtShapeTacticalGraphicElement, and makVrv::DtPointTacticalGraphicElement.
|
static |
|
virtual |
Used to set the elements subtype, which is used to determine force type in the object list panel.
|
virtual |
Create a DtEnvironmentalKinematicState object Shape and Vertex elements override this method to create derived types.
Reimplemented in makVrv::DtShapeTacticalGraphicElement, makVrv::DtVertexTacticalGraphicElement, and makVrv::DtPointTacticalGraphicElement.
|
virtual |
PickableSet pickable for all model sets.
|
virtual |
Set pickable for a specific model set.
|
virtual |
Scene Object Unique IDs.
Get the IDs for all the scene objects in this element There is one scene object per model set
|
virtual |
Get the ID of a scene object for a specific model set.
|
protectedvirtual |
Process any element parameters for this entity.
Set the kind and category for later identification of this tactical Not virtual called from constructor.
|
protectedvirtual |
Report that element kind/category was updated.
|
protectedvirtual |
Called when the listener indicates the element has become visible or not.
|
protected |
|
protected |
|
protected |
Referenced by findVisualizers(), and findVisualizersByDynamicCast().
|
protected |