| 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/Matrix> |
|---|
| 14 | #include <osg/Vec3> |
|---|
| 15 | #include <osgAnimation/Bone> |
|---|
| 16 | #include <osgAnimation/RigGeometry> |
|---|
| 17 | #include <osgAnimation/RigTransformSoftware> |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | #ifdef IN |
|---|
| 21 | #undef IN |
|---|
| 22 | #endif |
|---|
| 23 | #ifdef OUT |
|---|
| 24 | #undef OUT |
|---|
| 25 | #endif |
|---|
| 26 | |
|---|
| 27 | TYPE_NAME_ALIAS(std::vector< osgAnimation::RigTransformSoftware::BoneWeight >, osgAnimation::RigTransformSoftware::BoneWeightList) |
|---|
| 28 | |
|---|
| 29 | TYPE_NAME_ALIAS(std::vector< int >, osgAnimation::RigTransformSoftware::VertexList) |
|---|
| 30 | |
|---|
| 31 | BEGIN_OBJECT_REFLECTOR(osgAnimation::RigTransformSoftware) |
|---|
| 32 | I_DeclaringFile("osgAnimation/RigTransformSoftware"); |
|---|
| 33 | I_BaseType(osgAnimation::RigTransform); |
|---|
| 34 | I_Constructor0(____RigTransformSoftware, |
|---|
| 35 | "", |
|---|
| 36 | ""); |
|---|
| 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, |
|---|
| 58 | Properties::NON_VIRTUAL, |
|---|
| 59 | Properties::NON_CONST, |
|---|
| 60 | __void__initVertexSetFromBones__C5_Bone_BoneMap_R1__C5_VertexInfluenceSet_UniqVertexSetToBoneSetList_R1, |
|---|
| 61 | "", |
|---|
| 62 | ""); |
|---|
| 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); |
|---|
| 69 | END_REFLECTOR |
|---|
| 70 | |
|---|
| 71 | BEGIN_VALUE_REFLECTOR(osgAnimation::RigTransformSoftware::BoneWeight) |
|---|
| 72 | I_DeclaringFile("osgAnimation/RigTransformSoftware"); |
|---|
| 73 | I_Constructor2(IN, osgAnimation::Bone *, bone, IN, float, weight, |
|---|
| 74 | ____BoneWeight__Bone_P1__float, |
|---|
| 75 | "", |
|---|
| 76 | ""); |
|---|
| 77 | I_Method0(const osgAnimation::Bone *, getBone, |
|---|
| 78 | Properties::NON_VIRTUAL, |
|---|
| 79 | __C5_Bone_P1__getBone, |
|---|
| 80 | "", |
|---|
| 81 | ""); |
|---|
| 82 | I_Method0(float, getWeight, |
|---|
| 83 | Properties::NON_VIRTUAL, |
|---|
| 84 | __float__getWeight, |
|---|
| 85 | "", |
|---|
| 86 | ""); |
|---|
| 87 | I_Method1(void, setWeight, IN, float, w, |
|---|
| 88 | Properties::NON_VIRTUAL, |
|---|
| 89 | __void__setWeight__float, |
|---|
| 90 | "", |
|---|
| 91 | ""); |
|---|
| 92 | I_SimpleProperty(const osgAnimation::Bone *, Bone, |
|---|
| 93 | __C5_Bone_P1__getBone, |
|---|
| 94 | 0); |
|---|
| 95 | I_SimpleProperty(float, Weight, |
|---|
| 96 | __float__getWeight, |
|---|
| 97 | __void__setWeight__float); |
|---|
| 98 | END_REFLECTOR |
|---|
| 99 | |
|---|
| 100 | BEGIN_VALUE_REFLECTOR(osgAnimation::RigTransformSoftware::UniqBoneSetVertexSet) |
|---|
| 101 | I_DeclaringFile("osgAnimation/RigTransformSoftware"); |
|---|
| 102 | I_Constructor0(____UniqBoneSetVertexSet, |
|---|
| 103 | "", |
|---|
| 104 | ""); |
|---|
| 105 | I_Method0(osgAnimation::RigTransformSoftware::BoneWeightList &, getBones, |
|---|
| 106 | Properties::NON_VIRTUAL, |
|---|
| 107 | __BoneWeightList_R1__getBones, |
|---|
| 108 | "", |
|---|
| 109 | ""); |
|---|
| 110 | I_Method0(osgAnimation::RigTransformSoftware::VertexList &, getVertexes, |
|---|
| 111 | Properties::NON_VIRTUAL, |
|---|
| 112 | __VertexList_R1__getVertexes, |
|---|
| 113 | "", |
|---|
| 114 | ""); |
|---|
| 115 | I_Method0(void, resetMatrix, |
|---|
| 116 | Properties::NON_VIRTUAL, |
|---|
| 117 | __void__resetMatrix, |
|---|
| 118 | "", |
|---|
| 119 | ""); |
|---|
| 120 | I_Method3(void, accummulateMatrix, IN, const osg::Matrix &, invBindMatrix, IN, const osg::Matrix &, matrix, IN, osg::Matrix::value_type, weight, |
|---|
| 121 | Properties::NON_VIRTUAL, |
|---|
| 122 | __void__accummulateMatrix__C5_osg_Matrix_R1__C5_osg_Matrix_R1__osg_Matrix_value_type, |
|---|
| 123 | "", |
|---|
| 124 | ""); |
|---|
| 125 | I_Method0(void, computeMatrixForVertexSet, |
|---|
| 126 | Properties::NON_VIRTUAL, |
|---|
| 127 | __void__computeMatrixForVertexSet, |
|---|
| 128 | "", |
|---|
| 129 | ""); |
|---|
| 130 | I_Method0(const osg::Matrix &, getMatrix, |
|---|
| 131 | Properties::NON_VIRTUAL, |
|---|
| 132 | __C5_osg_Matrix_R1__getMatrix, |
|---|
| 133 | "", |
|---|
| 134 | ""); |
|---|
| 135 | I_SimpleProperty(osgAnimation::RigTransformSoftware::BoneWeightList &, Bones, |
|---|
| 136 | __BoneWeightList_R1__getBones, |
|---|
| 137 | 0); |
|---|
| 138 | I_SimpleProperty(const osg::Matrix &, Matrix, |
|---|
| 139 | __C5_osg_Matrix_R1__getMatrix, |
|---|
| 140 | 0); |
|---|
| 141 | I_SimpleProperty(osgAnimation::RigTransformSoftware::VertexList &, Vertexes, |
|---|
| 142 | __VertexList_R1__getVertexes, |
|---|
| 143 | 0); |
|---|
| 144 | END_REFLECTOR |
|---|
| 145 | |
|---|
| 146 | STD_VECTOR_REFLECTOR(std::vector< int >) |
|---|
| 147 | |
|---|
| 148 | STD_VECTOR_REFLECTOR(std::vector< osgAnimation::RigTransformSoftware::BoneWeight >) |
|---|