Show
Ignore:
Timestamp:
05/11/09 13:39:12 (6 years ago)
Author:
robert
Message:

Moved Registry::ReadFileCallback? + WriteFileCallback?, and osgDB::ReaderWriter::Options into their own separate Options file and into the osgDB namespace.

Introduced a new callback osgDB::FindFileCallback? that overrides the default behavior of findDataFile/findLibraryFile.

Introduced support for assigning ReaderWriter::Options directory to PagedLOD.

Introduced new osgDB::FileLocationCallback? for assistancing the DatabasePager? to know when a file is hosted on a local or remote file system.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgWrappers/osgDB/Registry.cpp

    r10171 r10174  
    8686TYPE_NAME_ALIAS(class osgDB::WriteFileCallback, osgDB::Registry::WriteFileCallback) 
    8787 
     88TYPE_NAME_ALIAS(class osgDB::FileLocationCallback, osgDB::Registry::FileLocationCallback) 
     89 
    8890BEGIN_OBJECT_REFLECTOR(osgDB::Registry) 
    8991        I_DeclaringFile("osgDB/Registry"); 
     
    412414                  __void___buildKdTreeIfRequired__ReaderWriter_ReadResult_R1__C5_Options_P1, 
    413415                  "", 
     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. ", 
    414426                  ""); 
    415427        I_Method1(void, setBuildKdTreesHint, IN, osgDB::Options::BuildKdTreesHint, hint, 
     
    667679                         __FileCache_P1__getFileCache,  
    668680                         __void__setFileCache__FileCache_P1); 
     681        I_SimpleProperty(osgDB::Registry::FileLocationCallback *, FileLocationCallback,  
     682                         __FileLocationCallback_P1__getFileLocationCallback,  
     683                         __void__setFileLocationCallback__FileLocationCallback_P1); 
    669684        I_SimpleProperty(osgDB::Registry::FindFileCallback *, FindFileCallback,  
    670685                         __FindFileCallback_P1__getFindFileCallback,