VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreModelSetDb Class Reference

Detailed Description

This singleton class manages model set information specific to VREngage entities, including loading and accessing entity definition files (.entity) and providing information about available stations/roles for VREngage-controllable entities.

#include <vreModelSetDb.h>

Inheritance diagram for makVre::DtVreModelSetDb:
[legend]

Public Member Functions

virtual ~DtVreModelSetDb () override
 
virtual void loadEntityFiles (const std::string &baseDir, const std::vector< DtFilename > &paths)
 
virtual DtModelSetEntry * findMatchingPattern (const DtEntityType &entityType) const
 
virtual QStringList lookupEngageStationData (const DtUUID &uuid)
 
virtual bool isVreEntityType (const DtEntityType &entityType) const
 

Static Public Member Functions

static DtVreModelSetDbinstance (makVrv::DtDe &displayEngine)
 

Protected Attributes

DtVreModelSetmyModelSet
 
makVrv::DtDe & myDe
 

Private Member Functions

 DtVreModelSetDb (makVrv::DtDe &de)
 

Constructor & Destructor Documentation

◆ ~DtVreModelSetDb()

virtual makVre::DtVreModelSetDb::~DtVreModelSetDb ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the model set database.

◆ DtVreModelSetDb()

makVre::DtVreModelSetDb::DtVreModelSetDb ( makVrv::DtDe & de)
private

Constructor.

Parameters
deThe distributed environment reference

Initializes a new model set database. This constructor is private because this class is a singleton and should only be accessed via instance().

References de().

Referenced by instance().

Member Function Documentation

◆ loadEntityFiles()

virtual void makVre::DtVreModelSetDb::loadEntityFiles ( const std::string & baseDir,
const std::vector< DtFilename > & paths )
virtual

Loads entity definition files.

Parameters
baseDirThe base directory to search in
pathsAdditional search paths for entity files

Loads files of type .entity from the specified directories. These files define the available stations/roles for VREngage-controllable entities.

◆ findMatchingPattern()

virtual DtModelSetEntry * makVre::DtVreModelSetDb::findMatchingPattern ( const DtEntityType & entityType) const
virtual

Finds a model set entry matching an entity type.

Parameters
entityTypeThe entity type to find a matching pattern for
Returns
Pointer to the matching model set entry, or NULL if not found

Searches the model set for an entry that matches the specified entity type. Used to determine if an entity can be controlled by VREngage and which stations/roles are available for it.

◆ lookupEngageStationData()

virtual QStringList makVre::DtVreModelSetDb::lookupEngageStationData ( const DtUUID & uuid)
virtual

Looks up available station data for an entity.

Parameters
uuidThe UUID of the entity to look up stations for
Returns
List of available station names for the entity

Returns a list of station names (roles) available for the entity with the specified UUID. These are the roles that can be assigned to a player.

◆ isVreEntityType()

virtual bool makVre::DtVreModelSetDb::isVreEntityType ( const DtEntityType & entityType) const
virtual

Determines if an entity type is VREngage-controllable.

Parameters
entityTypeThe entity type to check
Returns
True if the entity type is VREngage-controllable, false otherwise

Checks if the specified entity type is defined in a VREngage entity file, indicating that it can be controlled by VREngage applications.

◆ instance()

static DtVreModelSetDb & makVre::DtVreModelSetDb::instance ( makVrv::DtDe & displayEngine)
static

Gets the singleton instance of the model set database.

Parameters
displayEngineThe distributed environment to use
Returns
Reference to the singleton instance

Returns the singleton instance of the model set database, creating it if it doesn't already exist. This is the proper way to access the database.

References DtVreModelSetDb().

Member Data Documentation

◆ myModelSet

DtVreModelSet* makVre::DtVreModelSetDb::myModelSet
protected

The VREngage model set.

Contains information about VREngage entity types and station definitions.

◆ myDe

makVrv::DtDe& makVre::DtVreModelSetDb::myDe
protected

Reference to the distributed environment.

Used to access simulation state information.


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