Show
Ignore:
Timestamp:
08/05/09 14:51:10 (5 years ago)
Author:
robert
Message:

Updated wrappers

Files:
1 modified

Legend:

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

    r10177 r10521  
    1313#include <osg/ArgumentParser> 
    1414#include <osg/Drawable> 
     15#include <osg/FrameStamp> 
    1516#include <osg/Image> 
    1617#include <osg/KdTree> 
     
    556557                  "get the const library file path which is used when search for library (dso/dll's) files. ", 
    557558                  ""); 
    558         I_Method1(void, updateTimeStampOfObjectsInCacheWithExternalReferences, IN, double, currentTime, 
    559                   Properties::NON_VIRTUAL, 
    560                   __void__updateTimeStampOfObjectsInCacheWithExternalReferences__double, 
     559        I_Method1(void, updateTimeStampOfObjectsInCacheWithExternalReferences, IN, const osg::FrameStamp &, frameStamp, 
     560                  Properties::NON_VIRTUAL, 
     561                  __void__updateTimeStampOfObjectsInCacheWithExternalReferences__C5_osg_FrameStamp_R1, 
    561562                  "For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. ", 
    562                   "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. Time value is time in seconds. "); 
    563         I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime, 
    564                   Properties::NON_VIRTUAL, 
    565                   __void__removeExpiredObjectsInCache__double, 
     563                  "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. The time used is taken from the FrameStamp::getReferenceTime(). "); 
     564        I_Method1(void, removeExpiredObjectsInCache, IN, const osg::FrameStamp &, frameStamp, 
     565                  Properties::NON_VIRTUAL, 
     566                  __void__removeExpiredObjectsInCache__C5_osg_FrameStamp_R1, 
    566567                  "Removed object in the cache which have a time stamp at or before the specified expiry time. ", 
    567                   "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExternalReferences(currentTime). Note, the currentTime is not the expiryTime, one would typically set the expiry time to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. Time value is time in seconds. "); 
     568                  "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExternalReferences(frameStamp). "); 
     569        I_Method1(void, setExpiryDelay, IN, double, expiryDelay, 
     570                  Properties::NON_VIRTUAL, 
     571                  __void__setExpiryDelay__double, 
     572                  "set hint to viewer code calling removeExpiredObjectsInCache to specify how long it should give before expiring objects in Registry cache, ", 
     573                  ""); 
     574        I_Method0(double, getExpiryDelay, 
     575                  Properties::NON_VIRTUAL, 
     576                  __double__getExpiryDelay, 
     577                  "", 
     578                  ""); 
    568579        I_Method0(void, clearObjectCache, 
    569580                  Properties::NON_VIRTUAL, 
     
    677688                         __C5_FilePathList_R1__getDataFilePathList,  
    678689                         __void__setDataFilePathList__C5_FilePathList_R1); 
     690        I_SimpleProperty(double, ExpiryDelay,  
     691                         __double__getExpiryDelay,  
     692                         __void__setExpiryDelay__double); 
    679693        I_SimpleProperty(osgDB::FileCache *, FileCache,  
    680694                         __FileCache_P1__getFileCache,