| 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/Image> |
|---|
| 15 | #include <osg/ImageSequence> |
|---|
| 16 | #include <osg/NodeVisitor> |
|---|
| 17 | #include <osg/Object> |
|---|
| 18 | #include <osg/StateAttribute> |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | #ifdef IN |
|---|
| 22 | #undef IN |
|---|
| 23 | #endif |
|---|
| 24 | #ifdef OUT |
|---|
| 25 | #undef OUT |
|---|
| 26 | #endif |
|---|
| 27 | |
|---|
| 28 | BEGIN_ENUM_REFLECTOR(osg::ImageSequence::Mode) |
|---|
| 29 | I_DeclaringFile("osg/ImageSequence"); |
|---|
| 30 | I_EnumLabel(osg::ImageSequence::PRE_LOAD_ALL_IMAGES); |
|---|
| 31 | I_EnumLabel(osg::ImageSequence::PAGE_AND_RETAIN_IMAGES); |
|---|
| 32 | I_EnumLabel(osg::ImageSequence::PAGE_AND_DISCARD_USED_IMAGES); |
|---|
| 33 | END_REFLECTOR |
|---|
| 34 | |
|---|
| 35 | TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Image > >, osg::ImageSequence::Images) |
|---|
| 36 | |
|---|
| 37 | TYPE_NAME_ALIAS(std::vector< std::string >, osg::ImageSequence::FileNames) |
|---|
| 38 | |
|---|
| 39 | BEGIN_OBJECT_REFLECTOR(osg::ImageSequence) |
|---|
| 40 | I_DeclaringFile("osg/ImageSequence"); |
|---|
| 41 | I_BaseType(osg::ImageStream); |
|---|
| 42 | I_Constructor0(____ImageSequence, |
|---|
| 43 | "", |
|---|
| 44 | ""); |
|---|
| 45 | I_ConstructorWithDefaults2(IN, const osg::ImageSequence &, ImageSequence, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 46 | ____ImageSequence__C5_ImageSequence_R1__C5_CopyOp_R1, |
|---|
| 47 | "Copy constructor using CopyOp to manage deep vs shallow copy. ", |
|---|
| 48 | ""); |
|---|
| 49 | I_Method0(osg::Object *, cloneType, |
|---|
| 50 | Properties::VIRTUAL, |
|---|
| 51 | __Object_P1__cloneType, |
|---|
| 52 | "Clone the type of an object, with Object* return type. ", |
|---|
| 53 | "Must be defined by derived classes. "); |
|---|
| 54 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 55 | Properties::VIRTUAL, |
|---|
| 56 | __Object_P1__clone__C5_CopyOp_R1, |
|---|
| 57 | "Clone an object, with Object* return type. ", |
|---|
| 58 | "Must be defined by derived classes. "); |
|---|
| 59 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 60 | Properties::VIRTUAL, |
|---|
| 61 | __bool__isSameKindAs__C5_Object_P1, |
|---|
| 62 | "", |
|---|
| 63 | ""); |
|---|
| 64 | I_Method0(const char *, libraryName, |
|---|
| 65 | Properties::VIRTUAL, |
|---|
| 66 | __C5_char_P1__libraryName, |
|---|
| 67 | "return the name of the object's library. ", |
|---|
| 68 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 69 | I_Method0(const char *, className, |
|---|
| 70 | Properties::VIRTUAL, |
|---|
| 71 | __C5_char_P1__className, |
|---|
| 72 | "return the name of the object's class type. ", |
|---|
| 73 | "Must be defined by derived classes. "); |
|---|
| 74 | I_Method1(int, compare, IN, const osg::Image &, rhs, |
|---|
| 75 | Properties::VIRTUAL, |
|---|
| 76 | __int__compare__C5_Image_R1, |
|---|
| 77 | "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", |
|---|
| 78 | ""); |
|---|
| 79 | I_Method1(void, setReferenceTime, IN, double, t, |
|---|
| 80 | Properties::VIRTUAL, |
|---|
| 81 | __void__setReferenceTime__double, |
|---|
| 82 | "", |
|---|
| 83 | ""); |
|---|
| 84 | I_Method0(double, getReferenceTime, |
|---|
| 85 | Properties::VIRTUAL, |
|---|
| 86 | __double__getReferenceTime, |
|---|
| 87 | "", |
|---|
| 88 | ""); |
|---|
| 89 | I_Method1(void, setTimeMultiplier, IN, double, tm, |
|---|
| 90 | Properties::VIRTUAL, |
|---|
| 91 | __void__setTimeMultiplier__double, |
|---|
| 92 | "", |
|---|
| 93 | ""); |
|---|
| 94 | I_Method0(double, getTimeMultiplier, |
|---|
| 95 | Properties::VIRTUAL, |
|---|
| 96 | __double__getTimeMultiplier, |
|---|
| 97 | "", |
|---|
| 98 | ""); |
|---|
| 99 | I_Method1(void, seek, IN, double, time, |
|---|
| 100 | Properties::VIRTUAL, |
|---|
| 101 | __void__seek__double, |
|---|
| 102 | "", |
|---|
| 103 | ""); |
|---|
| 104 | I_Method0(void, play, |
|---|
| 105 | Properties::VIRTUAL, |
|---|
| 106 | __void__play, |
|---|
| 107 | "", |
|---|
| 108 | ""); |
|---|
| 109 | I_Method0(void, pause, |
|---|
| 110 | Properties::VIRTUAL, |
|---|
| 111 | __void__pause, |
|---|
| 112 | "", |
|---|
| 113 | ""); |
|---|
| 114 | I_Method0(void, rewind, |
|---|
| 115 | Properties::VIRTUAL, |
|---|
| 116 | __void__rewind, |
|---|
| 117 | "", |
|---|
| 118 | ""); |
|---|
| 119 | I_Method1(void, setMode, IN, osg::ImageSequence::Mode, mode, |
|---|
| 120 | Properties::NON_VIRTUAL, |
|---|
| 121 | __void__setMode__Mode, |
|---|
| 122 | "", |
|---|
| 123 | ""); |
|---|
| 124 | I_Method0(osg::ImageSequence::Mode, getMode, |
|---|
| 125 | Properties::NON_VIRTUAL, |
|---|
| 126 | __Mode__getMode, |
|---|
| 127 | "", |
|---|
| 128 | ""); |
|---|
| 129 | I_Method1(void, setLength, IN, double, length, |
|---|
| 130 | Properties::NON_VIRTUAL, |
|---|
| 131 | __void__setLength__double, |
|---|
| 132 | "", |
|---|
| 133 | ""); |
|---|
| 134 | I_Method0(double, getLength, |
|---|
| 135 | Properties::VIRTUAL, |
|---|
| 136 | __double__getLength, |
|---|
| 137 | "", |
|---|
| 138 | ""); |
|---|
| 139 | I_Method1(void, addImageFile, IN, const std::string &, fileName, |
|---|
| 140 | Properties::NON_VIRTUAL, |
|---|
| 141 | __void__addImageFile__C5_std_string_R1, |
|---|
| 142 | "", |
|---|
| 143 | ""); |
|---|
| 144 | I_Method2(void, setImageFile, IN, unsigned int, pos, IN, const std::string &, fileName, |
|---|
| 145 | Properties::NON_VIRTUAL, |
|---|
| 146 | __void__setImageFile__unsigned_int__C5_std_string_R1, |
|---|
| 147 | "", |
|---|
| 148 | ""); |
|---|
| 149 | I_Method1(std::string, getImageFile, IN, unsigned int, pos, |
|---|
| 150 | Properties::NON_VIRTUAL, |
|---|
| 151 | __std_string__getImageFile__unsigned_int, |
|---|
| 152 | "", |
|---|
| 153 | ""); |
|---|
| 154 | I_Method0(unsigned int, getNumImageFiles, |
|---|
| 155 | Properties::NON_VIRTUAL, |
|---|
| 156 | __unsigned_int__getNumImageFiles, |
|---|
| 157 | "", |
|---|
| 158 | ""); |
|---|
| 159 | I_Method0(osg::ImageSequence::FileNames &, getFileNames, |
|---|
| 160 | Properties::NON_VIRTUAL, |
|---|
| 161 | __FileNames_R1__getFileNames, |
|---|
| 162 | "", |
|---|
| 163 | ""); |
|---|
| 164 | I_Method0(const osg::ImageSequence::FileNames &, getFileNames, |
|---|
| 165 | Properties::NON_VIRTUAL, |
|---|
| 166 | __C5_FileNames_R1__getFileNames, |
|---|
| 167 | "", |
|---|
| 168 | ""); |
|---|
| 169 | I_Method1(void, addImage, IN, osg::Image *, image, |
|---|
| 170 | Properties::NON_VIRTUAL, |
|---|
| 171 | __void__addImage__osg_Image_P1, |
|---|
| 172 | "", |
|---|
| 173 | ""); |
|---|
| 174 | I_MethodWithDefaults9(void, setImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLint, internalTextureformat, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, unsigned char *, data, , IN, osg::Image::AllocationMode, mode, , IN, int, packing, 1, |
|---|
| 175 | Properties::NON_VIRTUAL, |
|---|
| 176 | __void__setImage__int__int__int__GLint__GLenum__GLenum__unsigned_char_P1__AllocationMode__int, |
|---|
| 177 | "Set the image dimensions, format and data. ", |
|---|
| 178 | ""); |
|---|
| 179 | I_Method2(void, setImage, IN, unsigned int, pos, IN, osg::Image *, image, |
|---|
| 180 | Properties::NON_VIRTUAL, |
|---|
| 181 | __void__setImage__unsigned_int__osg_Image_P1, |
|---|
| 182 | "", |
|---|
| 183 | ""); |
|---|
| 184 | I_Method1(osg::Image *, getImage, IN, unsigned int, pos, |
|---|
| 185 | Properties::NON_VIRTUAL, |
|---|
| 186 | __Image_P1__getImage__unsigned_int, |
|---|
| 187 | "", |
|---|
| 188 | ""); |
|---|
| 189 | I_Method1(const osg::Image *, getImage, IN, unsigned int, pos, |
|---|
| 190 | Properties::NON_VIRTUAL, |
|---|
| 191 | __C5_Image_P1__getImage__unsigned_int, |
|---|
| 192 | "", |
|---|
| 193 | ""); |
|---|
| 194 | I_Method0(unsigned int, getNumImages, |
|---|
| 195 | Properties::NON_VIRTUAL, |
|---|
| 196 | __unsigned_int__getNumImages, |
|---|
| 197 | "", |
|---|
| 198 | ""); |
|---|
| 199 | I_Method0(osg::ImageSequence::Images &, getImages, |
|---|
| 200 | Properties::NON_VIRTUAL, |
|---|
| 201 | __Images_R1__getImages, |
|---|
| 202 | "", |
|---|
| 203 | ""); |
|---|
| 204 | I_Method0(const osg::ImageSequence::Images &, getImages, |
|---|
| 205 | Properties::NON_VIRTUAL, |
|---|
| 206 | __C5_Images_R1__getImages, |
|---|
| 207 | "", |
|---|
| 208 | ""); |
|---|
| 209 | I_Method1(void, update, IN, osg::NodeVisitor *, nv, |
|---|
| 210 | Properties::VIRTUAL, |
|---|
| 211 | __void__update__NodeVisitor_P1, |
|---|
| 212 | "", |
|---|
| 213 | ""); |
|---|
| 214 | I_ProtectedMethod0(void, applyLoopingMode, |
|---|
| 215 | Properties::VIRTUAL, |
|---|
| 216 | Properties::NON_CONST, |
|---|
| 217 | __void__applyLoopingMode, |
|---|
| 218 | "", |
|---|
| 219 | ""); |
|---|
| 220 | I_ProtectedMethod1(void, setImageToChild, IN, const osg::Image *, image, |
|---|
| 221 | Properties::NON_VIRTUAL, |
|---|
| 222 | Properties::NON_CONST, |
|---|
| 223 | __void__setImageToChild__C5_osg_Image_P1, |
|---|
| 224 | "", |
|---|
| 225 | ""); |
|---|
| 226 | I_ProtectedMethod0(void, computeTimePerImage, |
|---|
| 227 | Properties::NON_VIRTUAL, |
|---|
| 228 | Properties::NON_CONST, |
|---|
| 229 | __void__computeTimePerImage, |
|---|
| 230 | "", |
|---|
| 231 | ""); |
|---|
| 232 | I_ProtectedMethod1(int, imageIndex, IN, double, time, |
|---|
| 233 | Properties::NON_VIRTUAL, |
|---|
| 234 | Properties::NON_CONST, |
|---|
| 235 | __int__imageIndex__double, |
|---|
| 236 | "", |
|---|
| 237 | ""); |
|---|
| 238 | I_SimpleProperty(osg::ImageSequence::FileNames &, FileNames, |
|---|
| 239 | __FileNames_R1__getFileNames, |
|---|
| 240 | 0); |
|---|
| 241 | I_ArrayProperty(osg::Image *, Image, |
|---|
| 242 | __Image_P1__getImage__unsigned_int, |
|---|
| 243 | __void__setImage__unsigned_int__osg_Image_P1, |
|---|
| 244 | __unsigned_int__getNumImages, |
|---|
| 245 | __void__addImage__osg_Image_P1, |
|---|
| 246 | 0, |
|---|
| 247 | 0); |
|---|
| 248 | I_ArrayProperty(std::string, ImageFile, |
|---|
| 249 | __std_string__getImageFile__unsigned_int, |
|---|
| 250 | __void__setImageFile__unsigned_int__C5_std_string_R1, |
|---|
| 251 | __unsigned_int__getNumImageFiles, |
|---|
| 252 | 0, |
|---|
| 253 | 0, |
|---|
| 254 | 0); |
|---|
| 255 | I_SimpleProperty(osg::ImageSequence::Images &, Images, |
|---|
| 256 | __Images_R1__getImages, |
|---|
| 257 | 0); |
|---|
| 258 | I_SimpleProperty(double, Length, |
|---|
| 259 | __double__getLength, |
|---|
| 260 | __void__setLength__double); |
|---|
| 261 | I_SimpleProperty(osg::ImageSequence::Mode, Mode, |
|---|
| 262 | __Mode__getMode, |
|---|
| 263 | __void__setMode__Mode); |
|---|
| 264 | I_SimpleProperty(double, ReferenceTime, |
|---|
| 265 | __double__getReferenceTime, |
|---|
| 266 | __void__setReferenceTime__double); |
|---|
| 267 | I_SimpleProperty(double, TimeMultiplier, |
|---|
| 268 | __double__getTimeMultiplier, |
|---|
| 269 | __void__setTimeMultiplier__double); |
|---|
| 270 | END_REFLECTOR |
|---|
| 271 | |
|---|
| 272 | BEGIN_OBJECT_REFLECTOR(osg::ImageSequence::UpdateCallback) |
|---|
| 273 | I_DeclaringFile("osg/ImageSequence"); |
|---|
| 274 | I_BaseType(osg::StateAttributeCallback); |
|---|
| 275 | I_Constructor0(____UpdateCallback, |
|---|
| 276 | "", |
|---|
| 277 | ""); |
|---|
| 278 | END_REFLECTOR |
|---|
| 279 | |
|---|
| 280 | BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) |
|---|
| 281 | I_DeclaringFile("osg/ref_ptr"); |
|---|
| 282 | I_Constructor0(____ref_ptr, |
|---|
| 283 | "", |
|---|
| 284 | ""); |
|---|
| 285 | I_Constructor1(IN, osg::Image *, ptr, |
|---|
| 286 | Properties::NON_EXPLICIT, |
|---|
| 287 | ____ref_ptr__T_P1, |
|---|
| 288 | "", |
|---|
| 289 | ""); |
|---|
| 290 | I_Constructor1(IN, const osg::ref_ptr< osg::Image > &, rp, |
|---|
| 291 | Properties::NON_EXPLICIT, |
|---|
| 292 | ____ref_ptr__C5_ref_ptr_R1, |
|---|
| 293 | "", |
|---|
| 294 | ""); |
|---|
| 295 | I_Method0(osg::Image *, get, |
|---|
| 296 | Properties::NON_VIRTUAL, |
|---|
| 297 | __T_P1__get, |
|---|
| 298 | "", |
|---|
| 299 | ""); |
|---|
| 300 | I_Method0(bool, valid, |
|---|
| 301 | Properties::NON_VIRTUAL, |
|---|
| 302 | __bool__valid, |
|---|
| 303 | "", |
|---|
| 304 | ""); |
|---|
| 305 | I_Method0(osg::Image *, release, |
|---|
| 306 | Properties::NON_VIRTUAL, |
|---|
| 307 | __T_P1__release, |
|---|
| 308 | "", |
|---|
| 309 | ""); |
|---|
| 310 | I_Method1(void, swap, IN, osg::ref_ptr< osg::Image > &, rp, |
|---|
| 311 | Properties::NON_VIRTUAL, |
|---|
| 312 | __void__swap__ref_ptr_R1, |
|---|
| 313 | "", |
|---|
| 314 | ""); |
|---|
| 315 | I_SimpleProperty(osg::Image *, , |
|---|
| 316 | __T_P1__get, |
|---|
| 317 | 0); |
|---|
| 318 | END_REFLECTOR |
|---|
| 319 | |
|---|
| 320 | STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Image > >) |
|---|
| 321 | |
|---|
| 322 | STD_VECTOR_REFLECTOR(std::vector< std::string >) |
|---|