Cache of 3D models (avoids re-loading the same 3D model files).
More...
#include <_src_graph_model_cache.hh>
List of all members.
Detailed Description
Cache of 3D models (avoids re-loading the same 3D model files).
Since a 3D model may be cached, its osg::Node may be shared by multiple parents. The reason a 3D model can exist in multiple locations is because its shared node is placed under separate transform nodes.
Member Typedef Documentation
Member Enumeration Documentation
Constructor & Destructor Documentation
| graph::ModelCache::ModelCache |
( |
void |
|
) |
[private] |
| graph::ModelCache::~ModelCache |
( |
|
) |
[private] |
Member Function Documentation
| graph::ModelCache::DEFINE_GetInstance |
( |
ModelCache |
|
) |
const |
| void graph::ModelCache::Flush |
( |
void |
|
) |
|
Flush the cache of 3D models. Cache should be flushed before reloading the scene when any 3D models were modified externally.
| shptr< Graph > graph::ModelCache::LoadModel |
( |
const string & |
modelFilename, |
|
|
const fp |
scale = 1.0f, |
|
|
const bool |
loadCopy = false | |
|
) |
| | |
Directly load a cached 3D model else THROW EXCEPTION.
| RefPtr< osg::Node > graph::ModelCache::LoadModelIntoNode |
( |
const string & |
modelFilename, |
|
|
const bool |
loadCopy | |
|
) |
| | [private] |
| RefPtr< osg::Node > graph::ModelCache::LoadModelIntoNode2 |
( |
const string & |
modelFilename |
) |
[private] |
| RefPtr< osg::MatrixTransform > graph::ModelCache::LoadModelIntoTransform |
( |
const string & |
modelFilename, |
|
|
const bool |
loadCopy | |
|
) |
| | [private] |
| RefPtr0< osg::Node > graph::ModelCache::ReadNodeFile |
( |
const string & |
pathname |
) |
[private] |
Low-level function to read a compressed/uncompressed model file.
Member Data Documentation
maps filename and node containing 3D model
The documentation for this class was generated from the following files: