Changeset 10521

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

Updated wrappers

Location:
OpenSceneGraph/trunk/src/osgWrappers
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgWrappers/genwrapper.conf

    r10171 r10521  
    271271suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >" 
    272272 
     273suppress reflector "osgAnimation::AnimationUpdateCallback" 
     274 
    273275############################################################################# 
    274276 
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/Bone.cpp

    r10348 r10521  
    263263BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::UpdateBone) 
    264264        I_DeclaringFile("osgAnimation/Bone"); 
    265         I_BaseType(osgAnimation::AnimationUpdateCallback); 
    266265        I_Method0(osg::Object *, cloneType, 
    267266                  Properties::VIRTUAL, 
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/LinkVisitor.cpp

    r10503 r10521  
    1111#include <osgIntrospection/Attributes> 
    1212 
     13#include <osg/Geode> 
    1314#include <osg/Node> 
    1415#include <osgAnimation/Animation> 
     
    4445                  "", 
    4546                  ""); 
     47        I_Method1(void, apply, IN, osg::Geode &, node, 
     48                  Properties::VIRTUAL, 
     49                  __void__apply__osg_Geode_R1, 
     50                  "", 
     51                  ""); 
    4652        I_Method0(osgAnimation::AnimationList &, getAnimationList, 
    4753                  Properties::NON_VIRTUAL, 
     
    5460                  "Method to call to reset visitor. ", 
    5561                  "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); 
     62        I_ProtectedMethod1(void, handle_stateset, IN, osg::StateSet *, stateset, 
     63                           Properties::NON_VIRTUAL, 
     64                           Properties::NON_CONST, 
     65                           __void__handle_stateset__osg_StateSet_P1, 
     66                           "", 
     67                           ""); 
     68        I_ProtectedMethod1(void, link, IN, osgAnimation::AnimationUpdateCallbackBase *, cb, 
     69                           Properties::NON_VIRTUAL, 
     70                           Properties::NON_CONST, 
     71                           __void__link__osgAnimation_AnimationUpdateCallbackBase_P1, 
     72                           "", 
     73                           ""); 
    5674        I_SimpleProperty(osgAnimation::AnimationList &, AnimationList,  
    5775                         __AnimationList_R1__getAnimationList,  
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/MorphGeometry.cpp

    r10503 r10521  
    201201BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMorph) 
    202202        I_DeclaringFile("osgAnimation/MorphGeometry"); 
    203         I_BaseType(osgAnimation::AnimationUpdateCallback); 
    204203        I_Method0(osg::Object *, cloneType, 
    205204                  Properties::VIRTUAL, 
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/UpdateCallback.cpp

    r9775 r10521  
    1212 
    1313#include <osg/CopyOp> 
     14#include <osg/Material> 
    1415#include <osg/MatrixTransform> 
    1516#include <osg/Node> 
     
    1718#include <osg/Object> 
    1819#include <osg/PositionAttitudeTransform> 
     20#include <osg/StateAttribute> 
    1921#include <osgAnimation/Animation> 
    2022#include <osgAnimation/AnimationManagerBase> 
     
    3032#endif 
    3133 
    32 BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallback) 
     34BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallbackBase) 
    3335        I_DeclaringFile("osgAnimation/UpdateCallback"); 
    34         I_BaseType(osg::NodeCallback); 
    35         I_ConstructorWithDefaults1(IN, const std::string &, name, "", 
    36                                    Properties::NON_EXPLICIT, 
    37                                    ____AnimationUpdateCallback__C5_std_string_R1, 
    38                                    "", 
    39                                    ""); 
    40         I_Constructor2(IN, const osgAnimation::AnimationUpdateCallback &, apc, IN, const osg::CopyOp &, copyop, 
    41                        ____AnimationUpdateCallback__C5_AnimationUpdateCallback_R1__C5_osg_CopyOp_R1, 
     36        I_Constructor0(____AnimationUpdateCallbackBase, 
    4237                       "", 
    4338                       ""); 
    4439        I_Method0(osgAnimation::AnimationManagerBase *, getAnimationManager, 
    45                   Properties::NON_VIRTUAL, 
    46                   __osgAnimation_AnimationManagerBase_P1__getAnimationManager, 
     40                  Properties::PURE_VIRTUAL, 
     41                  __AnimationManagerBase_P1__getAnimationManager, 
    4742                  "", 
    4843                  ""); 
     
    5853                  ""); 
    5954        I_Method1(int, link, IN, osgAnimation::Animation *, animation, 
    60                   Properties::VIRTUAL, 
     55                  Properties::PURE_VIRTUAL, 
    6156                  __int__link__osgAnimation_Animation_P1, 
    6257                  "", 
    6358                  ""); 
    6459        I_Method0(void, updateLink, 
    65                   Properties::VIRTUAL, 
     60                  Properties::PURE_VIRTUAL, 
    6661                  __void__updateLink, 
    6762                  "", 
    6863                  ""); 
     64        I_Method0(const std::string &, getName, 
     65                  Properties::PURE_VIRTUAL, 
     66                  __C5_std_string_R1__getName, 
     67                  "", 
     68                  ""); 
    6969        I_SimpleProperty(osgAnimation::AnimationManagerBase *, AnimationManager,  
    70                          __osgAnimation_AnimationManagerBase_P1__getAnimationManager,  
     70                         __AnimationManagerBase_P1__getAnimationManager,  
    7171                         0); 
     72        I_SimpleProperty(const std::string &, Name,  
     73                         __C5_std_string_R1__getName,  
     74                         0); 
     75END_REFLECTOR 
     76 
     77BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMaterial) 
     78        I_DeclaringFile("osgAnimation/UpdateCallback"); 
     79        I_Method0(osg::Object *, cloneType, 
     80                  Properties::VIRTUAL, 
     81                  __osg_Object_P1__cloneType, 
     82                  "Clone the type of an object, with Object* return type. ", 
     83                  "Must be defined by derived classes. "); 
     84        I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, 
     85                  Properties::VIRTUAL, 
     86                  __osg_Object_P1__clone__C5_osg_CopyOp_R1, 
     87                  "Clone an object, with Object* return type. ", 
     88                  "Must be defined by derived classes. "); 
     89        I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, 
     90                  Properties::VIRTUAL, 
     91                  __bool__isSameKindAs__C5_osg_Object_P1, 
     92                  "", 
     93                  ""); 
     94        I_Method0(const char *, libraryName, 
     95                  Properties::VIRTUAL, 
     96                  __C5_char_P1__libraryName, 
     97                  "return the name of the object's library. ", 
     98                  "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); 
     99        I_Method0(const char *, className, 
     100                  Properties::VIRTUAL, 
     101                  __C5_char_P1__className, 
     102                  "return the name of the object's class type. ", 
     103                  "Must be defined by derived classes. "); 
     104        I_ConstructorWithDefaults1(IN, const std::string &, name, "", 
     105                                   Properties::NON_EXPLICIT, 
     106                                   ____UpdateMaterial__C5_std_string_R1, 
     107                                   "", 
     108                                   ""); 
     109        I_Constructor2(IN, const osgAnimation::UpdateMaterial &, apc, IN, const osg::CopyOp &, copyop, 
     110                       ____UpdateMaterial__C5_UpdateMaterial_R1__C5_osg_CopyOp_R1, 
     111                       "", 
     112                       ""); 
     113        I_Method1(void, update, IN, osg::Material &, material, 
     114                  Properties::NON_VIRTUAL, 
     115                  __void__update__osg_Material_R1, 
     116                  "", 
     117                  ""); 
     118        I_Method0(bool, needLink, 
     119                  Properties::VIRTUAL, 
     120                  __bool__needLink, 
     121                  "", 
     122                  ""); 
     123        I_Method1(bool, link, IN, osgAnimation::Channel *, channel, 
     124                  Properties::VIRTUAL, 
     125                  __bool__link__osgAnimation_Channel_P1, 
     126                  "", 
     127                  ""); 
    72128END_REFLECTOR 
    73129 
    74130BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateTransform) 
    75131        I_DeclaringFile("osgAnimation/UpdateCallback"); 
    76         I_BaseType(osgAnimation::AnimationUpdateCallback); 
    77132        I_Method0(osg::Object *, cloneType, 
    78133                  Properties::VIRTUAL, 
  • 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,  
  • OpenSceneGraph/trunk/src/osgWrappers/osgViewer/Scene.cpp

    r8635 r10521  
    1212 
    1313#include <osg/Node> 
     14#include <osg/NodeVisitor> 
    1415#include <osgDB/DatabasePager> 
    1516#include <osgDB/ImagePager> 
     
    7273                  "", 
    7374                  ""); 
     75        I_Method1(void, updateSceneGraph, IN, osg::NodeVisitor &, updateVisitor, 
     76                  Properties::NON_VIRTUAL, 
     77                  __void__updateSceneGraph__osg_NodeVisitor_R1, 
     78                  "", 
     79                  ""); 
    7480        I_StaticMethod1(osgViewer::Scene *, getScene, IN, osg::Node *, node, 
    7581                        __Scene_P1__getScene__osg_Node_P1_S,