VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::VreTreeNode Struct Reference

Detailed Description

Represents a force node (level 0), entity node (level 1), or role node (level 2). Used internally by DtVreEntityRoleTreeModel to build the tree structure.

#include <vreEntityRoleTreeModel.h>

Public Attributes

VreNodeType myNodeType = EntityNode
 
DtUUID myEntityUUID
 
DtUUID myAggregateUUID
 
std::string myRoleName
 
std::string myDisplayName
 
int myForceType = 0
 
std::vector< std::string > myAvailableRoles
 
VreTreeNode * myParent = nullptr
 
std::vector< std::unique_ptr< VreTreeNode > > myChildren
 
int myRow = 0
 
QIcon myEntityIcon
 
int myCachedAssignedCount = -1
 
int myCachedTotalCount = -1
 
uint16_t mySimEngineSite = 0
 
uint16_t mySimEngineApp = 0
 
bool mySimEngineKnown = false
 
std::string mySimEngineCached
 

Member Data Documentation

◆ myNodeType

VreNodeType makVre::VreTreeNode::myNodeType = EntityNode

Node type in the hierarchy.

◆ myEntityUUID

DtUUID makVre::VreTreeNode::myEntityUUID

Entity UUID (for entity and role nodes; null UUID for force nodes)

◆ myAggregateUUID

DtUUID makVre::VreTreeNode::myAggregateUUID

Aggregate UUID (Phase 8 — valid only for AggregateNode rows)

◆ myRoleName

std::string makVre::VreTreeNode::myRoleName

Role name (empty for entity and force nodes)

◆ myDisplayName

std::string makVre::VreTreeNode::myDisplayName

Display name (force label, entity objectName / marking-text fallback, or role name)

◆ myForceType

int makVre::VreTreeNode::myForceType = 0

Force type value (force nodes only; SISO force ID)

◆ myAvailableRoles

std::vector<std::string> makVre::VreTreeNode::myAvailableRoles

Available roles for this entity (entity nodes only)

◆ myParent

VreTreeNode* makVre::VreTreeNode::myParent = nullptr

Parent node (nullptr for root force nodes)

◆ myChildren

std::vector<std::unique_ptr<VreTreeNode> > makVre::VreTreeNode::myChildren

Child nodes (entity nodes for force nodes, role nodes for entity nodes)

◆ myRow

int makVre::VreTreeNode::myRow = 0

Index of this node within parent's children.

◆ myEntityIcon

QIcon makVre::VreTreeNode::myEntityIcon

Entity type icon (entity nodes only; null for force and role nodes)

◆ myCachedAssignedCount

int makVre::VreTreeNode::myCachedAssignedCount = -1
mutable

Cached assigned-role count for this node (-1 = invalid / not yet cached)

Used by entity and force nodes to avoid recomputing assignment aggregates on every data() call. Invalidated by refresh() on every assignment-state change.

◆ myCachedTotalCount

int makVre::VreTreeNode::myCachedTotalCount = -1
mutable

Cached total-role count for this node (-1 = invalid / not yet cached)

Parallel to myCachedAssignedCount. For entity nodes the total equals the number of available roles, which is stable between assignment events; for force nodes it is the sum across child entities.

◆ mySimEngineSite

uint16_t makVre::VreTreeNode::mySimEngineSite = 0

Cached SISO siteId for the Sim Engine column (entity nodes only)

◆ mySimEngineApp

uint16_t makVre::VreTreeNode::mySimEngineApp = 0

Cached SISO applicationId / host for the Sim Engine column (entity nodes only)

◆ mySimEngineKnown

bool makVre::VreTreeNode::mySimEngineKnown = false

True if the cached (site, app) pair has been populated for this entity.

Force / role nodes always leave this false. Entity rows whose simulator address has not yet been observed also leave this false; the model treats them as "unknown" — the Sim Engine column displays an empty cell and the BySimEngine sort drops them to the bottom regardless of direction.

◆ mySimEngineCached

std::string makVre::VreTreeNode::mySimEngineCached

Pre-formatted "site:app" string for Qt::DisplayRole on column 2.

Empty when mySimEngineKnown is false. Cached so the model never blocks on a live reflected-entity lookup during paint.


The documentation for this struct was generated from the following file: