| 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 <osgAnimation/Skinning> |
|---|
| 15 | #include <osgAnimation/VertexInfluence> |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | #ifdef IN |
|---|
| 19 | #undef IN |
|---|
| 20 | #endif |
|---|
| 21 | #ifdef OUT |
|---|
| 22 | #undef OUT |
|---|
| 23 | #endif |
|---|
| 24 | |
|---|
| 25 | TYPE_NAME_ALIAS(osg::Matrix, osgAnimation::TransformVertexFunctor::MatrixType) |
|---|
| 26 | |
|---|
| 27 | TYPE_NAME_ALIAS(osgAnimation::Bone, osgAnimation::TransformVertexFunctor::BoneType) |
|---|
| 28 | |
|---|
| 29 | TYPE_NAME_ALIAS(osgAnimation::Bone::BoneMap, osgAnimation::TransformVertexFunctor::BoneMap) |
|---|
| 30 | |
|---|
| 31 | TYPE_NAME_ALIAS(std::vector< osgAnimation::TransformVertexFunctor::BoneWeight >, osgAnimation::TransformVertexFunctor::BoneWeightList) |
|---|
| 32 | |
|---|
| 33 | TYPE_NAME_ALIAS(std::vector< int >, osgAnimation::TransformVertexFunctor::VertexList) |
|---|
| 34 | |
|---|
| 35 | BEGIN_VALUE_REFLECTOR(osgAnimation::TransformVertexFunctor) |
|---|
| 36 | I_DeclaringFile("osgAnimation/Skinning"); |
|---|
| 37 | I_Constructor0(____TransformVertexFunctor, |
|---|
| 38 | "", |
|---|
| 39 | ""); |
|---|
| 40 | I_Method2(void, init, IN, const osgAnimation::TransformVertexFunctor::BoneMap &, map, IN, const osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSetList &, influence, |
|---|
| 41 | Properties::NON_VIRTUAL, |
|---|
| 42 | __void__init__C5_BoneMap_R1__C5_osgAnimation_VertexInfluenceSet_UniqVertexSetToBoneSetList_R1, |
|---|
| 43 | "", |
|---|
| 44 | ""); |
|---|
| 45 | END_REFLECTOR |
|---|
| 46 | |
|---|
| 47 | BEGIN_VALUE_REFLECTOR(osgAnimation::TransformVertexFunctor::BoneWeight) |
|---|
| 48 | I_DeclaringFile("osgAnimation/Skinning"); |
|---|
| 49 | I_Constructor2(IN, osgAnimation::TransformVertexFunctor::BoneType *, bone, IN, float, weight, |
|---|
| 50 | ____BoneWeight__BoneType_P1__float, |
|---|
| 51 | "", |
|---|
| 52 | ""); |
|---|
| 53 | I_Method0(const osgAnimation::TransformVertexFunctor::BoneType *, getBone, |
|---|
| 54 | Properties::NON_VIRTUAL, |
|---|
| 55 | __C5_BoneType_P1__getBone, |
|---|
| 56 | "", |
|---|
| 57 | ""); |
|---|
| 58 | I_Method0(float, getWeight, |
|---|
| 59 | Properties::NON_VIRTUAL, |
|---|
| 60 | __float__getWeight, |
|---|
| 61 | "", |
|---|
| 62 | ""); |
|---|
| 63 | I_Method1(void, setWeight, IN, float, w, |
|---|
| 64 | Properties::NON_VIRTUAL, |
|---|
| 65 | __void__setWeight__float, |
|---|
| 66 | "", |
|---|
| 67 | ""); |
|---|
| 68 | I_SimpleProperty(const osgAnimation::TransformVertexFunctor::BoneType *, Bone, |
|---|
| 69 | __C5_BoneType_P1__getBone, |
|---|
| 70 | 0); |
|---|
| 71 | I_SimpleProperty(float, Weight, |
|---|
| 72 | __float__getWeight, |
|---|
| 73 | __void__setWeight__float); |
|---|
| 74 | END_REFLECTOR |
|---|
| 75 | |
|---|
| 76 | BEGIN_VALUE_REFLECTOR(osgAnimation::TransformVertexFunctor::UniqBoneSetVertexSet) |
|---|
| 77 | I_DeclaringFile("osgAnimation/Skinning"); |
|---|
| 78 | I_Constructor0(____UniqBoneSetVertexSet, |
|---|
| 79 | "", |
|---|
| 80 | ""); |
|---|
| 81 | I_Method0(osgAnimation::TransformVertexFunctor::BoneWeightList &, getBones, |
|---|
| 82 | Properties::NON_VIRTUAL, |
|---|
| 83 | __BoneWeightList_R1__getBones, |
|---|
| 84 | "", |
|---|
| 85 | ""); |
|---|
| 86 | I_Method0(osgAnimation::TransformVertexFunctor::VertexList &, getVertexes, |
|---|
| 87 | Properties::NON_VIRTUAL, |
|---|
| 88 | __VertexList_R1__getVertexes, |
|---|
| 89 | "", |
|---|
| 90 | ""); |
|---|
| 91 | I_Method0(void, resetMatrix, |
|---|
| 92 | Properties::NON_VIRTUAL, |
|---|
| 93 | __void__resetMatrix, |
|---|
| 94 | "", |
|---|
| 95 | ""); |
|---|
| 96 | I_Method3(void, accummulateMatrix, IN, const osg::Matrix &, invBindMatrix, IN, const osg::Matrix &, matrix, IN, osg::Matrix::value_type, weight, |
|---|
| 97 | Properties::NON_VIRTUAL, |
|---|
| 98 | __void__accummulateMatrix__C5_osg_Matrix_R1__C5_osg_Matrix_R1__osg_Matrix_value_type, |
|---|
| 99 | "", |
|---|
| 100 | ""); |
|---|
| 101 | I_Method0(void, computeMatrixForVertexSet, |
|---|
| 102 | Properties::NON_VIRTUAL, |
|---|
| 103 | __void__computeMatrixForVertexSet, |
|---|
| 104 | "", |
|---|
| 105 | ""); |
|---|
| 106 | I_Method0(const osgAnimation::TransformVertexFunctor::MatrixType &, getMatrix, |
|---|
| 107 | Properties::NON_VIRTUAL, |
|---|
| 108 | __C5_MatrixType_R1__getMatrix, |
|---|
| 109 | "", |
|---|
| 110 | ""); |
|---|
| 111 | I_SimpleProperty(osgAnimation::TransformVertexFunctor::BoneWeightList &, Bones, |
|---|
| 112 | __BoneWeightList_R1__getBones, |
|---|
| 113 | 0); |
|---|
| 114 | I_SimpleProperty(const osgAnimation::TransformVertexFunctor::MatrixType &, Matrix, |
|---|
| 115 | __C5_MatrixType_R1__getMatrix, |
|---|
| 116 | 0); |
|---|
| 117 | I_SimpleProperty(osgAnimation::TransformVertexFunctor::VertexList &, Vertexes, |
|---|
| 118 | __VertexList_R1__getVertexes, |
|---|
| 119 | 0); |
|---|
| 120 | END_REFLECTOR |
|---|
| 121 | |
|---|
| 122 | STD_VECTOR_REFLECTOR(std::vector< osgAnimation::TransformVertexFunctor::BoneWeight >) |
|---|