|
VR-Engage
2.2
|
This class extends the base VRF model set to provide VREngage-specific functionality for managing collections of entity models, including loading entity files and resolving variable bindings.
#include <vreModelSet.h>
Public Member Functions | |
| DtVreModelSet () | |
| DtVreModelSet (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| virtual | ~DtVreModelSet () override |
| DtVreModelSet (const DtVreModelSet &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| virtual const boost::unordered_map< DtString, DtModelSetEntry * > & | fastMap () const |
| std::shared_ptr< makVre::DtVreModelSetEntry > | loadEntityFile (const std::string &filename, const SearchPaths &smsSearchPaths, DtInitializer *initializer=0) |
Static Public Member Functions | |
| static DtModelSet * | Create (const DtString &name, DtReaderWriterRegistry *parentRegistry) |
| static void | recursiveFindVariableBindingPaths (const std::vector< DtString > &smsList, const std::string &binding, std::vector< DtFilename > *searchPaths) |
| static void | getIncludedSMSs (const std::vector< DtString > &smsList, std::vector< DtString > *includedSMSs) |
| static DtFilename | getVariableBinding (const DtString &smsFile, const std::string &bindingToLookFor) |
| makVre::DtVreModelSet::DtVreModelSet | ( | ) |
Default constructor.
Creates an empty model set with no name or registry
Referenced by DtVreModelSet().
| makVre::DtVreModelSet::DtVreModelSet | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Named constructor with optional registry.
| name | The name of the model set |
| parentRegistry | Optional parent registry for resource loading |
|
overridevirtual |
Virtual destructor.
Cleans up resources owned by the model set
| makVre::DtVreModelSet::DtVreModelSet | ( | const DtVreModelSet & | orig, |
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Copy constructor.
| orig | The model set to copy |
| parentRegistry | Optional parent registry for resource loading |
References DtVreModelSet().
|
virtual |
Gets the fast lookup map of model set entries.
This method provides efficient access to the model set entries using a hash map.
| std::shared_ptr< makVre::DtVreModelSetEntry > makVre::DtVreModelSet::loadEntityFile | ( | const std::string & | filename, |
| const SearchPaths & | smsSearchPaths, | ||
| DtInitializer * | initializer = 0 ) |
Loads a model set entry from an entity file.
| filename | Path to the .entity file to load |
| smsSearchPaths | Search paths for SMS files |
| initializer | Optional initializer for the loaded entity |
This method loads an entity file and creates a corresponding model set entry.
|
static |
Factory method for creating model set instances.
| name | The name of the model set to create |
| parentRegistry | Optional parent registry for resource loading |
This static method creates a new instance of DtVreModelSet. Used by the factory system.
|
static |
Recursively searches for variable bindings in SMS files.
| smsList | List of SMS file paths to search |
| binding | The variable binding name to search for |
| searchPaths | Output parameter to store the found binding paths |
This utility function recursively searches through SMS files and their included files to find all locations of a particular variable binding.
|
static |
Gets all SMS files included by a list of SMS files.
| smsList | List of SMS file paths to process |
| includedSMSs | Output parameter to store the list of included SMS files |
This utility function recursively searches through SMS files to find all SMS files they include, building a complete list of dependencies.
|
static |
Gets a specific variable binding from an SMS file.
| smsFile | Path to the SMS file to search |
| bindingToLookFor | The variable binding name to search for |
This utility function looks for a specific variable binding in a single SMS file and returns its value if found.