| 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/Array> |
|---|
| 14 | #include <osg/Matrix> |
|---|
| 15 | #include <osg/Shader> |
|---|
| 16 | #include <osg/Uniform> |
|---|
| 17 | #include <osgAnimation/RigGeometry> |
|---|
| 18 | #include <osgAnimation/RigTransformHardware> |
|---|
| 19 | #include <osgAnimation/VertexInfluence> |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | #ifdef IN |
|---|
| 23 | #undef IN |
|---|
| 24 | #endif |
|---|
| 25 | #ifdef OUT |
|---|
| 26 | #undef OUT |
|---|
| 27 | #endif |
|---|
| 28 | |
|---|
| 29 | TYPE_NAME_ALIAS(osg::Matrix, osgAnimation::RigTransformHardware::MatrixType) |
|---|
| 30 | |
|---|
| 31 | TYPE_NAME_ALIAS(osgAnimation::Bone, osgAnimation::RigTransformHardware::BoneType) |
|---|
| 32 | |
|---|
| 33 | TYPE_NAME_ALIAS(osgAnimation::Bone::BoneMap, osgAnimation::RigTransformHardware::BoneMap) |
|---|
| 34 | |
|---|
| 35 | TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Vec4Array > >, osgAnimation::RigTransformHardware::BoneWeightAttribList) |
|---|
| 36 | |
|---|
| 37 | TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType > >, osgAnimation::RigTransformHardware::BonePalette) |
|---|
| 38 | |
|---|
| 39 | TYPE_NAME_ALIAS(std::vector< osg::Matrix >, osgAnimation::RigTransformHardware::MatrixPalette) |
|---|
| 40 | |
|---|
| 41 | TYPE_NAME_ALIAS(std::vector< std::vector< osgAnimation::RigTransformHardware::IndexWeightEntry > >, osgAnimation::RigTransformHardware::VertexIndexWeightList) |
|---|
| 42 | |
|---|
| 43 | BEGIN_OBJECT_REFLECTOR(osgAnimation::RigTransformHardware) |
|---|
| 44 | I_DeclaringFile("osgAnimation/RigTransformHardware"); |
|---|
| 45 | I_BaseType(osgAnimation::RigTransform); |
|---|
| 46 | I_Constructor0(____RigTransformHardware, |
|---|
| 47 | "", |
|---|
| 48 | ""); |
|---|
| 49 | I_Method1(osg::Vec4Array *, getVertexAttrib, IN, int, index, |
|---|
| 50 | Properties::NON_VIRTUAL, |
|---|
| 51 | __osg_Vec4Array_P1__getVertexAttrib__int, |
|---|
| 52 | "", |
|---|
| 53 | ""); |
|---|
| 54 | I_Method0(int, getNumVertexAttrib, |
|---|
| 55 | Properties::NON_VIRTUAL, |
|---|
| 56 | __int__getNumVertexAttrib, |
|---|
| 57 | "", |
|---|
| 58 | ""); |
|---|
| 59 | I_Method0(osg::Uniform *, getMatrixPaletteUniform, |
|---|
| 60 | Properties::NON_VIRTUAL, |
|---|
| 61 | __osg_Uniform_P1__getMatrixPaletteUniform, |
|---|
| 62 | "", |
|---|
| 63 | ""); |
|---|
| 64 | I_Method2(void, computeMatrixPaletteUniform, IN, const osg::Matrix &, transformFromSkeletonToGeometry, IN, const osg::Matrix &, invTransformFromSkeletonToGeometry, |
|---|
| 65 | Properties::NON_VIRTUAL, |
|---|
| 66 | __void__computeMatrixPaletteUniform__C5_osg_Matrix_R1__C5_osg_Matrix_R1, |
|---|
| 67 | "", |
|---|
| 68 | ""); |
|---|
| 69 | I_Method0(int, getNumBonesPerVertex, |
|---|
| 70 | Properties::NON_VIRTUAL, |
|---|
| 71 | __int__getNumBonesPerVertex, |
|---|
| 72 | "", |
|---|
| 73 | ""); |
|---|
| 74 | I_Method0(int, getNumVertexes, |
|---|
| 75 | Properties::NON_VIRTUAL, |
|---|
| 76 | __int__getNumVertexes, |
|---|
| 77 | "", |
|---|
| 78 | ""); |
|---|
| 79 | I_Method3(bool, createPalette, IN, int, nbVertexes, IN, osgAnimation::RigTransformHardware::BoneMap, boneMap, IN, const osgAnimation::VertexInfluenceSet::VertexIndexToBoneWeightMap &, vertexIndexToBoneWeightMap, |
|---|
| 80 | Properties::NON_VIRTUAL, |
|---|
| 81 | __bool__createPalette__int__BoneMap__C5_VertexInfluenceSet_VertexIndexToBoneWeightMap_R1, |
|---|
| 82 | "", |
|---|
| 83 | ""); |
|---|
| 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 | I_Method1(void, setShader, IN, osg::Shader *, x, |
|---|
| 95 | Properties::NON_VIRTUAL, |
|---|
| 96 | __void__setShader__osg_Shader_P1, |
|---|
| 97 | "", |
|---|
| 98 | ""); |
|---|
| 99 | I_ProtectedMethod0(osgAnimation::RigTransformHardware::BoneWeightAttribList, createVertexAttribList, |
|---|
| 100 | Properties::NON_VIRTUAL, |
|---|
| 101 | Properties::NON_CONST, |
|---|
| 102 | __BoneWeightAttribList__createVertexAttribList, |
|---|
| 103 | "", |
|---|
| 104 | ""); |
|---|
| 105 | I_ProtectedMethod0(osg::Uniform *, createVertexUniform, |
|---|
| 106 | Properties::NON_VIRTUAL, |
|---|
| 107 | Properties::NON_CONST, |
|---|
| 108 | __osg_Uniform_P1__createVertexUniform, |
|---|
| 109 | "", |
|---|
| 110 | ""); |
|---|
| 111 | I_SimpleProperty(osg::Uniform *, MatrixPaletteUniform, |
|---|
| 112 | __osg_Uniform_P1__getMatrixPaletteUniform, |
|---|
| 113 | 0); |
|---|
| 114 | I_SimpleProperty(osg::Shader *, Shader, |
|---|
| 115 | 0, |
|---|
| 116 | __void__setShader__osg_Shader_P1); |
|---|
| 117 | I_ArrayProperty(osg::Vec4Array *, VertexAttrib, |
|---|
| 118 | __osg_Vec4Array_P1__getVertexAttrib__int, |
|---|
| 119 | 0, |
|---|
| 120 | __int__getNumVertexAttrib, |
|---|
| 121 | 0, |
|---|
| 122 | 0, |
|---|
| 123 | 0); |
|---|
| 124 | END_REFLECTOR |
|---|
| 125 | |
|---|
| 126 | BEGIN_VALUE_REFLECTOR(osgAnimation::RigTransformHardware::IndexWeightEntry) |
|---|
| 127 | I_DeclaringFile("osgAnimation/RigTransformHardware"); |
|---|
| 128 | I_Constructor0(____IndexWeightEntry, |
|---|
| 129 | "", |
|---|
| 130 | ""); |
|---|
| 131 | I_Constructor2(IN, float, index, IN, float, weight, |
|---|
| 132 | ____IndexWeightEntry__float__float, |
|---|
| 133 | "", |
|---|
| 134 | ""); |
|---|
| 135 | I_Method0(int, getIndex, |
|---|
| 136 | Properties::NON_VIRTUAL, |
|---|
| 137 | __int__getIndex, |
|---|
| 138 | "", |
|---|
| 139 | ""); |
|---|
| 140 | I_Method0(float, getWeight, |
|---|
| 141 | Properties::NON_VIRTUAL, |
|---|
| 142 | __float__getWeight, |
|---|
| 143 | "", |
|---|
| 144 | ""); |
|---|
| 145 | I_SimpleProperty(int, Index, |
|---|
| 146 | __int__getIndex, |
|---|
| 147 | 0); |
|---|
| 148 | I_SimpleProperty(float, Weight, |
|---|
| 149 | __float__getWeight, |
|---|
| 150 | 0); |
|---|
| 151 | I_PublicMemberProperty(int, _boneIndex); |
|---|
| 152 | I_PublicMemberProperty(float, _boneWeight); |
|---|
| 153 | END_REFLECTOR |
|---|
| 154 | |
|---|
| 155 | BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Vec4Array >) |
|---|
| 156 | I_DeclaringFile("osg/ref_ptr"); |
|---|
| 157 | I_Constructor0(____ref_ptr, |
|---|
| 158 | "", |
|---|
| 159 | ""); |
|---|
| 160 | I_Constructor1(IN, osg::Vec4Array *, ptr, |
|---|
| 161 | Properties::NON_EXPLICIT, |
|---|
| 162 | ____ref_ptr__T_P1, |
|---|
| 163 | "", |
|---|
| 164 | ""); |
|---|
| 165 | I_Constructor1(IN, const osg::ref_ptr< osg::Vec4Array > &, rp, |
|---|
| 166 | Properties::NON_EXPLICIT, |
|---|
| 167 | ____ref_ptr__C5_ref_ptr_R1, |
|---|
| 168 | "", |
|---|
| 169 | ""); |
|---|
| 170 | I_Method0(osg::Vec4Array *, get, |
|---|
| 171 | Properties::NON_VIRTUAL, |
|---|
| 172 | __T_P1__get, |
|---|
| 173 | "", |
|---|
| 174 | ""); |
|---|
| 175 | I_Method0(bool, valid, |
|---|
| 176 | Properties::NON_VIRTUAL, |
|---|
| 177 | __bool__valid, |
|---|
| 178 | "", |
|---|
| 179 | ""); |
|---|
| 180 | I_Method0(osg::Vec4Array *, release, |
|---|
| 181 | Properties::NON_VIRTUAL, |
|---|
| 182 | __T_P1__release, |
|---|
| 183 | "", |
|---|
| 184 | ""); |
|---|
| 185 | I_Method1(void, swap, IN, osg::ref_ptr< osg::Vec4Array > &, rp, |
|---|
| 186 | Properties::NON_VIRTUAL, |
|---|
| 187 | __void__swap__ref_ptr_R1, |
|---|
| 188 | "", |
|---|
| 189 | ""); |
|---|
| 190 | I_SimpleProperty(osg::Vec4Array *, , |
|---|
| 191 | __T_P1__get, |
|---|
| 192 | 0); |
|---|
| 193 | END_REFLECTOR |
|---|
| 194 | |
|---|
| 195 | BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType >) |
|---|
| 196 | I_DeclaringFile("osg/ref_ptr"); |
|---|
| 197 | I_Constructor0(____ref_ptr, |
|---|
| 198 | "", |
|---|
| 199 | ""); |
|---|
| 200 | I_Constructor1(IN, osgAnimation::RigTransformHardware::BoneType *, ptr, |
|---|
| 201 | Properties::NON_EXPLICIT, |
|---|
| 202 | ____ref_ptr__T_P1, |
|---|
| 203 | "", |
|---|
| 204 | ""); |
|---|
| 205 | I_Constructor1(IN, const osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType > &, rp, |
|---|
| 206 | Properties::NON_EXPLICIT, |
|---|
| 207 | ____ref_ptr__C5_ref_ptr_R1, |
|---|
| 208 | "", |
|---|
| 209 | ""); |
|---|
| 210 | I_Method0(osgAnimation::RigTransformHardware::BoneType *, get, |
|---|
| 211 | Properties::NON_VIRTUAL, |
|---|
| 212 | __T_P1__get, |
|---|
| 213 | "", |
|---|
| 214 | ""); |
|---|
| 215 | I_Method0(bool, valid, |
|---|
| 216 | Properties::NON_VIRTUAL, |
|---|
| 217 | __bool__valid, |
|---|
| 218 | "", |
|---|
| 219 | ""); |
|---|
| 220 | I_Method0(osgAnimation::RigTransformHardware::BoneType *, release, |
|---|
| 221 | Properties::NON_VIRTUAL, |
|---|
| 222 | __T_P1__release, |
|---|
| 223 | "", |
|---|
| 224 | ""); |
|---|
| 225 | I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType > &, rp, |
|---|
| 226 | Properties::NON_VIRTUAL, |
|---|
| 227 | __void__swap__ref_ptr_R1, |
|---|
| 228 | "", |
|---|
| 229 | ""); |
|---|
| 230 | I_SimpleProperty(osgAnimation::RigTransformHardware::BoneType *, , |
|---|
| 231 | __T_P1__get, |
|---|
| 232 | 0); |
|---|
| 233 | END_REFLECTOR |
|---|
| 234 | |
|---|
| 235 | STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Vec4Array > >) |
|---|
| 236 | |
|---|
| 237 | STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType > >) |
|---|
| 238 | |
|---|
| 239 | STD_VECTOR_REFLECTOR(std::vector< osgAnimation::RigTransformHardware::IndexWeightEntry >) |
|---|
| 240 | |
|---|
| 241 | STD_VECTOR_REFLECTOR(std::vector< std::vector< osgAnimation::RigTransformHardware::IndexWeightEntry > >) |
|---|