|
VR-Engage
2.2
|
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>
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 DtVreModelSetDb & | instance (makVrv::DtDe &displayEngine) |
Protected Attributes | |
| DtVreModelSet * | myModelSet |
| makVrv::DtDe & | myDe |
Private Member Functions | |
| DtVreModelSetDb (makVrv::DtDe &de) | |
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the model set database.
|
private |
Constructor.
| de | The 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().
|
virtual |
Loads entity definition files.
| baseDir | The base directory to search in |
| paths | Additional 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.
|
virtual |
Finds a model set entry matching an entity type.
| entityType | The entity type to find a matching pattern for |
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.
|
virtual |
Looks up available station data for an entity.
| uuid | The UUID of the entity to look up stations for |
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.
|
virtual |
Determines if an entity type is VREngage-controllable.
| entityType | The entity type to check |
Checks if the specified entity type is defined in a VREngage entity file, indicating that it can be controlled by VREngage applications.
|
static |
Gets the singleton instance of the model set database.
| displayEngine | The distributed environment to use |
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().
|
protected |
The VREngage model set.
Contains information about VREngage entity types and station definitions.
|
protected |
Reference to the distributed environment.
Used to access simulation state information.