Changeset 10174
- Timestamp:
- 05/11/09 13:39:12 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 16 modified
-
CMakeLists.txt (modified) (1 diff)
-
include/osg/NodeVisitor (modified) (1 diff)
-
include/osg/PagedLOD (modified) (2 diffs)
-
include/osgDB/DatabasePager (modified) (1 diff)
-
include/osgDB/FileCache (modified) (1 diff)
-
include/osgDB/Options (modified) (4 diffs)
-
include/osgDB/Registry (modified) (5 diffs)
-
src/osg/PagedLOD.cpp (modified) (2 diffs)
-
src/osgDB/DatabasePager.cpp (modified) (7 diffs)
-
src/osgDB/FileCache.cpp (modified) (1 diff)
-
src/osgDB/Options.cpp (modified) (1 diff)
-
src/osgWrappers/osg/NodeVisitor.cpp (modified) (1 diff)
-
src/osgWrappers/osg/PagedLOD.cpp (modified) (2 diffs)
-
src/osgWrappers/osgDB/DatabasePager.cpp (modified) (2 diffs)
-
src/osgWrappers/osgDB/Options.cpp (modified) (5 diffs)
-
src/osgWrappers/osgDB/Registry.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/CMakeLists.txt
r10165 r10174 31 31 SET(OPENSCENEGRAPH_MAJOR_VERSION 2) 32 32 SET(OPENSCENEGRAPH_MINOR_VERSION 9) 33 SET(OPENSCENEGRAPH_PATCH_VERSION 4)34 SET(OPENSCENEGRAPH_SOVERSION 59)33 SET(OPENSCENEGRAPH_PATCH_VERSION 5) 34 SET(OPENSCENEGRAPH_SOVERSION 60) 35 35 36 36 # set to 0 when not a release candidate, non zero means that any generated -
OpenSceneGraph/trunk/include/osg/NodeVisitor
r9464 r10174 275 275 { 276 276 public: 277 277 278 278 DatabaseRequestHandler(): 279 279 Referenced(true) {} 280 281 virtual void requestNodeFile(const std::string& fileName,osg::Group* group, float priority, const FrameStamp* framestamp, osg::ref_ptr<osg::Referenced>& databaseRequest ) = 0;282 280 281 virtual void requestNodeFile(const std::string& fileName,osg::Group* group, float priority, const FrameStamp* framestamp, osg::ref_ptr<osg::Referenced>& databaseRequest, const osg::Referenced* options=0) = 0; 282 283 283 protected: 284 284 virtual ~DatabaseRequestHandler() {} 285 285 }; 286 286 287 287 /** Set the handler for database requests.*/ 288 288 void setDatabaseRequestHandler(DatabaseRequestHandler* handler) { _databaseRequestHandler = handler; } 289 289 290 290 /** Get the handler for database requests.*/ 291 291 DatabaseRequestHandler* getDatabaseRequestHandler() { return _databaseRequestHandler.get(); } -
OpenSceneGraph/trunk/include/osg/PagedLOD
r8994 r10174 43 43 44 44 virtual bool removeChildren(unsigned int pos,unsigned int numChildrenToRemove=1); 45 45 46 47 /** Set the optional database osgDB::Options object to use when loaded children.*/ 48 void setDatabaseOptions(osg::Referenced* options) { _databaseOptions = options; } 49 50 /** Get the optional database osgDB::Options object used when loaded children.*/ 51 osg::Referenced* getDatabaseOptions() { return _databaseOptions.get(); } 52 53 /** Get the optional database osgDB::Options object used when loaded children.*/ 54 const osg::Referenced* getDatabaseOptions() const { return _databaseOptions.get(); } 46 55 47 56 … … 134 143 void expandPerRangeDataTo(unsigned int pos); 135 144 145 ref_ptr<Referenced> _databaseOptions; 136 146 std::string _databasePath; 137 147 -
OpenSceneGraph/trunk/include/osgDB/DatabasePager
r10171 r10174 66 66 virtual void requestNodeFile(const std::string& fileName,osg::Group* group, 67 67 float priority, const osg::FrameStamp* framestamp, 68 osg::ref_ptr<osg::Referenced>& databaseRequest);69 70 virtual void requestNodeFile(const std::string& fileName,osg::Group* group,71 float priority, const osg::FrameStamp* framestamp,72 68 osg::ref_ptr<osg::Referenced>& databaseRequest, 73 Options* loadOptions);69 const osg::Referenced* options); 74 70 75 71 /** Set the priority of the database pager thread(s).*/ -
OpenSceneGraph/trunk/include/osgDB/FileCache
r10171 r10174 29 29 const std::string& getFileCachePath() const { return _fileCachePath; } 30 30 31 virtual bool isFileAppropriateForFileCache(const std::string& originalFileName) const; 32 31 33 virtual std::string createCacheFileName(const std::string& originalFileName) const; 32 34 -
OpenSceneGraph/trunk/include/osgDB/Options
r10172 r10174 17 17 #include <osgDB/AuthenticationMap> 18 18 #include <osgDB/ReaderWriter> 19 #include <osgDB/FileCache> 19 20 20 21 #include <deque> … … 87 88 }; 88 89 90 class OSGDB_EXPORT FileLocationCallback : public virtual osg::Referenced 91 { 92 public: 93 94 enum Location 95 { 96 LOCAL_FILE, 97 REMOTE_FILE 98 }; 99 100 virtual Location fileLocation(const std::string& filename, const Options* options) = 0; 101 102 virtual bool useFileCache() const = 0; 103 104 protected: 105 virtual ~FileLocationCallback() {} 106 }; 107 108 89 109 /** Options base class used for passing options into plugins to control their operation.*/ 90 class O ptions : public osg::Object110 class OSGDB_EXPORT Options : public osg::Object 91 111 { 92 112 public: … … 234 254 235 255 236 /** Set the Registrycallback to use in place of the default writeFile calls.*/256 /** Set the callback to use in place of the default writeFile calls.*/ 237 257 void setWriteFileCallback( WriteFileCallback* cb) { _writeFileCallback = cb; } 238 258 239 259 /** Get the const writeFile callback.*/ 240 260 WriteFileCallback* getWriteFileCallback() const { return _writeFileCallback.get(); } 261 262 263 /** Set the callback to use inform the DatabasePager whether a file is located on local or remote file system..*/ 264 void setFileLocationCallback( FileLocationCallback* cb) { _fileLocationCallback = cb; } 265 266 /** Get the callback to use inform the DatabasePager whether a file is located on local or remote file system..*/ 267 FileLocationCallback* getFileLocationCallback() const { return _fileLocationCallback.get(); } 268 269 270 /** Set the FileCache that is used to manage local storage of files downloaded from the internet.*/ 271 void setFileCache(FileCache* fileCache) { _fileCache = fileCache; } 272 273 /** Get the FileCache that is used to manage local storage of files downloaded from the internet.*/ 274 FileCache* getFileCache() const { return _fileCache.get(); } 241 275 242 276 … … 259 293 osg::ref_ptr<ReadFileCallback> _readFileCallback; 260 294 osg::ref_ptr<WriteFileCallback> _writeFileCallback; 295 osg::ref_ptr<FileLocationCallback> _fileLocationCallback; 296 297 osg::ref_ptr<FileCache> _fileCache; 261 298 }; 262 299 -
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; -
OpenSceneGraph/trunk/src/osg/PagedLOD.cpp
r9387 r10174 59 59 PagedLOD::PagedLOD(const PagedLOD& plod,const CopyOp& copyop): 60 60 LOD(plod,copyop), 61 _databaseOptions(plod._databaseOptions), 61 62 _databasePath(plod._databasePath), 62 63 _frameNumberOfLastTraversal(plod._frameNumberOfLastTraversal), … … 214 215 if (_databasePath.empty()) 215 216 { 216 nv.getDatabaseRequestHandler()->requestNodeFile(_perRangeDataList[numChildren]._filename,this,priority,nv.getFrameStamp(), _perRangeDataList[numChildren]._databaseRequest );217 nv.getDatabaseRequestHandler()->requestNodeFile(_perRangeDataList[numChildren]._filename,this,priority,nv.getFrameStamp(), _perRangeDataList[numChildren]._databaseRequest, _databaseOptions.get()); 217 218 } 218 219 else 219 220 { 220 221 // prepend the databasePath to the child's filename. 221 nv.getDatabaseRequestHandler()->requestNodeFile(_databasePath+_perRangeDataList[numChildren]._filename,this,priority,nv.getFrameStamp(), _perRangeDataList[numChildren]._databaseRequest); 222 } 223 } 224 222 nv.getDatabaseRequestHandler()->requestNodeFile(_databasePath+_perRangeDataList[numChildren]._filename,this,priority,nv.getFrameStamp(), _perRangeDataList[numChildren]._databaseRequest, _databaseOptions.get()); 223 } 224 } 225 225 226 226 } -
OpenSceneGraph/trunk/src/osgDB/DatabasePager.cpp
r10171 r10174 446 446 break; 447 447 } 448 449 //Getting CURL Environment Variables (If found rewrite OSG Options) 450 osg::ref_ptr<FileCache> fileCache = osgDB::Registry::instance()->getFileCache(); 448 451 449 452 450 do … … 482 480 483 481 bool readFromFileCache = false; 484 482 483 osg::ref_ptr<FileCache> fileCache = osgDB::Registry::instance()->getFileCache(); 484 osg::ref_ptr<FileLocationCallback> fileLocationCallback = osgDB::Registry::instance()->getFileLocationCallback(); 485 485 486 if (databaseRequest.valid()) 486 487 { 488 if (databaseRequest->_loadOptions.valid()) 489 { 490 if (databaseRequest->_loadOptions->getFileCache()) fileCache = databaseRequest->_loadOptions->getFileCache(); 491 if (databaseRequest->_loadOptions->getFileLocationCallback()) fileLocationCallback = databaseRequest->_loadOptions->getFileLocationCallback(); 492 } 493 494 // disable the FileCache if the fileLocationCallback tells us that it isn't required for this request. 495 if (fileLocationCallback.valid() && !fileLocationCallback->useFileCache()) fileCache = 0; 496 497 487 498 // check if databaseRequest is still relevant 488 499 if ((_pager->_frameNumber-databaseRequest->_frameNumberLastRequest)<=1) … … 493 504 { 494 505 case(HANDLE_ALL_REQUESTS): 506 { 495 507 // do nothing as this thread can handle the load 496 if ( osgDB::containsServerAddress(databaseRequest->_fileName))508 if (fileCache.valid() && fileCache->isFileAppropriateForFileCache(databaseRequest->_fileName)) 497 509 { 498 if (fileCache .valid() && fileCache->existsInCache(databaseRequest->_fileName))510 if (fileCache->existsInCache(databaseRequest->_fileName)) 499 511 { 500 512 readFromFileCache = true; … … 502 514 } 503 515 break; 504 516 } 505 517 case(HANDLE_NON_HTTP): 518 { 506 519 // check the cache first 507 if (osgDB::containsServerAddress(databaseRequest->_fileName)) 520 bool isHighLatencyFileRequest = false; 521 522 if (fileLocationCallback.valid()) 523 { 524 isHighLatencyFileRequest = fileLocationCallback->fileLocation(databaseRequest->_fileName, databaseRequest->_loadOptions.get()) == FileLocationCallback::REMOTE_FILE; 525 } 526 else if (fileCache.valid() && fileCache->isFileAppropriateForFileCache(databaseRequest->_fileName)) 527 { 528 isHighLatencyFileRequest = true; 529 } 530 531 if (isHighLatencyFileRequest) 508 532 { 509 533 if (fileCache.valid() && fileCache->existsInCache(databaseRequest->_fileName)) … … 519 543 } 520 544 break; 521 545 } 522 546 case(HANDLE_ONLY_HTTP): 523 // make sure the request is a http request 524 if (!osgDB::containsServerAddress(databaseRequest->_fileName)) 525 { 526 osg::notify(osg::NOTICE)<<_name<<": Help we have request we shouldn't have "<<databaseRequest->_fileName<<std::endl; 527 databaseRequest = 0; 528 } 547 { 548 // accept all requests, as we'll assume only high latency requests will have got here. 529 549 break; 550 } 530 551 } 531 552 } … … 555 576 556 577 if (databaseRequest->_loadedModel.valid() && 557 osgDB::containsServerAddress(databaseRequest->_fileName) &&558 578 fileCache.valid() && 579 fileCache->isFileAppropriateForFileCache(databaseRequest->_fileName) && 559 580 !readFromFileCache) 560 581 { … … 1231 1252 void DatabasePager::requestNodeFile(const std::string& fileName,osg::Group* group, 1232 1253 float priority, const osg::FrameStamp* framestamp, 1233 osg::ref_ptr<osg::Referenced>& databaseRequest)1234 {1235 requestNodeFile(fileName,group,priority,framestamp,databaseRequest,Registry::instance()->getOptions());1236 }1237 1238 void DatabasePager::requestNodeFile(const std::string& fileName,osg::Group* group,1239 float priority, const osg::FrameStamp* framestamp,1240 1254 osg::ref_ptr<osg::Referenced>& databaseRequestRef, 1241 Options* loadOptions) 1242 { 1255 const osg::Referenced* options) 1256 { 1257 osgDB::Options* loadOptions = dynamic_cast<osgDB::Options*>(const_cast<osg::Referenced*>(options)); 1258 if (!loadOptions) 1259 { 1260 loadOptions = Registry::instance()->getOptions(); 1261 1262 osg::notify(osg::NOTICE)<<"Using options from Registry "<<std::endl; 1263 } 1264 else 1265 { 1266 osg::notify(osg::NOTICE)<<"options from requestNodeFile "<<std::endl; 1267 } 1268 1269 1243 1270 if (!_acceptNewRequests) return; 1244 1271 -
OpenSceneGraph/trunk/src/osgDB/FileCache.cpp
r10171 r10174 29 29 { 30 30 osg::notify(osg::INFO)<<"Destructed FileCache "<<std::endl; 31 } 32 33 bool FileCache::isFileAppropriateForFileCache(const std::string& originalFileName) const 34 { 35 return osgDB::containsServerAddress(originalFileName); 31 36 } 32 37 -
OpenSceneGraph/trunk/src/osgDB/Options.cpp
r10172 r10174 109 109 _findFileCallback(options._findFileCallback), 110 110 _readFileCallback(options._readFileCallback), 111 _writeFileCallback(options._writeFileCallback) {} 111 _writeFileCallback(options._writeFileCallback), 112 _fileLocationCallback(options._fileLocationCallback), 113 _fileCache(options._fileCache) {} -
OpenSceneGraph/trunk/src/osgWrappers/osg/NodeVisitor.cpp
r9461 r10174 420 420 "", 421 421 ""); 422 I_Method 5(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, IN, osg::ref_ptr< osg::Referenced > &, databaseRequest,423 Properties::PURE_VIRTUAL,424 __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_FrameStamp_P1__osg_ref_ptrT1_osg_Referenced__R1,425 "",426 "");422 I_MethodWithDefaults6(void, requestNodeFile, IN, const std::string &, fileName, , IN, osg::Group *, group, , IN, float, priority, , IN, const osg::FrameStamp *, framestamp, , IN, osg::ref_ptr< osg::Referenced > &, databaseRequest, , IN, const osg::Referenced *, options, 0, 423 Properties::PURE_VIRTUAL, 424 __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_FrameStamp_P1__osg_ref_ptrT1_osg_Referenced__R1__C5_osg_Referenced_P1, 425 "", 426 ""); 427 427 END_REFLECTOR 428 428 -
OpenSceneGraph/trunk/src/osgWrappers/osg/PagedLOD.cpp
r9775 r10174 94 94 "Remove children from Group. ", 95 95 "Note, must be override by subclasses of Group which add per child attributes. "); 96 I_Method1(void, setDatabaseOptions, IN, osg::Referenced *, options, 97 Properties::NON_VIRTUAL, 98 __void__setDatabaseOptions__osg_Referenced_P1, 99 "Set the optional database osgDB::Options object to use when loaded children. ", 100 ""); 101 I_Method0(osg::Referenced *, getDatabaseOptions, 102 Properties::NON_VIRTUAL, 103 __osg_Referenced_P1__getDatabaseOptions, 104 "Get the optional database osgDB::Options object used when loaded children. ", 105 ""); 106 I_Method0(const osg::Referenced *, getDatabaseOptions, 107 Properties::NON_VIRTUAL, 108 __C5_osg_Referenced_P1__getDatabaseOptions, 109 "Get the optional database osgDB::Options object used when loaded children. ", 110 ""); 96 111 I_Method1(void, setDatabasePath, IN, const std::string &, path, 97 112 Properties::NON_VIRTUAL, … … 225 240 "", 226 241 ""); 242 I_SimpleProperty(osg::Referenced *, DatabaseOptions, 243 __osg_Referenced_P1__getDatabaseOptions, 244 __void__setDatabaseOptions__osg_Referenced_P1); 227 245 I_SimpleProperty(const std::string &, DatabasePath, 228 246 __C5_std_string_R1__getDatabasePath, -
OpenSceneGraph/trunk/src/osgWrappers/osgDB/DatabasePager.cpp
r10171 r10174 20 20 #include <osg/State> 21 21 #include <osgDB/DatabasePager> 22 #include <osgDB/Options>23 22 24 23 // Must undefine IN and OUT macros defined in Windows headers … … 70 69 "Create a shallow copy on the DatabasePager. ", 71 70 ""); 72 I_Method 5(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, IN, osg::ref_ptr< osg::Referenced > &, databaseRequest,73 Properties::VIRTUAL, 74 __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_osg_FrameStamp_P1__osg_ref_ptrT1_osg_Referenced__R1 ,71 I_Method6(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, IN, osg::ref_ptr< osg::Referenced > &, databaseRequest, IN, const osg::Referenced *, options, 72 Properties::VIRTUAL, 73 __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_osg_FrameStamp_P1__osg_ref_ptrT1_osg_Referenced__R1__C5_osg_Referenced_P1, 75 74 "Add a request to load a node file to end the the database request list. ", 76 "");77 I_Method6(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, IN, osg::ref_ptr< osg::Referenced > &, databaseRequest, IN, osgDB::Options *, loadOptions,78 Properties::VIRTUAL,79 __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_osg_FrameStamp_P1__osg_ref_ptrT1_osg_Referenced__R1__Options_P1,80 "",81 75 ""); 82 76 I_Method1(int, setSchedulePriority, IN, OpenThreads::Thread::ThreadPriority, priority, -
OpenSceneGraph/trunk/src/osgWrappers/osgDB/Options.cpp
r10171 r10174 18 18 #include <osg/Shape> 19 19 #include <osgDB/AuthenticationMap> 20 #include <osgDB/FileCache> 20 21 #include <osgDB/Options> 21 22 #include <osgDB/ReaderWriter> … … 28 29 #undef OUT 29 30 #endif 31 32 BEGIN_ENUM_REFLECTOR(osgDB::FileLocationCallback::Location) 33 I_DeclaringFile("osgDB/Options"); 34 I_EnumLabel(osgDB::FileLocationCallback::LOCAL_FILE); 35 I_EnumLabel(osgDB::FileLocationCallback::REMOTE_FILE); 36 END_REFLECTOR 37 38 BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::FileLocationCallback) 39 I_DeclaringFile("osgDB/Options"); 40 I_VirtualBaseType(osg::Referenced); 41 I_Constructor0(____FileLocationCallback, 42 "", 43 ""); 44 I_Method2(osgDB::FileLocationCallback::Location, fileLocation, IN, const std::string &, filename, IN, const osgDB::Options *, options, 45 Properties::PURE_VIRTUAL, 46 __Location__fileLocation__C5_std_string_R1__C5_Options_P1, 47 "", 48 ""); 49 I_Method0(bool, useFileCache, 50 Properties::PURE_VIRTUAL, 51 __bool__useFileCache, 52 "", 53 ""); 54 END_REFLECTOR 30 55 31 56 BEGIN_OBJECT_REFLECTOR(osgDB::FindFileCallback) … … 224 249 Properties::NON_VIRTUAL, 225 250 __void__setWriteFileCallback__WriteFileCallback_P1, 226 "Set the Registrycallback to use in place of the default writeFile calls. ",251 "Set the callback to use in place of the default writeFile calls. ", 227 252 ""); 228 253 I_Method0(osgDB::WriteFileCallback *, getWriteFileCallback, … … 230 255 __WriteFileCallback_P1__getWriteFileCallback, 231 256 "Get the const writeFile callback. ", 257 ""); 258 I_Method1(void, setFileLocationCallback, IN, osgDB::FileLocationCallback *, cb, 259 Properties::NON_VIRTUAL, 260 __void__setFileLocationCallback__FileLocationCallback_P1, 261 "Set the callback to use inform the DatabasePager whether a file is located on local or remote file system. ", 262 ""); 263 I_Method0(osgDB::FileLocationCallback *, getFileLocationCallback, 264 Properties::NON_VIRTUAL, 265 __FileLocationCallback_P1__getFileLocationCallback, 266 "Get the callback to use inform the DatabasePager whether a file is located on local or remote file system. ", 267 ""); 268 I_Method1(void, setFileCache, IN, osgDB::FileCache *, fileCache, 269 Properties::NON_VIRTUAL, 270 __void__setFileCache__FileCache_P1, 271 "Set the FileCache that is used to manage local storage of files downloaded from the internet. ", 272 ""); 273 I_Method0(osgDB::FileCache *, getFileCache, 274 Properties::NON_VIRTUAL, 275 __FileCache_P1__getFileCache, 276 "Get the FileCache that is used to manage local storage of files downloaded from the internet. ", 232 277 ""); 233 278 I_SimpleProperty(osgDB::AuthenticationMap *, AuthenticationMap, … … 243 288 __FilePathList_R1__getDatabasePathList, 244 289 0); 290 I_SimpleProperty(osgDB::FileCache *, FileCache, 291 __FileCache_P1__getFileCache, 292 __void__setFileCache__FileCache_P1); 293 I_SimpleProperty(osgDB::FileLocationCallback *, FileLocationCallback, 294 __FileLocationCallback_P1__getFileLocationCallback, 295 __void__setFileLocationCallback__FileLocationCallback_P1); 245 296 I_SimpleProperty(osgDB::FindFileCallback *, FindFileCallback, 246 297 __FindFileCallback_P1__getFindFileCallback, -
OpenSceneGraph/trunk/src/osgWrappers/osgDB/Registry.cpp
r10171 r10174 86 86 TYPE_NAME_ALIAS(class osgDB::WriteFileCallback, osgDB::Registry::WriteFileCallback) 87 87 88 TYPE_NAME_ALIAS(class osgDB::FileLocationCallback, osgDB::Registry::FileLocationCallback) 89 88 90 BEGIN_OBJECT_REFLECTOR(osgDB::Registry) 89 91 I_DeclaringFile("osgDB/Registry"); … … 412 414 __void___buildKdTreeIfRequired__ReaderWriter_ReadResult_R1__C5_Options_P1, 413 415 "", 416 ""); 417 I_Method1(void, setFileLocationCallback, IN, osgDB::Registry::FileLocationCallback *, cb, 418 Properties::NON_VIRTUAL, 419 __void__setFileLocationCallback__FileLocationCallback_P1, 420 "Set the callback to use inform the DatabasePager whether a file is located on local or remote file system. ", 421 ""); 422 I_Method0(osgDB::Registry::FileLocationCallback *, getFileLocationCallback, 423 Properties::NON_VIRTUAL, 424 __FileLocationCallback_P1__getFileLocationCallback, 425 "Get the callback to use inform the DatabasePager whether a file is located on local or remote file system. ", 414 426 ""); 415 427 I_Method1(void, setBuildKdTreesHint, IN, osgDB::Options::BuildKdTreesHint, hint, … … 667 679 __FileCache_P1__getFileCache, 668 680 __void__setFileCache__FileCache_P1); 681 I_SimpleProperty(osgDB::Registry::FileLocationCallback *, FileLocationCallback, 682 __FileLocationCallback_P1__getFileLocationCallback, 683 __void__setFileLocationCallback__FileLocationCallback_P1); 669 684 I_SimpleProperty(osgDB::Registry::FindFileCallback *, FindFileCallback, 670 685 __FindFileCallback_P1__getFindFileCallback,
