| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | #include <osgIntrospection/ReflectionMacros> |
|---|
| 9 | #include <osgIntrospection/TypedMethodInfo> |
|---|
| 10 | #include <osgIntrospection/StaticMethodInfo> |
|---|
| 11 | #include <osgIntrospection/Attributes> |
|---|
| 12 | |
|---|
| 13 | #include <osg/CopyOp> |
|---|
| 14 | #include <osg/Matrix> |
|---|
| 15 | #include <osg/Node> |
|---|
| 16 | #include <osg/NodeVisitor> |
|---|
| 17 | #include <osg/Object> |
|---|
| 18 | #include <osg/Quat> |
|---|
| 19 | #include <osg/Transform> |
|---|
| 20 | #include <osg/Vec3> |
|---|
| 21 | #include <osgAnimation/Bone> |
|---|
| 22 | #include <osgAnimation/Channel> |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | #ifdef IN |
|---|
| 26 | #undef IN |
|---|
| 27 | #endif |
|---|
| 28 | #ifdef OUT |
|---|
| 29 | #undef OUT |
|---|
| 30 | #endif |
|---|
| 31 | |
|---|
| 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 | TYPE_NAME_ALIAS(osg::Matrix, osgAnimation::Bone::MatrixType) |
|---|
| 37 | |
|---|
| 38 | BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone) |
|---|
| 39 | I_DeclaringFile("osgAnimation/Bone"); |
|---|
| 40 | I_BaseType(osg::Transform); |
|---|
| 41 | I_Method0(osg::Object *, cloneType, |
|---|
| 42 | Properties::VIRTUAL, |
|---|
| 43 | __osg_Object_P1__cloneType, |
|---|
| 44 | "clone an object of the same type as the node. ", |
|---|
| 45 | ""); |
|---|
| 46 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, |
|---|
| 47 | Properties::VIRTUAL, |
|---|
| 48 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 49 | "return a clone of a node, with Object* return type. ", |
|---|
| 50 | ""); |
|---|
| 51 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 52 | Properties::VIRTUAL, |
|---|
| 53 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 54 | "return true if this and obj are of the same kind of object. ", |
|---|
| 55 | ""); |
|---|
| 56 | I_Method0(const char *, className, |
|---|
| 57 | Properties::VIRTUAL, |
|---|
| 58 | __C5_char_P1__className, |
|---|
| 59 | "return the name of the node's class type. ", |
|---|
| 60 | ""); |
|---|
| 61 | I_Method0(const char *, libraryName, |
|---|
| 62 | Properties::VIRTUAL, |
|---|
| 63 | __C5_char_P1__libraryName, |
|---|
| 64 | "return the name of the node's library. ", |
|---|
| 65 | ""); |
|---|
| 66 | I_Method1(void, accept, IN, osg::NodeVisitor &, nv, |
|---|
| 67 | Properties::VIRTUAL, |
|---|
| 68 | __void__accept__osg_NodeVisitor_R1, |
|---|
| 69 | "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", |
|---|
| 70 | ""); |
|---|
| 71 | I_ConstructorWithDefaults2(IN, const osgAnimation::Bone &, b, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 72 | ____Bone__C5_Bone_R1__C5_osg_CopyOp_R1, |
|---|
| 73 | "", |
|---|
| 74 | ""); |
|---|
| 75 | I_ConstructorWithDefaults1(IN, const std::string &, name, "", |
|---|
| 76 | Properties::NON_EXPLICIT, |
|---|
| 77 | ____Bone__C5_std_string_R1, |
|---|
| 78 | "", |
|---|
| 79 | ""); |
|---|
| 80 | I_MethodWithDefaults1(void, setDefaultUpdateCallback, IN, const std::string &, name, "", |
|---|
| 81 | Properties::NON_VIRTUAL, |
|---|
| 82 | __void__setDefaultUpdateCallback__C5_std_string_R1, |
|---|
| 83 | "", |
|---|
| 84 | ""); |
|---|
| 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 | I_Method0(osgAnimation::Bone *, getBoneParent, |
|---|
| 96 | Properties::NON_VIRTUAL, |
|---|
| 97 | __Bone_P1__getBoneParent, |
|---|
| 98 | "", |
|---|
| 99 | ""); |
|---|
| 100 | I_Method0(const osgAnimation::Bone *, getBoneParent, |
|---|
| 101 | Properties::NON_VIRTUAL, |
|---|
| 102 | __C5_Bone_P1__getBoneParent, |
|---|
| 103 | "", |
|---|
| 104 | ""); |
|---|
| 105 | I_Method1(void, setTranslation, IN, const osg::Vec3 &, trans, |
|---|
| 106 | 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(osg::Matrix, getMatrixInBoneSpace, |
|---|
| 131 | Properties::NON_VIRTUAL, |
|---|
| 132 | __osg_Matrix__getMatrixInBoneSpace, |
|---|
| 133 | "", |
|---|
| 134 | ""); |
|---|
| 135 | I_Method0(const osg::Matrix &, getBindMatrixInBoneSpace, |
|---|
| 136 | Properties::NON_VIRTUAL, |
|---|
| 137 | __C5_osg_Matrix_R1__getBindMatrixInBoneSpace, |
|---|
| 138 | "", |
|---|
| 139 | ""); |
|---|
| 140 | I_Method0(const osg::Matrix &, getMatrixInSkeletonSpace, |
|---|
| 141 | Properties::NON_VIRTUAL, |
|---|
| 142 | __C5_osg_Matrix_R1__getMatrixInSkeletonSpace, |
|---|
| 143 | "", |
|---|
| 144 | ""); |
|---|
| 145 | I_Method0(const osg::Matrix &, getInvBindMatrixInSkeletonSpace, |
|---|
| 146 | Properties::NON_VIRTUAL, |
|---|
| 147 | __C5_osg_Matrix_R1__getInvBindMatrixInSkeletonSpace, |
|---|
| 148 | "", |
|---|
| 149 | ""); |
|---|
| 150 | I_Method1(void, setMatrixInSkeletonSpace, IN, const osg::Matrix &, matrix, |
|---|
| 151 | Properties::NON_VIRTUAL, |
|---|
| 152 | __void__setMatrixInSkeletonSpace__C5_osg_Matrix_R1, |
|---|
| 153 | "", |
|---|
| 154 | ""); |
|---|
| 155 | I_Method1(void, setBindMatrixInBoneSpace, IN, const osg::Matrix &, matrix, |
|---|
| 156 | Properties::NON_VIRTUAL, |
|---|
| 157 | __void__setBindMatrixInBoneSpace__C5_osg_Matrix_R1, |
|---|
| 158 | "", |
|---|
| 159 | ""); |
|---|
| 160 | I_Method0(bool, needToComputeBindMatrix, |
|---|
| 161 | Properties::NON_VIRTUAL, |
|---|
| 162 | __bool__needToComputeBindMatrix, |
|---|
| 163 | "", |
|---|
| 164 | ""); |
|---|
| 165 | I_Method0(void, computeBindMatrix, |
|---|
| 166 | Properties::VIRTUAL, |
|---|
| 167 | __void__computeBindMatrix, |
|---|
| 168 | "", |
|---|
| 169 | ""); |
|---|
| 170 | I_Method1(void, setNeedToComputeBindMatrix, IN, bool, state, |
|---|
| 171 | Properties::NON_VIRTUAL, |
|---|
| 172 | __void__setNeedToComputeBindMatrix__bool, |
|---|
| 173 | "", |
|---|
| 174 | ""); |
|---|
| 175 | I_Method1(bool, addChild, IN, osg::Node *, child, |
|---|
| 176 | Properties::VIRTUAL, |
|---|
| 177 | __bool__addChild__Node_P1, |
|---|
| 178 | "Add Node to Group. ", |
|---|
| 179 | "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. "); |
|---|
| 180 | I_Method0(osgAnimation::Bone::BoneMap, getBoneMap, |
|---|
| 181 | Properties::NON_VIRTUAL, |
|---|
| 182 | __BoneMap__getBoneMap, |
|---|
| 183 | "", |
|---|
| 184 | ""); |
|---|
| 185 | I_SimpleProperty(const osg::Matrix &, BindMatrixInBoneSpace, |
|---|
| 186 | __C5_osg_Matrix_R1__getBindMatrixInBoneSpace, |
|---|
| 187 | __void__setBindMatrixInBoneSpace__C5_osg_Matrix_R1); |
|---|
| 188 | I_SimpleProperty(osgAnimation::Bone::BoneMap, BoneMap, |
|---|
| 189 | __BoneMap__getBoneMap, |
|---|
| 190 | 0); |
|---|
| 191 | I_SimpleProperty(osgAnimation::Bone *, BoneParent, |
|---|
| 192 | __Bone_P1__getBoneParent, |
|---|
| 193 | 0); |
|---|
| 194 | I_SimpleProperty(const std::string &, DefaultUpdateCallback, |
|---|
| 195 | 0, |
|---|
| 196 | __void__setDefaultUpdateCallback__C5_std_string_R1); |
|---|
| 197 | I_SimpleProperty(const osg::Matrix &, InvBindMatrixInSkeletonSpace, |
|---|
| 198 | __C5_osg_Matrix_R1__getInvBindMatrixInSkeletonSpace, |
|---|
| 199 | 0); |
|---|
| 200 | I_SimpleProperty(osg::Matrix, MatrixInBoneSpace, |
|---|
| 201 | __osg_Matrix__getMatrixInBoneSpace, |
|---|
| 202 | 0); |
|---|
| 203 | I_SimpleProperty(const osg::Matrix &, MatrixInSkeletonSpace, |
|---|
| 204 | __C5_osg_Matrix_R1__getMatrixInSkeletonSpace, |
|---|
| 205 | __void__setMatrixInSkeletonSpace__C5_osg_Matrix_R1); |
|---|
| 206 | I_SimpleProperty(bool, NeedToComputeBindMatrix, |
|---|
| 207 | 0, |
|---|
| 208 | __void__setNeedToComputeBindMatrix__bool); |
|---|
| 209 | I_SimpleProperty(const osg::Quat &, Rotation, |
|---|
| 210 | __C5_osg_Quat_R1__getRotation, |
|---|
| 211 | __void__setRotation__C5_osg_Quat_R1); |
|---|
| 212 | I_SimpleProperty(const osg::Vec3 &, Scale, |
|---|
| 213 | 0, |
|---|
| 214 | __void__setScale__C5_osg_Vec3_R1); |
|---|
| 215 | I_SimpleProperty(const osg::Vec3 &, Translation, |
|---|
| 216 | __C5_osg_Vec3_R1__getTranslation, |
|---|
| 217 | __void__setTranslation__C5_osg_Vec3_R1); |
|---|
| 218 | END_REFLECTOR |
|---|
| 219 | |
|---|
| 220 | BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::BoneMapVisitor) |
|---|
| 221 | I_DeclaringFile("osgAnimation/Bone"); |
|---|
| 222 | I_BaseType(osg::NodeVisitor); |
|---|
| 223 | I_Constructor0(____BoneMapVisitor, |
|---|
| 224 | "", |
|---|
| 225 | ""); |
|---|
| 226 | I_Method0(const char *, libraryName, |
|---|
| 227 | Properties::VIRTUAL, |
|---|
| 228 | __C5_char_P1__libraryName, |
|---|
| 229 | "return the library name/namespapce of the visitor's. ", |
|---|
| 230 | "Should be defined by derived classes. "); |
|---|
| 231 | I_Method0(const char *, className, |
|---|
| 232 | Properties::VIRTUAL, |
|---|
| 233 | __C5_char_P1__className, |
|---|
| 234 | "return the name of the visitor's class type. ", |
|---|
| 235 | "Should be defined by derived classes. "); |
|---|
| 236 | I_Method1(void, apply, IN, osg::Node &, x, |
|---|
| 237 | Properties::VIRTUAL, |
|---|
| 238 | __void__apply__osg_Node_R1, |
|---|
| 239 | "", |
|---|
| 240 | ""); |
|---|
| 241 | I_Method1(void, apply, IN, osg::Transform &, node, |
|---|
| 242 | Properties::VIRTUAL, |
|---|
| 243 | __void__apply__osg_Transform_R1, |
|---|
| 244 | "", |
|---|
| 245 | ""); |
|---|
| 246 | I_PublicMemberProperty(osgAnimation::Bone::BoneMap, _map); |
|---|
| 247 | END_REFLECTOR |
|---|
| 248 | |
|---|
| 249 | BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::FindNearestParentAnimationManager) |
|---|
| 250 | I_DeclaringFile("osgAnimation/Bone"); |
|---|
| 251 | I_BaseType(osg::NodeVisitor); |
|---|
| 252 | I_Constructor0(____FindNearestParentAnimationManager, |
|---|
| 253 | "", |
|---|
| 254 | ""); |
|---|
| 255 | I_Method1(void, apply, IN, osg::Node &, node, |
|---|
| 256 | Properties::VIRTUAL, |
|---|
| 257 | __void__apply__osg_Node_R1, |
|---|
| 258 | "", |
|---|
| 259 | ""); |
|---|
| 260 | I_PublicMemberProperty(osg::ref_ptr< osgAnimation::AnimationManagerBase >, _manager); |
|---|
| 261 | END_REFLECTOR |
|---|
| 262 | |
|---|
| 263 | BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::UpdateBone) |
|---|
| 264 | I_DeclaringFile("osgAnimation/Bone"); |
|---|
| 265 | I_BaseType(osgAnimation::AnimationUpdateCallback); |
|---|
| 266 | I_Method0(osg::Object *, cloneType, |
|---|
| 267 | Properties::VIRTUAL, |
|---|
| 268 | __osg_Object_P1__cloneType, |
|---|
| 269 | "Clone the type of an object, with Object* return type. ", |
|---|
| 270 | "Must be defined by derived classes. "); |
|---|
| 271 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 272 | Properties::VIRTUAL, |
|---|
| 273 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 274 | "Clone an object, with Object* return type. ", |
|---|
| 275 | "Must be defined by derived classes. "); |
|---|
| 276 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 277 | Properties::VIRTUAL, |
|---|
| 278 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 279 | "", |
|---|
| 280 | ""); |
|---|
| 281 | I_Method0(const char *, libraryName, |
|---|
| 282 | Properties::VIRTUAL, |
|---|
| 283 | __C5_char_P1__libraryName, |
|---|
| 284 | "return the name of the object's library. ", |
|---|
| 285 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 286 | I_Method0(const char *, className, |
|---|
| 287 | Properties::VIRTUAL, |
|---|
| 288 | __C5_char_P1__className, |
|---|
| 289 | "return the name of the object's class type. ", |
|---|
| 290 | "Must be defined by derived classes. "); |
|---|
| 291 | I_Constructor2(IN, const osgAnimation::Bone::UpdateBone &, apc, IN, const osg::CopyOp &, copyop, |
|---|
| 292 | ____UpdateBone__C5_UpdateBone_R1__C5_osg_CopyOp_R1, |
|---|
| 293 | "", |
|---|
| 294 | ""); |
|---|
| 295 | I_ConstructorWithDefaults1(IN, const std::string &, name, "", |
|---|
| 296 | Properties::NON_EXPLICIT, |
|---|
| 297 | ____UpdateBone__C5_std_string_R1, |
|---|
| 298 | "", |
|---|
| 299 | ""); |
|---|
| 300 | I_Method1(void, update, IN, osgAnimation::Bone &, bone, |
|---|
| 301 | Properties::NON_VIRTUAL, |
|---|
| 302 | __void__update__osgAnimation_Bone_R1, |
|---|
| 303 | "", |
|---|
| 304 | ""); |
|---|
| 305 | I_Method0(bool, needLink, |
|---|
| 306 | Properties::VIRTUAL, |
|---|
| 307 | __bool__needLink, |
|---|
| 308 | "", |
|---|
| 309 | ""); |
|---|
| 310 | I_Method1(bool, link, IN, osgAnimation::Channel *, channel, |
|---|
| 311 | Properties::VIRTUAL, |
|---|
| 312 | __bool__link__osgAnimation_Channel_P1, |
|---|
| 313 | "", |
|---|
| 314 | ""); |
|---|
| 315 | I_PublicMemberProperty(osg::ref_ptr< osgAnimation::Vec3Target >, _position); |
|---|
| 316 | I_PublicMemberProperty(osg::ref_ptr< osgAnimation::QuatTarget >, _quaternion); |
|---|
| 317 | I_PublicMemberProperty(osg::ref_ptr< osgAnimation::Vec3Target >, _scale); |
|---|
| 318 | END_REFLECTOR |
|---|
| 319 | |
|---|
| 320 | BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Bone >) |
|---|
| 321 | I_DeclaringFile("osg/ref_ptr"); |
|---|
| 322 | I_Constructor0(____ref_ptr, |
|---|
| 323 | "", |
|---|
| 324 | ""); |
|---|
| 325 | I_Constructor1(IN, osgAnimation::Bone *, ptr, |
|---|
| 326 | Properties::NON_EXPLICIT, |
|---|
| 327 | ____ref_ptr__T_P1, |
|---|
| 328 | "", |
|---|
| 329 | ""); |
|---|
| 330 | I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Bone > &, rp, |
|---|
| 331 | Properties::NON_EXPLICIT, |
|---|
| 332 | ____ref_ptr__C5_ref_ptr_R1, |
|---|
| 333 | "", |
|---|
| 334 | ""); |
|---|
| 335 | I_Method0(osgAnimation::Bone *, get, |
|---|
| 336 | Properties::NON_VIRTUAL, |
|---|
| 337 | __T_P1__get, |
|---|
| 338 | "", |
|---|
| 339 | ""); |
|---|
| 340 | I_Method0(bool, valid, |
|---|
| 341 | Properties::NON_VIRTUAL, |
|---|
| 342 | __bool__valid, |
|---|
| 343 | "", |
|---|
| 344 | ""); |
|---|
| 345 | I_Method0(osgAnimation::Bone *, release, |
|---|
| 346 | Properties::NON_VIRTUAL, |
|---|
| 347 | __T_P1__release, |
|---|
| 348 | "", |
|---|
| 349 | ""); |
|---|
| 350 | I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Bone > &, rp, |
|---|
| 351 | Properties::NON_VIRTUAL, |
|---|
| 352 | __void__swap__ref_ptr_R1, |
|---|
| 353 | "", |
|---|
| 354 | ""); |
|---|
| 355 | I_SimpleProperty(osgAnimation::Bone *, , |
|---|
| 356 | __T_P1__get, |
|---|
| 357 | 0); |
|---|
| 358 | END_REFLECTOR |
|---|
| 359 | |
|---|
| 360 | STD_MAP_REFLECTOR(std::map< std::string COMMA osgAnimation::Bone::PointerType >) |
|---|