Changeset 11011
- Timestamp:
- 01/27/10 14:12:26 (3 years ago)
- Location:
- OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation
- Files:
-
- 2 removed
- 12 modified
-
Bone.cpp (modified) (7 diffs)
-
BoneMapVisitor.cpp (modified) (1 diff)
-
Channel.cpp (modified) (2 diffs)
-
ComputeBindMatrixVisitor.cpp (deleted)
-
Interpolator.cpp (modified) (2 diffs)
-
Keyframe.cpp (modified) (2 diffs)
-
RigGeometry.cpp (modified) (3 diffs)
-
RigTransform.cpp (modified) (2 diffs)
-
RigTransformHardware.cpp (modified) (4 diffs)
-
RigTransformSoftware.cpp (modified) (2 diffs)
-
Sampler.cpp (modified) (2 diffs)
-
Skeleton.cpp (modified) (2 diffs)
-
Target.cpp (modified) (3 diffs)
-
UpdateCallback.cpp (deleted)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/Bone.cpp
r10967 r11011 13 13 #include <osg/CopyOp> 14 14 #include <osg/Matrix> 15 #include <osg/Node>16 15 #include <osg/NodeVisitor> 17 16 #include <osg/Object> 18 #include <osg/Quat>19 #include <osg/Vec3>20 17 #include <osgAnimation/Bone> 21 #include <osgAnimation/Channel>22 #include <osgAnimation/Target>23 18 24 19 // Must undefine IN and OUT macros defined in Windows headers … … 30 25 #endif 31 26 32 TYPE_NAME_ALIAS(osg::ref_ptr< osgAnimation::Bone >, osgAnimation::Bone::PointerType)33 34 TYPE_NAME_ALIAS(std::map< std::string COMMA osgAnimation::Bone::PointerType >, osgAnimation::Bone::BoneMap)35 36 27 TYPE_NAME_ALIAS(osg::Matrix, osgAnimation::Bone::MatrixType) 37 28 38 29 BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone) 39 30 I_DeclaringFile("osgAnimation/Bone"); 40 I_BaseType(osg:: Transform);31 I_BaseType(osg::MatrixTransform); 41 32 I_Method0(osg::Object *, cloneType, 42 33 Properties::VIRTUAL, … … 83 74 "", 84 75 ""); 85 I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv,86 Properties::VIRTUAL,87 __bool__computeLocalToWorldMatrix__osg_Matrix_R1__osg_NodeVisitor_P1,88 "",89 "");90 I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv,91 Properties::VIRTUAL,92 __bool__computeWorldToLocalMatrix__osg_Matrix_R1__osg_NodeVisitor_P1,93 "",94 "");95 76 I_Method0(osgAnimation::Bone *, getBoneParent, 96 77 Properties::NON_VIRTUAL, … … 103 84 "", 104 85 ""); 105 I_Method 1(void, setTranslation, IN, const osg::Vec3 &, trans,86 I_Method0(const osg::Matrix &, getMatrixInBoneSpace, 106 87 Properties::NON_VIRTUAL, 107 __void__setTranslation__C5_osg_Vec3_R1, 108 "", 109 ""); 110 I_Method1(void, setRotation, IN, const osg::Quat &, quat, 111 Properties::NON_VIRTUAL, 112 __void__setRotation__C5_osg_Quat_R1, 113 "", 114 ""); 115 I_Method1(void, setScale, IN, const osg::Vec3 &, scale, 116 Properties::NON_VIRTUAL, 117 __void__setScale__C5_osg_Vec3_R1, 118 "", 119 ""); 120 I_Method0(const osg::Vec3 &, getTranslation, 121 Properties::NON_VIRTUAL, 122 __C5_osg_Vec3_R1__getTranslation, 123 "", 124 ""); 125 I_Method0(const osg::Quat &, getRotation, 126 Properties::NON_VIRTUAL, 127 __C5_osg_Quat_R1__getRotation, 128 "", 129 ""); 130 I_Method0(const osg::Vec3 &, getScale, 131 Properties::NON_VIRTUAL, 132 __C5_osg_Vec3_R1__getScale, 133 "", 134 ""); 135 I_Method0(osg::Matrix, getMatrixInBoneSpace, 136 Properties::NON_VIRTUAL, 137 __osg_Matrix__getMatrixInBoneSpace, 138 "", 139 ""); 140 I_Method0(const osg::Matrix &, getBindMatrixInBoneSpace, 141 Properties::NON_VIRTUAL, 142 __C5_osg_Matrix_R1__getBindMatrixInBoneSpace, 88 __C5_osg_Matrix_R1__getMatrixInBoneSpace, 143 89 "", 144 90 ""); … … 158 104 "", 159 105 ""); 160 I_Method1(void, set BindMatrixInBoneSpace, IN, const osg::Matrix &, matrix,106 I_Method1(void, setInvBindMatrixInSkeletonSpace, IN, const osg::Matrix &, matrix, 161 107 Properties::NON_VIRTUAL, 162 __void__set BindMatrixInBoneSpace__C5_osg_Matrix_R1,108 __void__setInvBindMatrixInSkeletonSpace__C5_osg_Matrix_R1, 163 109 "", 164 110 ""); 165 I_Method0(bool, needToComputeBindMatrix,166 Properties::NON_VIRTUAL,167 __bool__needToComputeBindMatrix,168 "",169 "");170 I_Method0(void, computeBindMatrix,171 Properties::VIRTUAL,172 __void__computeBindMatrix,173 "",174 "");175 I_Method1(void, setNeedToComputeBindMatrix, IN, bool, state,176 Properties::NON_VIRTUAL,177 __void__setNeedToComputeBindMatrix__bool,178 "",179 "");180 I_Method1(bool, addChild, IN, osg::Node *, child,181 Properties::VIRTUAL,182 __bool__addChild__Node_P1,183 "Add Node to Group. ",184 "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes. ");185 I_Method0(osgAnimation::Bone::BoneMap, getBoneMap,186 Properties::NON_VIRTUAL,187 __BoneMap__getBoneMap,188 "",189 "");190 I_SimpleProperty(const osg::Matrix &, BindMatrixInBoneSpace,191 __C5_osg_Matrix_R1__getBindMatrixInBoneSpace,192 __void__setBindMatrixInBoneSpace__C5_osg_Matrix_R1);193 I_SimpleProperty(osgAnimation::Bone::BoneMap, BoneMap,194 __BoneMap__getBoneMap,195 0);196 111 I_SimpleProperty(osgAnimation::Bone *, BoneParent, 197 112 __Bone_P1__getBoneParent, … … 202 117 I_SimpleProperty(const osg::Matrix &, InvBindMatrixInSkeletonSpace, 203 118 __C5_osg_Matrix_R1__getInvBindMatrixInSkeletonSpace, 204 0);205 I_SimpleProperty( osg::Matrix, MatrixInBoneSpace,206 __ osg_Matrix__getMatrixInBoneSpace,119 __void__setInvBindMatrixInSkeletonSpace__C5_osg_Matrix_R1); 120 I_SimpleProperty(const osg::Matrix &, MatrixInBoneSpace, 121 __C5_osg_Matrix_R1__getMatrixInBoneSpace, 207 122 0); 208 123 I_SimpleProperty(const osg::Matrix &, MatrixInSkeletonSpace, 209 124 __C5_osg_Matrix_R1__getMatrixInSkeletonSpace, 210 125 __void__setMatrixInSkeletonSpace__C5_osg_Matrix_R1); 211 I_SimpleProperty(bool, NeedToComputeBindMatrix,212 0,213 __void__setNeedToComputeBindMatrix__bool);214 I_SimpleProperty(const osg::Quat &, Rotation,215 __C5_osg_Quat_R1__getRotation,216 __void__setRotation__C5_osg_Quat_R1);217 I_SimpleProperty(const osg::Vec3 &, Scale,218 __C5_osg_Vec3_R1__getScale,219 __void__setScale__C5_osg_Vec3_R1);220 I_SimpleProperty(const osg::Vec3 &, Translation,221 __C5_osg_Vec3_R1__getTranslation,222 __void__setTranslation__C5_osg_Vec3_R1);223 126 END_REFLECTOR 224 127 225 BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::UpdateBone) 226 I_DeclaringFile("osgAnimation/Bone"); 227 I_Method0(osg::Object *, cloneType, 228 Properties::VIRTUAL, 229 __osg_Object_P1__cloneType, 230 "Clone the type of an object, with Object* return type. ", 231 "Must be defined by derived classes. "); 232 I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, 233 Properties::VIRTUAL, 234 __osg_Object_P1__clone__C5_osg_CopyOp_R1, 235 "Clone an object, with Object* return type. ", 236 "Must be defined by derived classes. "); 237 I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, 238 Properties::VIRTUAL, 239 __bool__isSameKindAs__C5_osg_Object_P1, 240 "", 241 ""); 242 I_Method0(const char *, libraryName, 243 Properties::VIRTUAL, 244 __C5_char_P1__libraryName, 245 "return the name of the object's library. ", 246 "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); 247 I_Method0(const char *, className, 248 Properties::VIRTUAL, 249 __C5_char_P1__className, 250 "return the name of the object's class type. ", 251 "Must be defined by derived classes. "); 252 I_Constructor2(IN, const osgAnimation::Bone::UpdateBone &, apc, IN, const osg::CopyOp &, copyop, 253 ____UpdateBone__C5_UpdateBone_R1__C5_osg_CopyOp_R1, 254 "", 255 ""); 256 I_ConstructorWithDefaults1(IN, const std::string &, name, "", 257 Properties::NON_EXPLICIT, 258 ____UpdateBone__C5_std_string_R1, 259 "", 260 ""); 261 I_Method1(void, update, IN, osgAnimation::Bone &, bone, 262 Properties::NON_VIRTUAL, 263 __void__update__osgAnimation_Bone_R1, 264 "", 265 ""); 266 I_Method0(osgAnimation::QuatTarget *, getQuaternion, 267 Properties::NON_VIRTUAL, 268 __osgAnimation_QuatTarget_P1__getQuaternion, 269 "", 270 ""); 271 I_Method0(osgAnimation::Vec3Target *, getPosition, 272 Properties::NON_VIRTUAL, 273 __osgAnimation_Vec3Target_P1__getPosition, 274 "", 275 ""); 276 I_Method0(osgAnimation::Vec3Target *, getScale, 277 Properties::NON_VIRTUAL, 278 __osgAnimation_Vec3Target_P1__getScale, 279 "", 280 ""); 281 I_Method0(bool, needLink, 282 Properties::NON_VIRTUAL, 283 __bool__needLink, 284 "", 285 ""); 286 I_Method1(bool, link, IN, osgAnimation::Channel *, channel, 287 Properties::VIRTUAL, 288 __bool__link__osgAnimation_Channel_P1, 289 "Link channel. ", 290 ""); 291 I_SimpleProperty(osgAnimation::Vec3Target *, Position, 292 __osgAnimation_Vec3Target_P1__getPosition, 293 0); 294 I_SimpleProperty(osgAnimation::QuatTarget *, Quaternion, 295 __osgAnimation_QuatTarget_P1__getQuaternion, 296 0); 297 I_SimpleProperty(osgAnimation::Vec3Target *, Scale, 298 __osgAnimation_Vec3Target_P1__getScale, 299 0); 300 END_REFLECTOR 128 TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< osgAnimation::Bone > >, osgAnimation::BoneMap) 301 129 302 130 BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Bone >) … … 340 168 END_REFLECTOR 341 169 342 STD_MAP_REFLECTOR(std::map< std::string COMMA osg Animation::Bone::PointerType>)170 STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< osgAnimation::Bone > >) 343 171 -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/BoneMapVisitor.cpp
r10967 r11011 50 50 "", 51 51 ""); 52 I_Method0(const osgAnimation::Bone ::BoneMap &, getBoneMap,52 I_Method0(const osgAnimation::BoneMap &, getBoneMap, 53 53 Properties::NON_VIRTUAL, 54 __C5_Bone _BoneMap_R1__getBoneMap,54 __C5_BoneMap_R1__getBoneMap, 55 55 "", 56 56 ""); 57 I_SimpleProperty(const osgAnimation::Bone ::BoneMap &, BoneMap,58 __C5_Bone _BoneMap_R1__getBoneMap,57 I_SimpleProperty(const osgAnimation::BoneMap &, BoneMap, 58 __C5_BoneMap_R1__getBoneMap, 59 59 0); 60 60 END_REFLECTOR -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/Channel.cpp
r10967 r11011 150 150 TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >, osgAnimation::QuatSphericalLinearChannel) 151 151 152 TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::MatrixLinearSampler >, osgAnimation::MatrixLinearChannel) 153 152 154 TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >, osgAnimation::FloatCubicBezierChannel) 153 155 … … 200 202 END_REFLECTOR 201 203 204 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::MatrixLinearSampler >) 205 I_DeclaringFile("osgAnimation/Channel"); 206 I_BaseType(osgAnimation::Channel); 207 I_Method0(osgAnimation::Channel *, clone, 208 Properties::VIRTUAL, 209 __Channel_P1__clone, 210 "", 211 ""); 212 I_Constructor1(IN, const osgAnimation::TemplateChannel< osgAnimation::MatrixLinearSampler > &, channel, 213 Properties::NON_EXPLICIT, 214 ____TemplateChannel__C5_TemplateChannel_R1, 215 "", 216 ""); 217 I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::MatrixLinearSampler >::TargetType *, target, 0, 218 ____TemplateChannel__SamplerType_P1__TargetType_P1, 219 "", 220 ""); 221 I_Method0(bool, createKeyframeContainerFromTargetValue, 222 Properties::VIRTUAL, 223 __bool__createKeyframeContainerFromTargetValue, 224 "", 225 ""); 226 I_Method3(void, update, IN, float, time, IN, float, weight, IN, int, priority, 227 Properties::VIRTUAL, 228 __void__update__float__float__int, 229 "", 230 ""); 231 I_Method0(void, reset, 232 Properties::VIRTUAL, 233 __void__reset, 234 "", 235 ""); 236 I_Method0(osgAnimation::Target *, getTarget, 237 Properties::VIRTUAL, 238 __Target_P1__getTarget, 239 "", 240 ""); 241 I_Method1(bool, setTarget, IN, osgAnimation::Target *, target, 242 Properties::VIRTUAL, 243 __bool__setTarget__Target_P1, 244 "", 245 ""); 246 I_Method0(SamplerType *, getOrCreateSampler, 247 Properties::NON_VIRTUAL, 248 __SamplerType_P1__getOrCreateSampler, 249 "", 250 ""); 251 I_Method0(osgAnimation::Sampler *, getSampler, 252 Properties::VIRTUAL, 253 __Sampler_P1__getSampler, 254 "", 255 ""); 256 I_Method0(const osgAnimation::Sampler *, getSampler, 257 Properties::VIRTUAL, 258 __C5_Sampler_P1__getSampler, 259 "", 260 ""); 261 I_Method0(SamplerType *, getSamplerTyped, 262 Properties::NON_VIRTUAL, 263 __SamplerType_P1__getSamplerTyped, 264 "", 265 ""); 266 I_Method0(const SamplerType *, getSamplerTyped, 267 Properties::NON_VIRTUAL, 268 __C5_SamplerType_P1__getSamplerTyped, 269 "", 270 ""); 271 I_Method1(void, setSampler, IN, SamplerType *, sampler, 272 Properties::NON_VIRTUAL, 273 __void__setSampler__SamplerType_P1, 274 "", 275 ""); 276 I_Method0(osgAnimation::TemplateChannel< osgAnimation::MatrixLinearSampler >::TargetType *, getTargetTyped, 277 Properties::NON_VIRTUAL, 278 __TargetType_P1__getTargetTyped, 279 "", 280 ""); 281 I_Method0(const osgAnimation::TemplateChannel< osgAnimation::MatrixLinearSampler >::TargetType *, getTargetTyped, 282 Properties::NON_VIRTUAL, 283 __C5_TargetType_P1__getTargetTyped, 284 "", 285 ""); 286 I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::MatrixLinearSampler >::TargetType *, target, 287 Properties::NON_VIRTUAL, 288 __void__setTarget__TargetType_P1, 289 "", 290 ""); 291 I_Method0(float, getStartTime, 292 Properties::VIRTUAL, 293 __float__getStartTime, 294 "", 295 ""); 296 I_Method0(float, getEndTime, 297 Properties::VIRTUAL, 298 __float__getEndTime, 299 "", 300 ""); 301 I_SimpleProperty(float, EndTime, 302 __float__getEndTime, 303 0); 304 I_SimpleProperty(SamplerType *, Sampler, 305 0, 306 __void__setSampler__SamplerType_P1); 307 I_SimpleProperty(SamplerType *, SamplerTyped, 308 __SamplerType_P1__getSamplerTyped, 309 0); 310 I_SimpleProperty(float, StartTime, 311 __float__getStartTime, 312 0); 313 I_SimpleProperty(osgAnimation::Target *, Target, 314 __Target_P1__getTarget, 315 __bool__setTarget__Target_P1); 316 I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::MatrixLinearSampler >::TargetType *, TargetTyped, 317 __TargetType_P1__getTargetTyped, 318 0); 319 END_REFLECTOR 320 202 321 STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgAnimation::Channel > >) 203 322 -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/Interpolator.cpp
r10967 r11011 49 49 TYPE_NAME_ALIAS(osgAnimation::TemplateSphericalLinearInterpolator< osg::Quat COMMA osg::Quat >, osgAnimation::QuatSphericalLinearInterpolator) 50 50 51 TYPE_NAME_ALIAS(osgAnimation::TemplateLinearInterpolator< osg::Matrixf COMMA osg::Matrixf >, osgAnimation::MatrixLinearInterpolator) 52 51 53 TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezierInterpolator< float COMMA osgAnimation::FloatCubicBezier >, osgAnimation::FloatCubicBezierInterpolator) 52 54 … … 59 61 TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezierInterpolator< osg::Vec4 COMMA osgAnimation::Vec4CubicBezier >, osgAnimation::Vec4CubicBezierInterpolator) 60 62 63 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateLinearInterpolator< osg::Matrixf COMMA osg::Matrixf >) 64 I_DeclaringFile("osgAnimation/Interpolator"); 65 I_BaseType(osgAnimation::TemplateInterpolatorBase); 66 I_Constructor0(____TemplateLinearInterpolator, 67 "", 68 ""); 69 I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 70 Properties::NON_VIRTUAL, 71 __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 72 "", 73 ""); 74 END_REFLECTOR 75 -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/Keyframe.cpp
r10967 r11011 78 78 TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osg::Quat >, osgAnimation::QuatKeyframeContainer) 79 79 80 TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osg::Matrixf >, osgAnimation::MatrixKeyframe) 81 82 TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osg::Matrixf >, osgAnimation::MatrixKeyframeContainer) 83 80 84 TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osgAnimation::Vec3Packed >, osgAnimation::Vec3PackedKeyframe) 81 85 … … 102 106 TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec4CubicBezier >, osgAnimation::Vec4CubicBezierKeyframeContainer) 103 107 108 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osg::Matrixf >) 109 I_DeclaringFile("osgAnimation/Keyframe"); 110 I_BaseType(osgAnimation::Keyframe); 111 I_Constructor0(____TemplateKeyframe, 112 "", 113 ""); 114 I_Constructor2(IN, float, time, IN, const T &, value, 115 ____TemplateKeyframe__float__C5_T_R1, 116 "", 117 ""); 118 I_Method1(void, setValue, IN, const T &, value, 119 Properties::NON_VIRTUAL, 120 __void__setValue__C5_T_R1, 121 "", 122 ""); 123 I_Method0(const T &, getValue, 124 Properties::NON_VIRTUAL, 125 __C5_T_R1__getValue, 126 "", 127 ""); 128 I_SimpleProperty(const T &, Value, 129 __C5_T_R1__getValue, 130 __void__setValue__C5_T_R1); 131 END_REFLECTOR 132 133 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osg::Matrixf >) 134 I_DeclaringFile("osgAnimation/Keyframe"); 135 I_BaseType(osgAnimation::KeyframeContainer); 136 I_Constructor0(____TemplateKeyframeContainer, 137 "", 138 ""); 139 I_Method0(unsigned int, size, 140 Properties::VIRTUAL, 141 __unsigned_int__size, 142 "", 143 ""); 144 END_REFLECTOR 145 -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/RigGeometry.cpp
r10967 r11011 33 33 I_BaseType(osg::Geometry); 34 34 I_Constructor0(____RigGeometry, 35 "",36 "");37 I_Constructor1(IN, const osg::Geometry &, b,38 Properties::NON_EXPLICIT,39 ____RigGeometry__C5_osg_Geometry_R1,40 35 "", 41 36 ""); … … 154 149 "", 155 150 ""); 151 I_Method0(osg::Geometry *, getSourceGeometry, 152 Properties::NON_VIRTUAL, 153 __osg_Geometry_P1__getSourceGeometry, 154 "", 155 ""); 156 I_Method0(const osg::Geometry *, getSourceGeometry, 157 Properties::NON_VIRTUAL, 158 __C5_osg_Geometry_P1__getSourceGeometry, 159 "", 160 ""); 161 I_Method1(void, setSourceGeometry, IN, osg::Geometry *, geometry, 162 Properties::NON_VIRTUAL, 163 __void__setSourceGeometry__osg_Geometry_P1, 164 "", 165 ""); 166 I_Method1(void, copyFrom, IN, osg::Geometry &, from, 167 Properties::NON_VIRTUAL, 168 __void__copyFrom__osg_Geometry_R1, 169 "", 170 ""); 156 171 I_SimpleProperty(osgAnimation::VertexInfluenceMap *, InfluenceMap, 157 172 __VertexInfluenceMap_P1__getInfluenceMap, … … 172 187 __Skeleton_P1__getSkeleton, 173 188 __void__setSkeleton__Skeleton_P1); 189 I_SimpleProperty(osg::Geometry *, SourceGeometry, 190 __osg_Geometry_P1__getSourceGeometry, 191 __void__setSourceGeometry__osg_Geometry_P1); 174 192 I_SimpleProperty(const osgAnimation::VertexInfluenceSet &, VertexInfluenceSet, 175 193 __C5_VertexInfluenceSet_R1__getVertexInfluenceSet, -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/RigTransform.cpp
r10967 r11011 22 22 #endif 23 23 24 BEGIN_ ABSTRACT_OBJECT_REFLECTOR(osgAnimation::RigTransform)24 BEGIN_OBJECT_REFLECTOR(osgAnimation::RigTransform) 25 25 I_DeclaringFile("osgAnimation/RigTransform"); 26 26 I_BaseType(osg::Referenced); … … 28 28 "", 29 29 ""); 30 I_Method0(bool, needInit,31 Properties::NON_VIRTUAL,32 __bool__needInit,33 "",34 "");35 I_Method1(bool, init, IN, osgAnimation::RigGeometry &, x,36 Properties::PURE_VIRTUAL,37 __bool__init__RigGeometry_R1,38 "",39 "");40 I_Method1(void, update, IN, osgAnimation::RigGeometry &, x,41 Properties::PURE_VIRTUAL,42 __void__update__RigGeometry_R1,43 "",44 "");45 30 END_REFLECTOR 46 31 -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/RigTransformHardware.cpp
r10967 r11011 15 15 #include <osg/Shader> 16 16 #include <osg/Uniform> 17 #include <osgAnimation/Bone> 17 18 #include <osgAnimation/RigGeometry> 18 19 #include <osgAnimation/RigTransformHardware> … … 31 32 TYPE_NAME_ALIAS(osgAnimation::Bone, osgAnimation::RigTransformHardware::BoneType) 32 33 33 TYPE_NAME_ALIAS(osgAnimation::Bone::BoneMap, osgAnimation::RigTransformHardware::BoneMap)34 35 34 TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Vec4Array > >, osgAnimation::RigTransformHardware::BoneWeightAttribList) 36 35 … … 77 76 "", 78 77 ""); 79 I_Method3(bool, createPalette, IN, int, nbVertexes, IN, osgAnimation:: RigTransformHardware::BoneMap, boneMap, IN, const osgAnimation::VertexInfluenceSet::VertexIndexToBoneWeightMap &, vertexIndexToBoneWeightMap,78 I_Method3(bool, createPalette, IN, int, nbVertexes, IN, osgAnimation::BoneMap, boneMap, IN, const osgAnimation::VertexInfluenceSet::VertexIndexToBoneWeightMap &, vertexIndexToBoneWeightMap, 80 79 Properties::NON_VIRTUAL, 81 80 __bool__createPalette__int__BoneMap__C5_VertexInfluenceSet_VertexIndexToBoneWeightMap_R1, 82 81 "", 83 82 ""); 84 I_Method1(bool, init, IN, osgAnimation::RigGeometry &, x,85 Properties::VIRTUAL,86 __bool__init__RigGeometry_R1,87 "",88 "");89 I_Method1(void, update, IN, osgAnimation::RigGeometry &, x,90 Properties::VIRTUAL,91 __void__update__RigGeometry_R1,92 "",93 "");94 83 I_Method1(void, setShader, IN, osg::Shader *, x, 95 84 Properties::NON_VIRTUAL, … … 97 86 "", 98 87 ""); 88 I_ProtectedMethod1(bool, init, IN, osgAnimation::RigGeometry &, x, 89 Properties::NON_VIRTUAL, 90 Properties::NON_CONST, 91 __bool__init__RigGeometry_R1, 92 "", 93 ""); 99 94 I_ProtectedMethod0(osgAnimation::RigTransformHardware::BoneWeightAttribList, createVertexAttribList, 100 95 Properties::NON_VIRTUAL, -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/RigTransformSoftware.cpp
r10967 r11011 12 12 13 13 #include <osg/Matrix> 14 #include <osg/Vec3>15 14 #include <osgAnimation/Bone> 16 15 #include <osgAnimation/RigGeometry> … … 35 34 "", 36 35 ""); 37 I_Method1(bool, init, IN, osgAnimation::RigGeometry &, x, 38 Properties::VIRTUAL, 39 __bool__init__RigGeometry_R1, 40 "", 41 ""); 42 I_Method1(void, update, IN, osgAnimation::RigGeometry &, x, 43 Properties::VIRTUAL, 44 __void__update__RigGeometry_R1, 45 "", 46 ""); 47 I_Method0(const std::vector< osg::Vec3 > &, getPositionSource, 48 Properties::NON_VIRTUAL, 49 __C5_std_vectorT1_osg_Vec3__R1__getPositionSource, 50 "", 51 ""); 52 I_Method0(const std::vector< osg::Vec3 > &, getNormalSource, 53 Properties::NON_VIRTUAL, 54 __C5_std_vectorT1_osg_Vec3__R1__getNormalSource, 55 "", 56 ""); 57 I_ProtectedMethod2(void, initVertexSetFromBones, IN, const osgAnimation::Bone::BoneMap &, map, IN, const osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSetList &, influence, 36 I_ProtectedMethod1(bool, init, IN, osgAnimation::RigGeometry &, x, 58 37 Properties::NON_VIRTUAL, 59 38 Properties::NON_CONST, 60 __ void__initVertexSetFromBones__C5_Bone_BoneMap_R1__C5_VertexInfluenceSet_UniqVertexSetToBoneSetList_R1,39 __bool__init__RigGeometry_R1, 61 40 "", 62 41 ""); 63 I_ SimpleProperty(const std::vector< osg::Vec3 > &, NormalSource,64 __C5_std_vectorT1_osg_Vec3__R1__getNormalSource,65 0);66 I_SimpleProperty(const std::vector< osg::Vec3 > &, PositionSource,67 __C5_std_vectorT1_osg_Vec3__R1__getPositionSource,68 0);42 I_ProtectedMethod2(void, initVertexSetFromBones, IN, const osgAnimation::BoneMap &, map, IN, const osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSetList &, influence, 43 Properties::NON_VIRTUAL, 44 Properties::NON_CONST, 45 __void__initVertexSetFromBones__C5_BoneMap_R1__C5_VertexInfluenceSet_UniqVertexSetToBoneSetList_R1, 46 "", 47 ""); 69 48 END_REFLECTOR 70 49 -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/Sampler.cpp
r10967 r11011 68 68 TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >, osgAnimation::QuatSphericalLinearSampler) 69 69 70 TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::MatrixLinearInterpolator >, osgAnimation::MatrixLinearSampler) 71 70 72 TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >, osgAnimation::FloatCubicBezierSampler) 71 73 … … 468 470 END_REFLECTOR 469 471 472 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::MatrixLinearInterpolator >) 473 I_DeclaringFile("osgAnimation/Sampler"); 474 I_BaseType(osgAnimation::Sampler); 475 I_Constructor0(____TemplateSampler, 476 "", 477 ""); 478 I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::MatrixLinearInterpolator >::UsingType &, result, 479 Properties::NON_VIRTUAL, 480 __void__getValueAt__float__UsingType_R1, 481 "", 482 ""); 483 I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::MatrixLinearInterpolator >::KeyframeContainerType *, kf, 484 Properties::NON_VIRTUAL, 485 __void__setKeyframeContainer__KeyframeContainerType_P1, 486 "", 487 ""); 488 I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, 489 Properties::VIRTUAL, 490 __KeyframeContainer_P1__getKeyframeContainer, 491 "", 492 ""); 493 I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, 494 Properties::VIRTUAL, 495 __C5_KeyframeContainer_P1__getKeyframeContainer, 496 "", 497 ""); 498 I_Method0(osgAnimation::TemplateSampler< osgAnimation::MatrixLinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, 499 Properties::NON_VIRTUAL, 500 __KeyframeContainerType_P1__getKeyframeContainerTyped, 501 "", 502 ""); 503 I_Method0(const osgAnimation::TemplateSampler< osgAnimation::MatrixLinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, 504 Properties::NON_VIRTUAL, 505 __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, 506 "", 507 ""); 508 I_Method0(osgAnimation::TemplateSampler< osgAnimation::MatrixLinearInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, 509 Properties::NON_VIRTUAL, 510 __KeyframeContainerType_P1__getOrCreateKeyframeContainer, 511 "", 512 ""); 513 I_Method0(float, getStartTime, 514 Properties::NON_VIRTUAL, 515 __float__getStartTime, 516 "", 517 ""); 518 I_Method0(float, getEndTime, 519 Properties::NON_VIRTUAL, 520 __float__getEndTime, 521 "", 522 ""); 523 I_SimpleProperty(float, EndTime, 524 __float__getEndTime, 525 0); 526 I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, 527 __KeyframeContainer_P1__getKeyframeContainer, 528 0); 529 I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::MatrixLinearInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, 530 __KeyframeContainerType_P1__getKeyframeContainerTyped, 531 0); 532 I_SimpleProperty(float, StartTime, 533 __float__getStartTime, 534 0); 535 END_REFLECTOR 536 470 537 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >) 471 538 I_DeclaringFile("osgAnimation/Sampler"); -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/Skeleton.cpp
r10967 r11011 27 27 BEGIN_OBJECT_REFLECTOR(osgAnimation::Skeleton) 28 28 I_DeclaringFile("osgAnimation/Skeleton"); 29 I_BaseType(osg Animation::Bone);29 I_BaseType(osg::MatrixTransform); 30 30 I_Method0(osg::Object *, cloneType, 31 31 Properties::VIRTUAL, … … 68 68 Properties::NON_VIRTUAL, 69 69 __void__setDefaultUpdateCallback, 70 "",71 "");72 I_Method0(void, computeBindMatrix,73 Properties::VIRTUAL,74 __void__computeBindMatrix,75 70 "", 76 71 ""); -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgAnimation/Target.cpp
r10967 r11011 11 11 #include <osgIntrospection/Attributes> 12 12 13 #include <osg/Matrixf> 13 14 #include <osg/Quat> 14 15 #include <osg/Vec2> … … 54 55 END_REFLECTOR 55 56 57 TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< osg::Matrixf >, osgAnimation::MatrixTarget) 58 56 59 TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< osg::Quat >, osgAnimation::QuatTarget) 57 60 … … 66 69 TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< double >, osgAnimation::DoubleTarget) 67 70 71 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateTarget< osg::Matrixf >) 72 I_DeclaringFile("osgAnimation/Target"); 73 I_BaseType(osgAnimation::Target); 74 I_Constructor0(____TemplateTarget, 75 "", 76 ""); 77 I_Constructor1(IN, const T &, v, 78 Properties::NON_EXPLICIT, 79 ____TemplateTarget__C5_T_R1, 80 "", 81 ""); 82 I_Constructor1(IN, const osgAnimation::TemplateTarget< osg::Matrixf > &, v, 83 Properties::NON_EXPLICIT, 84 ____TemplateTarget__C5_TemplateTarget_R1, 85 "", 86 ""); 87 I_Method3(void, lerp, IN, float, t, IN, const T &, a, IN, const T &, b, 88 Properties::NON_VIRTUAL, 89 __void__lerp__float__C5_T_R1__C5_T_R1, 90 "", 91 ""); 92 I_Method3(void, update, IN, float, weight, IN, const T &, val, IN, int, priority, 93 Properties::NON_VIRTUAL, 94 __void__update__float__C5_T_R1__int, 95 "The priority is used to detect a change of priority It's important to update animation target in priority order. ", 96 "eg: all animation with priority 1 all animation with priority 0 all animation with priority -1 ... "); 97 I_Method0(const T &, getValue, 98 Properties::NON_VIRTUAL, 99 __C5_T_R1__getValue, 100 "", 101 ""); 102 I_Method1(void, setValue, IN, const T &, value, 103 Properties::NON_VIRTUAL, 104 __void__setValue__C5_T_R1, 105 "", 106 ""); 107 I_SimpleProperty(const T &, Value, 108 __C5_T_R1__getValue, 109 __void__setValue__C5_T_R1); 110 END_REFLECTOR 111
