Changeset 10521
- Timestamp:
- 08/05/09 14:51:10 (4 years ago)
- Location:
- OpenSceneGraph/trunk/src/osgWrappers
- Files:
-
- 7 modified
-
genwrapper.conf (modified) (1 diff)
-
osgAnimation/Bone.cpp (modified) (1 diff)
-
osgAnimation/LinkVisitor.cpp (modified) (3 diffs)
-
osgAnimation/MorphGeometry.cpp (modified) (1 diff)
-
osgAnimation/UpdateCallback.cpp (modified) (4 diffs)
-
osgDB/Registry.cpp (modified) (3 diffs)
-
osgViewer/Scene.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgWrappers/genwrapper.conf
r10171 r10521 271 271 suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >" 272 272 273 suppress reflector "osgAnimation::AnimationUpdateCallback" 274 273 275 ############################################################################# 274 276 -
OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/Bone.cpp
r10348 r10521 263 263 BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::UpdateBone) 264 264 I_DeclaringFile("osgAnimation/Bone"); 265 I_BaseType(osgAnimation::AnimationUpdateCallback);266 265 I_Method0(osg::Object *, cloneType, 267 266 Properties::VIRTUAL, -
OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/LinkVisitor.cpp
r10503 r10521 11 11 #include <osgIntrospection/Attributes> 12 12 13 #include <osg/Geode> 13 14 #include <osg/Node> 14 15 #include <osgAnimation/Animation> … … 44 45 "", 45 46 ""); 47 I_Method1(void, apply, IN, osg::Geode &, node, 48 Properties::VIRTUAL, 49 __void__apply__osg_Geode_R1, 50 "", 51 ""); 46 52 I_Method0(osgAnimation::AnimationList &, getAnimationList, 47 53 Properties::NON_VIRTUAL, … … 54 60 "Method to call to reset visitor. ", 55 61 "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 ""); 56 74 I_SimpleProperty(osgAnimation::AnimationList &, AnimationList, 57 75 __AnimationList_R1__getAnimationList, -
OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/MorphGeometry.cpp
r10503 r10521 201 201 BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMorph) 202 202 I_DeclaringFile("osgAnimation/MorphGeometry"); 203 I_BaseType(osgAnimation::AnimationUpdateCallback);204 203 I_Method0(osg::Object *, cloneType, 205 204 Properties::VIRTUAL, -
OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/UpdateCallback.cpp
r9775 r10521 12 12 13 13 #include <osg/CopyOp> 14 #include <osg/Material> 14 15 #include <osg/MatrixTransform> 15 16 #include <osg/Node> … … 17 18 #include <osg/Object> 18 19 #include <osg/PositionAttitudeTransform> 20 #include <osg/StateAttribute> 19 21 #include <osgAnimation/Animation> 20 22 #include <osgAnimation/AnimationManagerBase> … … 30 32 #endif 31 33 32 BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallback )34 BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallbackBase) 33 35 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, 42 37 "", 43 38 ""); 44 39 I_Method0(osgAnimation::AnimationManagerBase *, getAnimationManager, 45 Properties:: NON_VIRTUAL,46 __ osgAnimation_AnimationManagerBase_P1__getAnimationManager,40 Properties::PURE_VIRTUAL, 41 __AnimationManagerBase_P1__getAnimationManager, 47 42 "", 48 43 ""); … … 58 53 ""); 59 54 I_Method1(int, link, IN, osgAnimation::Animation *, animation, 60 Properties:: VIRTUAL,55 Properties::PURE_VIRTUAL, 61 56 __int__link__osgAnimation_Animation_P1, 62 57 "", 63 58 ""); 64 59 I_Method0(void, updateLink, 65 Properties:: VIRTUAL,60 Properties::PURE_VIRTUAL, 66 61 __void__updateLink, 67 62 "", 68 63 ""); 64 I_Method0(const std::string &, getName, 65 Properties::PURE_VIRTUAL, 66 __C5_std_string_R1__getName, 67 "", 68 ""); 69 69 I_SimpleProperty(osgAnimation::AnimationManagerBase *, AnimationManager, 70 __ osgAnimation_AnimationManagerBase_P1__getAnimationManager,70 __AnimationManagerBase_P1__getAnimationManager, 71 71 0); 72 I_SimpleProperty(const std::string &, Name, 73 __C5_std_string_R1__getName, 74 0); 75 END_REFLECTOR 76 77 BEGIN_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 ""); 72 128 END_REFLECTOR 73 129 74 130 BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateTransform) 75 131 I_DeclaringFile("osgAnimation/UpdateCallback"); 76 I_BaseType(osgAnimation::AnimationUpdateCallback);77 132 I_Method0(osg::Object *, cloneType, 78 133 Properties::VIRTUAL, -
OpenSceneGraph/trunk/src/osgWrappers/osgDB/Registry.cpp
r10177 r10521 13 13 #include <osg/ArgumentParser> 14 14 #include <osg/Drawable> 15 #include <osg/FrameStamp> 15 16 #include <osg/Image> 16 17 #include <osg/KdTree> … … 556 557 "get the const library file path which is used when search for library (dso/dll's) files. ", 557 558 ""); 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, 561 562 "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. T ime 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, 566 567 "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 ""); 568 579 I_Method0(void, clearObjectCache, 569 580 Properties::NON_VIRTUAL, … … 677 688 __C5_FilePathList_R1__getDataFilePathList, 678 689 __void__setDataFilePathList__C5_FilePathList_R1); 690 I_SimpleProperty(double, ExpiryDelay, 691 __double__getExpiryDelay, 692 __void__setExpiryDelay__double); 679 693 I_SimpleProperty(osgDB::FileCache *, FileCache, 680 694 __FileCache_P1__getFileCache, -
OpenSceneGraph/trunk/src/osgWrappers/osgViewer/Scene.cpp
r8635 r10521 12 12 13 13 #include <osg/Node> 14 #include <osg/NodeVisitor> 14 15 #include <osgDB/DatabasePager> 15 16 #include <osgDB/ImagePager> … … 72 73 "", 73 74 ""); 75 I_Method1(void, updateSceneGraph, IN, osg::NodeVisitor &, updateVisitor, 76 Properties::NON_VIRTUAL, 77 __void__updateSceneGraph__osg_NodeVisitor_R1, 78 "", 79 ""); 74 80 I_StaticMethod1(osgViewer::Scene *, getScene, IN, osg::Node *, node, 75 81 __Scene_P1__getScene__osg_Node_P1_S,
