![]() |
VR-Forces Developer's Guide
|
Manages loading and destruction of the geometric models for objects. Will reference the object parameter database to load up parameter entries to find their object model. If an entry does not have an object model associated with it, then an alternate representation object model will be constructed out of the entity's extent.
Public Member Functions | |
| DtObjectGeometricModelsManager (const DtSimulationServices *) | |
| virtual | ~DtObjectGeometricModelsManager () |
| virtual std::shared_ptr < DtTerrainInterface > | objectModelEntry (const DtUUID &parent) const |
| virtual std::shared_ptr < DtTerrainInterface > | objectModelEntry (const DtEntityType &type) const |
| virtual std::shared_ptr < DtTerrainInterface > | objectModelEntry (const DtVrfObjectParameters *, const DtEntityType &) const |
| virtual std::shared_ptr < DtTerrainInterface > | lookupModelEntry (const DtMovingObjectParameters &) const |
| virtual std::shared_ptr < DtTerrainInterface > | addModelEntry (const DtVrfObjectParameters *, const DtEntityType &) |
| virtual void | remove (const DtMovingObjectParameters &objectType) |
| virtual void | removeAll () |
| virtual std::shared_ptr < DtTerrainInterface > | createObjectModelEntry (const DtVrfObjectParameters *, const DtEntityType &) |
| virtual void | init () |
Protected Types | |
| typedef std::unordered_map < std::string, std::shared_ptr < DtTerrainInterface > > | DtObjectModelContainer |
| typedef DtObjectModelContainer::iterator | DtObjectModelIter |
| typedef DtObjectModelContainer::const_iterator | DtObjectModelConstIter |
Protected Member Functions | |
| virtual std::shared_ptr < DtTerrainInterface > | createObjectModel (const DtFilename &, const DtEntityType &s) const |
Protected Attributes | |
| DtObjectModelContainer | myObjectModels |
| const DtSimulationServices * | mySimulationServices |
| tbb::spin_rw_mutex | myObjectModelsMutex |
|
protected |
|
protected |
|
protected |
| DtObjectGeometricModelsManager::DtObjectGeometricModelsManager | ( | const DtSimulationServices * | ) |
default constructor
|
virtual |
destructor
|
virtual |
Given the parent name, looks up the parent in the object manager. If model exists for that object type, returns the object model for that. If not, adds the new object model to the list and returns the new entry.
|
virtual |
|
virtual |
If object model for entry does not exist, returns new object model for that type and adds it to the internal list.
|
virtual |
Looks up and returns a model for a given type.
|
virtual |
Adds a new model.
|
virtual |
Remove the entry for the given object type from the database. Deletes the memory associated with the entry.
|
virtual |
Remove all entries in the parameter database. Deletes memory associated with entries in the database.
|
virtual |
Creates a new object model (and loads the terrain or creates a new terrain database) and returns it. Also sets the object model should delete the terrain database on deletion.
|
virtual |
|
protectedvirtual |
Creates a new object model from the visuals provided by the entity type. If the underlying system does not support this then no object model will be created. If the filename is empty the underlying code should use the entity type for the visuals.
|
protected |
|
protected |
|
mutableprotected |