![]() |
VR-Forces 5.0.2 Developer's Guide
|
This class will load and parse models for their articulated parts. The manager is initialized with an optional de. If there is no de specified it will create it's own simple singleton de and load visuals for the given simulation model set. If it is supplied with a de it is assumed that de already has the appropriate visuals loaded.

Classes | |
| struct | ModelInformation |
Public Types | |
| typedef std::map< int, DtVrfModelArticulatedPart > | ArticulatedParts |
| typedef std::map< int, std::vector< int > > | ModelStates |
Public Member Functions | |
| DtVrfModelManager (makVrv::DtDe *de=0) | |
| virtual | ~DtVrfModelManager () |
| virtual bool | loadVisuals (const DtScenarioExplorer &, bool force=false) |
| virtual DtFilename | modelFilename (const DtEntityType &) |
| virtual ArticulatedParts | articulatedPartsFor (const DtEntityType &, bool cacheIfMissing=true) |
| virtual ArticulatedParts | articulatedPartsFor (const DtFilename &, const DtVector &positionOffset=DtVector::zero(), const DtTaitBryan &orientationOffset=DtTaitBryan(), const DtFilename &source=DtFilename(), bool cacheIfMissing=true) |
| virtual std::vector < ModelInformation > | modelDefinitionsFor (const DtEntityType &objectType) const |
| virtual makVrv::DtModelDefinition * | modelDefinitionFromFilename (const DtFilename &) |
| virtual ModelStates | modelStatesFor (const DtEntityType &objectType) |
| virtual ModelStates | modelStatesFor (const DtFilename &f) |
| virtual void | setBlockImageLoading (bool) |
| bool | blockImageLoading () const |
Protected Types | |
| typedef std::set< DtFilename > | SimulationModelSetVisuals |
| typedef std::map< std::string, ArticulatedParts > | ArticulatedPartsByFilename |
| typedef std::map< std::string, std::string > | ModelDefinitionsByFilename |
| typedef std::map< std::string, ModelStates > | ModelStatesByFilename |
Protected Member Functions | |
| virtual bool | loadVisuals (DtSimulationModelSet *) |
| virtual bool | load (const DtFilename &directory, const DtString &root) |
| virtual bool | load (const DtFilename &original, const DtString &root, int type) |
| virtual bool | loadMapper (const DtFilename &original, const DtString &root, int mapType) |
| virtual void | removeMappings (makVrv::DtEntityTypeMapper &mapper, const makArchives::DtEntityTypeMappingRecord &record) const |
| virtual void | updateUnknowns () |
| virtual bool | isUnknown (std::vector< std::string >) const |
| virtual DtVrfModelArticulatedPart | articulatedPartInformationFor (int part, DtVrfDeprecatedOsgArticulatedModel &, const DtVector &positionOffset=DtVector::zero(), const DtTaitBryan &orientationOffset=DtTaitBryan()) const |
| virtual void | fillInModelInformationFor (const DtFilename &original, ArticulatedParts &partInfo, const DtVector &positionOffset=DtVector::zero(), const DtTaitBryan &orientationOffset=DtTaitBryan(), const DtFilename &source=DtFilename(), bool cacheIfMissing=true) |
Protected Attributes | |
| makVrv::DtDe * | myDe |
| bool | myOwnsDe |
| SimulationModelSetVisuals | mySimulationModelSetVisuals |
| ArticulatedPartsByFilename | myArticulatedPartsByFilename |
| ModelDefinitionsByFilename | myModelDefinitionsByFilename |
| ModelStatesByFilename | myModelStatesByFilename |
| std::set< std::string > | myUnknowns |
| tbb::mutex | myMutex |
| bool | myBlockImageLoading |
Private Member Functions | |
| DtVrfModelManager (const DtVrfModelManager &) | |
| DtVrfModelManager & | operator= (const DtVrfModelManager &) |
| typedef std::map<int, DtVrfModelArticulatedPart> DtVrfModelManager::ArticulatedParts |
Returns the articulated part mappings for the given entity type.
| typedef std::map<int, std::vector<int> > DtVrfModelManager::ModelStates |
Returns a list of potential model states and their state (i.e. lights, etc)
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
Not Implemented.
| DtVrfModelManager::DtVrfModelManager | ( | makVrv::DtDe * | de = 0 | ) |
|
virtual |
|
private |
Not Implemented.
|
virtual |
Loads the visuals from the given simulation model set and appData directory as defined in DtAppPathResolver. If this object owns the de, will delete and recreate if visuals need to be reloaded. Set force to true to load (or reload) visuals even if de is not owned.
|
virtual |
Returns the model file used for the given model.
|
virtual |
|
virtual |
Return the articulated parts of the model referenced by the filename. The offsets supplied will only apply to parent parts (the positionOffset must be body centric). Sub parts will not have the offsets applied.
|
virtual |
Returns the model definition for the given entity type.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| bool DtVrfModelManager::blockImageLoading | ( | ) | const |
|
protectedvirtual |
Loads visuals from the given SMS.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |