Changeset 10341
- Timestamp:
- 06/12/09 12:08:15 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 2 modified
-
include/osg/ProxyNode (modified) (2 diffs)
-
src/osg/ProxyNode.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/ProxyNode
r8325 r10341 41 41 42 42 virtual bool removeChildren(unsigned int pos,unsigned int numChildrenToRemove); 43 44 45 /** Set the optional database osgDB::Options object to use when loaded children.*/ 46 void setDatabaseOptions(osg::Referenced* options) { _databaseOptions = options; } 47 48 /** Get the optional database osgDB::Options object used when loaded children.*/ 49 osg::Referenced* getDatabaseOptions() { return _databaseOptions.get(); } 50 51 /** Get the optional database osgDB::Options object used when loaded children.*/ 52 const osg::Referenced* getDatabaseOptions() const { return _databaseOptions.get(); } 53 43 54 44 55 /** Set the database path to prepend to children's filenames.*/ … … 115 126 116 127 FileNameDatabaseRequestList _filenameList; 128 ref_ptr<Referenced> _databaseOptions; 117 129 std::string _databasePath; 118 130 -
OpenSceneGraph/trunk/src/osg/ProxyNode.cpp
r8325 r10341 28 28 Group(proxynode,copyop), 29 29 _filenameList(proxynode._filenameList), 30 _databaseOptions(proxynode._databaseOptions), 31 _databasePath(proxynode._databasePath), 30 32 _loadingExtReference(proxynode._loadingExtReference), 31 33 _centerMode(proxynode._centerMode), … … 58 60 { 59 61 if (nv.getDatabaseRequestHandler() && _filenameList.size()>_children.size() && 60 nv.getVisitorType()==NodeVisitor::CULL_VISITOR &&61 62 _loadingExtReference!=NO_AUTOMATIC_LOADING) 62 63 { 63 64 for(unsigned int i=_children.size(); i<_filenameList.size(); ++i) 64 65 { 65 nv.getDatabaseRequestHandler()->requestNodeFile(_databasePath+_filenameList[i].first, this, 1.0f, nv.getFrameStamp(), _filenameList[i].second );66 nv.getDatabaseRequestHandler()->requestNodeFile(_databasePath+_filenameList[i].first, this, 1.0f, nv.getFrameStamp(), _filenameList[i].second, _databaseOptions.get()); 66 67 } 67 68 }
