| 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/Material> |
|---|
| 15 | #include <osg/MatrixTransform> |
|---|
| 16 | #include <osg/Node> |
|---|
| 17 | #include <osg/NodeVisitor> |
|---|
| 18 | #include <osg/Object> |
|---|
| 19 | #include <osg/PositionAttitudeTransform> |
|---|
| 20 | #include <osg/StateAttribute> |
|---|
| 21 | #include <osgAnimation/Animation> |
|---|
| 22 | #include <osgAnimation/AnimationManagerBase> |
|---|
| 23 | #include <osgAnimation/Channel> |
|---|
| 24 | #include <osgAnimation/Target> |
|---|
| 25 | #include <osgAnimation/UpdateCallback> |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | #ifdef IN |
|---|
| 29 | #undef IN |
|---|
| 30 | #endif |
|---|
| 31 | #ifdef OUT |
|---|
| 32 | #undef OUT |
|---|
| 33 | #endif |
|---|
| 34 | |
|---|
| 35 | BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallbackBase) |
|---|
| 36 | I_DeclaringFile("osgAnimation/UpdateCallback"); |
|---|
| 37 | I_Constructor0(____AnimationUpdateCallbackBase, |
|---|
| 38 | "", |
|---|
| 39 | ""); |
|---|
| 40 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, |
|---|
| 41 | Properties::PURE_VIRTUAL, |
|---|
| 42 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 43 | "", |
|---|
| 44 | ""); |
|---|
| 45 | I_Method0(osgAnimation::AnimationManagerBase *, getAnimationManager, |
|---|
| 46 | Properties::PURE_VIRTUAL, |
|---|
| 47 | __AnimationManagerBase_P1__getAnimationManager, |
|---|
| 48 | "", |
|---|
| 49 | ""); |
|---|
| 50 | I_Method0(bool, needLink, |
|---|
| 51 | Properties::PURE_VIRTUAL, |
|---|
| 52 | __bool__needLink, |
|---|
| 53 | "", |
|---|
| 54 | ""); |
|---|
| 55 | I_Method1(bool, link, IN, osgAnimation::Channel *, channel, |
|---|
| 56 | Properties::PURE_VIRTUAL, |
|---|
| 57 | __bool__link__osgAnimation_Channel_P1, |
|---|
| 58 | "", |
|---|
| 59 | ""); |
|---|
| 60 | I_Method1(int, link, IN, osgAnimation::Animation *, animation, |
|---|
| 61 | Properties::PURE_VIRTUAL, |
|---|
| 62 | __int__link__osgAnimation_Animation_P1, |
|---|
| 63 | "", |
|---|
| 64 | ""); |
|---|
| 65 | I_Method0(void, updateLink, |
|---|
| 66 | Properties::PURE_VIRTUAL, |
|---|
| 67 | __void__updateLink, |
|---|
| 68 | "", |
|---|
| 69 | ""); |
|---|
| 70 | I_Method0(const std::string &, getName, |
|---|
| 71 | Properties::PURE_VIRTUAL, |
|---|
| 72 | __C5_std_string_R1__getName, |
|---|
| 73 | "", |
|---|
| 74 | ""); |
|---|
| 75 | I_SimpleProperty(osgAnimation::AnimationManagerBase *, AnimationManager, |
|---|
| 76 | __AnimationManagerBase_P1__getAnimationManager, |
|---|
| 77 | 0); |
|---|
| 78 | I_SimpleProperty(const std::string &, Name, |
|---|
| 79 | __C5_std_string_R1__getName, |
|---|
| 80 | 0); |
|---|
| 81 | END_REFLECTOR |
|---|
| 82 | |
|---|
| 83 | BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMaterial) |
|---|
| 84 | I_DeclaringFile("osgAnimation/UpdateCallback"); |
|---|
| 85 | I_Method0(osg::Object *, cloneType, |
|---|
| 86 | Properties::VIRTUAL, |
|---|
| 87 | __osg_Object_P1__cloneType, |
|---|
| 88 | "Clone the type of an object, with Object* return type. ", |
|---|
| 89 | "Must be defined by derived classes. "); |
|---|
| 90 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 91 | Properties::VIRTUAL, |
|---|
| 92 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 93 | "Clone an object, with Object* return type. ", |
|---|
| 94 | "Must be defined by derived classes. "); |
|---|
| 95 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 96 | Properties::VIRTUAL, |
|---|
| 97 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 98 | "", |
|---|
| 99 | ""); |
|---|
| 100 | I_Method0(const char *, libraryName, |
|---|
| 101 | Properties::VIRTUAL, |
|---|
| 102 | __C5_char_P1__libraryName, |
|---|
| 103 | "return the name of the object's library. ", |
|---|
| 104 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 105 | I_Method0(const char *, className, |
|---|
| 106 | Properties::VIRTUAL, |
|---|
| 107 | __C5_char_P1__className, |
|---|
| 108 | "return the name of the object's class type. ", |
|---|
| 109 | "Must be defined by derived classes. "); |
|---|
| 110 | I_ConstructorWithDefaults1(IN, const std::string &, name, "", |
|---|
| 111 | Properties::NON_EXPLICIT, |
|---|
| 112 | ____UpdateMaterial__C5_std_string_R1, |
|---|
| 113 | "", |
|---|
| 114 | ""); |
|---|
| 115 | I_Constructor2(IN, const osgAnimation::UpdateMaterial &, apc, IN, const osg::CopyOp &, copyop, |
|---|
| 116 | ____UpdateMaterial__C5_UpdateMaterial_R1__C5_osg_CopyOp_R1, |
|---|
| 117 | "", |
|---|
| 118 | ""); |
|---|
| 119 | I_Method1(void, update, IN, osg::Material &, material, |
|---|
| 120 | Properties::NON_VIRTUAL, |
|---|
| 121 | __void__update__osg_Material_R1, |
|---|
| 122 | "", |
|---|
| 123 | ""); |
|---|
| 124 | I_Method0(bool, needLink, |
|---|
| 125 | Properties::VIRTUAL, |
|---|
| 126 | __bool__needLink, |
|---|
| 127 | "", |
|---|
| 128 | ""); |
|---|
| 129 | I_Method1(bool, link, IN, osgAnimation::Channel *, channel, |
|---|
| 130 | Properties::VIRTUAL, |
|---|
| 131 | __bool__link__osgAnimation_Channel_P1, |
|---|
| 132 | "", |
|---|
| 133 | ""); |
|---|
| 134 | END_REFLECTOR |
|---|
| 135 | |
|---|
| 136 | BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateTransform) |
|---|
| 137 | I_DeclaringFile("osgAnimation/UpdateCallback"); |
|---|
| 138 | I_Method0(osg::Object *, cloneType, |
|---|
| 139 | Properties::VIRTUAL, |
|---|
| 140 | __osg_Object_P1__cloneType, |
|---|
| 141 | "Clone the type of an object, with Object* return type. ", |
|---|
| 142 | "Must be defined by derived classes. "); |
|---|
| 143 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 144 | Properties::VIRTUAL, |
|---|
| 145 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 146 | "Clone an object, with Object* return type. ", |
|---|
| 147 | "Must be defined by derived classes. "); |
|---|
| 148 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 149 | Properties::VIRTUAL, |
|---|
| 150 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 151 | "", |
|---|
| 152 | ""); |
|---|
| 153 | I_Method0(const char *, libraryName, |
|---|
| 154 | Properties::VIRTUAL, |
|---|
| 155 | __C5_char_P1__libraryName, |
|---|
| 156 | "return the name of the object's library. ", |
|---|
| 157 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 158 | I_Method0(const char *, className, |
|---|
| 159 | Properties::VIRTUAL, |
|---|
| 160 | __C5_char_P1__className, |
|---|
| 161 | "return the name of the object's class type. ", |
|---|
| 162 | "Must be defined by derived classes. "); |
|---|
| 163 | I_ConstructorWithDefaults1(IN, const std::string &, name, "", |
|---|
| 164 | Properties::NON_EXPLICIT, |
|---|
| 165 | ____UpdateTransform__C5_std_string_R1, |
|---|
| 166 | "", |
|---|
| 167 | ""); |
|---|
| 168 | I_Constructor2(IN, const osgAnimation::UpdateTransform &, apc, IN, const osg::CopyOp &, copyop, |
|---|
| 169 | ____UpdateTransform__C5_UpdateTransform_R1__C5_osg_CopyOp_R1, |
|---|
| 170 | "", |
|---|
| 171 | ""); |
|---|
| 172 | I_Method1(void, update, IN, osg::MatrixTransform &, mat, |
|---|
| 173 | Properties::NON_VIRTUAL, |
|---|
| 174 | __void__update__osg_MatrixTransform_R1, |
|---|
| 175 | "", |
|---|
| 176 | ""); |
|---|
| 177 | I_Method1(void, update, IN, osg::PositionAttitudeTransform &, pat, |
|---|
| 178 | Properties::NON_VIRTUAL, |
|---|
| 179 | __void__update__osg_PositionAttitudeTransform_R1, |
|---|
| 180 | "", |
|---|
| 181 | ""); |
|---|
| 182 | I_Method0(bool, needLink, |
|---|
| 183 | Properties::VIRTUAL, |
|---|
| 184 | __bool__needLink, |
|---|
| 185 | "", |
|---|
| 186 | ""); |
|---|
| 187 | I_Method1(bool, link, IN, osgAnimation::Channel *, channel, |
|---|
| 188 | Properties::VIRTUAL, |
|---|
| 189 | __bool__link__osgAnimation_Channel_P1, |
|---|
| 190 | "", |
|---|
| 191 | ""); |
|---|
| 192 | I_Method0(osgAnimation::Vec3Target *, getEuler, |
|---|
| 193 | Properties::NON_VIRTUAL, |
|---|
| 194 | __osgAnimation_Vec3Target_P1__getEuler, |
|---|
| 195 | "", |
|---|
| 196 | ""); |
|---|
| 197 | I_Method0(osgAnimation::Vec3Target *, getPosition, |
|---|
| 198 | Properties::NON_VIRTUAL, |
|---|
| 199 | __osgAnimation_Vec3Target_P1__getPosition, |
|---|
| 200 | "", |
|---|
| 201 | ""); |
|---|
| 202 | I_Method0(osgAnimation::Vec3Target *, getScale, |
|---|
| 203 | Properties::NON_VIRTUAL, |
|---|
| 204 | __osgAnimation_Vec3Target_P1__getScale, |
|---|
| 205 | "", |
|---|
| 206 | ""); |
|---|
| 207 | I_SimpleProperty(osgAnimation::Vec3Target *, Euler, |
|---|
| 208 | __osgAnimation_Vec3Target_P1__getEuler, |
|---|
| 209 | 0); |
|---|
| 210 | I_SimpleProperty(osgAnimation::Vec3Target *, Position, |
|---|
| 211 | __osgAnimation_Vec3Target_P1__getPosition, |
|---|
| 212 | 0); |
|---|
| 213 | I_SimpleProperty(osgAnimation::Vec3Target *, Scale, |
|---|
| 214 | __osgAnimation_Vec3Target_P1__getScale, |
|---|
| 215 | 0); |
|---|
| 216 | END_REFLECTOR |
|---|