Changeset 10174 for OpenSceneGraph/trunk/include/osgDB/Registry
- Timestamp:
- 05/11/09 13:39:12 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgDB/Registry (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgDB/Registry
r10171 r10174 165 165 typedef class osgDB::ReadFileCallback ReadFileCallback; 166 166 typedef class osgDB::WriteFileCallback WriteFileCallback; 167 typedef class osgDB::FileLocationCallback FileLocationCallback; 167 168 168 169 /** Set the Registry callback to use in place of the default findFile calls.*/ … … 327 328 } 328 329 330 /** Set the callback to use inform the DatabasePager whether a file is located on local or remote file system..*/ 331 void setFileLocationCallback( FileLocationCallback* cb) { _fileLocationCallback = cb; } 332 333 /** Get the callback to use inform the DatabasePager whether a file is located on local or remote file system..*/ 334 FileLocationCallback* getFileLocationCallback() const { return _fileLocationCallback.get(); } 335 336 329 337 330 338 /** Set whether the KdTrees should be built for geometry in the loader model. */ … … 339 347 /** Get the KdTreeBuilder visitor that is used to build KdTree on loaded models.*/ 340 348 osg::KdTreeBuilder* getKdTreeBuilder() { return _kdTreeBuilder.get(); } 349 341 350 342 351 /** Set the FileCache that is used to manage local storage of files downloaded from the internet.*/ … … 489 498 therefore ensuring only one copy is ever constructed*/ 490 499 Registry(); 491 500 492 501 /** get the attached library with specified name.*/ 493 502 DynamicLibraryList::iterator getLibraryItr(const std::string& fileName); … … 558 567 osg::ref_ptr<ReadFileCallback> _readFileCallback; 559 568 osg::ref_ptr<WriteFileCallback> _writeFileCallback; 569 osg::ref_ptr<FileLocationCallback> _fileLocationCallback; 560 570 561 571 DotOsgWrapperMap _objectWrapperMap;
