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

Classes | |
| struct | DtModelSetData |
Public Types | |
| using | ModelSetDataArray = std::array< DtModelSetData, 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 () |
| using makVrv::DtEntityElement::ModelSetDataArray = std::array<DtModelSetData, MAX_MODEL_SETS> |
MAX_MODEL_SETS is defined in DtModelSetEnums.h.
| makVrv::DtEntityElement::DtEntityElement | ( | 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::DtAggregateElement, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkAggregateElement, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityElement.
|
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.
Reimplemented in makVrv::DtAggregateElement.
|
virtual |
Set the entity element to be visible. Wrapper for the listeners setObjectIsVisible.
|
virtual |
Reimplemented in makVrv::DtAggregateElement.
|
virtual |
Get the current model set array.
|
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 |
Get the listener for the entity this visualizer is visualizing.
|
overridevirtual |
Returns the element type, in this case entity.
Implements makVrv::DtElement.
Reimplemented in makVrv::DtAggregateElement, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityElement.
|
static |
|
virtual |
Goes through model set map and updates visibility state for each visualizer.
|
virtual |
Add/Remove the visualizer(s) to the visualSet for the modelSet indicated that have the given visual type.
|
virtual |
Add/Remove the visualizer(s) to the visualSet for the modelSet indicated that have the given visual type.
|
virtual |
Model set object accessors.
|
virtual |
Model set object accessors.
|
virtual |
Model set object accessors.
|
virtual |
Model set object accessors.
|
virtual |
|
virtual |
Smoothing.
This sets smoothing for all model sets
|
virtual |
Ground clampingThis sets ground clamping for all model sets.
|
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.
|
virtual |
An entity element is a leaf node if it has a parent.
Reimplemented in makVrv::DtAggregateElement.
|
virtual |
Set/get the parent of the entity if it is part of an aggregate hierarchy. (DtElementID)0 indicates that the element is unparented.
|
virtual |
Set/get the parent of the entity if it is part of an aggregate hierarchy. (DtElementID)0 indicates that the element is unparented.
|
virtual |
Slot used to listen for change to leaf node visibility from the entity state listener.
|
protectedvirtual |
Called when the listener indicates the element has become visible or not.
|
protected |
Called when the listener indicates that setObjectIsVisibleCalled, regardless of whether or not that actually results in a visibility change. This is tracked to support 'Show Leaf Nodes' in 3D.
|
protectedvirtual |
Create an entity kinematic state.
Reimplemented in makVrv::DtAggregateElement.
|
protectedvirtual |
Process any element parameters for this entity.
|
protected |
|
protected |
|
protected |
Referenced by findVisualizers(), and findVisualizersByDynamicCast().
|
protected |
|
protected |