| 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/Object> |
|---|
| 16 | #include <osgWidget/Frame> |
|---|
| 17 | #include <osgWidget/Types> |
|---|
| 18 | #include <osgWidget/Window> |
|---|
| 19 | #include <osgWidget/WindowManager> |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | #ifdef IN |
|---|
| 23 | #undef IN |
|---|
| 24 | #endif |
|---|
| 25 | #ifdef OUT |
|---|
| 26 | #undef OUT |
|---|
| 27 | #endif |
|---|
| 28 | |
|---|
| 29 | BEGIN_ENUM_REFLECTOR(osgWidget::Frame::CornerType) |
|---|
| 30 | I_DeclaringFile("osgWidget/Frame"); |
|---|
| 31 | I_EnumLabel(osgWidget::Frame::CORNER_LOWER_LEFT); |
|---|
| 32 | I_EnumLabel(osgWidget::Frame::CORNER_LOWER_RIGHT); |
|---|
| 33 | I_EnumLabel(osgWidget::Frame::CORNER_UPPER_LEFT); |
|---|
| 34 | I_EnumLabel(osgWidget::Frame::CORNER_UPPER_RIGHT); |
|---|
| 35 | END_REFLECTOR |
|---|
| 36 | |
|---|
| 37 | BEGIN_ENUM_REFLECTOR(osgWidget::Frame::BorderType) |
|---|
| 38 | I_DeclaringFile("osgWidget/Frame"); |
|---|
| 39 | I_EnumLabel(osgWidget::Frame::BORDER_LEFT); |
|---|
| 40 | I_EnumLabel(osgWidget::Frame::BORDER_RIGHT); |
|---|
| 41 | I_EnumLabel(osgWidget::Frame::BORDER_TOP); |
|---|
| 42 | I_EnumLabel(osgWidget::Frame::BORDER_BOTTOM); |
|---|
| 43 | END_REFLECTOR |
|---|
| 44 | |
|---|
| 45 | BEGIN_ENUM_REFLECTOR(osgWidget::Frame::FrameOptions) |
|---|
| 46 | I_DeclaringFile("osgWidget/Frame"); |
|---|
| 47 | I_EnumLabel(osgWidget::Frame::FRAME_RESIZE); |
|---|
| 48 | I_EnumLabel(osgWidget::Frame::FRAME_MOVE); |
|---|
| 49 | I_EnumLabel(osgWidget::Frame::FRAME_TEXTURE); |
|---|
| 50 | I_EnumLabel(osgWidget::Frame::FRAME_ALL); |
|---|
| 51 | END_REFLECTOR |
|---|
| 52 | |
|---|
| 53 | BEGIN_OBJECT_REFLECTOR(osgWidget::Frame) |
|---|
| 54 | I_DeclaringFile("osgWidget/Frame"); |
|---|
| 55 | I_BaseType(osgWidget::Table); |
|---|
| 56 | I_StaticMethod1(std::string, cornerTypeToString, IN, osgWidget::Frame::CornerType, x, |
|---|
| 57 | __std_string__cornerTypeToString__CornerType_S, |
|---|
| 58 | "", |
|---|
| 59 | ""); |
|---|
| 60 | I_StaticMethod1(std::string, borderTypeToString, IN, osgWidget::Frame::BorderType, x, |
|---|
| 61 | __std_string__borderTypeToString__BorderType_S, |
|---|
| 62 | "", |
|---|
| 63 | ""); |
|---|
| 64 | I_StaticMethodWithDefaults7(osgWidget::Frame *, createSimpleFrame, IN, const std::string &, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, unsigned, int, 0, IN, osgWidget::Frame *, x, 0, |
|---|
| 65 | __Frame_P1__createSimpleFrame__C5_std_string_R1__point_type__point_type__point_type__point_type__unsigned__Frame_P1_S, |
|---|
| 66 | "", |
|---|
| 67 | ""); |
|---|
| 68 | I_StaticMethodWithDefaults6(osgWidget::Frame *, createSimpleFrameWithSingleTexture, IN, const std::string &, x, , IN, osg::Image *, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, unsigned, int, 0, IN, osgWidget::Frame *, x, 0, |
|---|
| 69 | __Frame_P1__createSimpleFrameWithSingleTexture__C5_std_string_R1__osg_Image_P1__point_type__point_type__unsigned__Frame_P1_S, |
|---|
| 70 | "", |
|---|
| 71 | ""); |
|---|
| 72 | I_StaticMethodWithDefaults6(osgWidget::Frame *, createSimpleFrameFromTheme, IN, const std::string &, x, , IN, osg::Image *, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, unsigned, int, 0, IN, osgWidget::Frame *, x, 0, |
|---|
| 73 | __Frame_P1__createSimpleFrameFromTheme__C5_std_string_R1__osg_Image_P1__point_type__point_type__unsigned__Frame_P1_S, |
|---|
| 74 | "", |
|---|
| 75 | ""); |
|---|
| 76 | I_Method0(osg::Object *, cloneType, |
|---|
| 77 | Properties::VIRTUAL, |
|---|
| 78 | __osg_Object_P1__cloneType, |
|---|
| 79 | "clone an object of the same type as the node. ", |
|---|
| 80 | ""); |
|---|
| 81 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, |
|---|
| 82 | Properties::VIRTUAL, |
|---|
| 83 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 84 | "return a clone of a node, with Object* return type. ", |
|---|
| 85 | ""); |
|---|
| 86 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 87 | Properties::VIRTUAL, |
|---|
| 88 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 89 | "return true if this and obj are of the same kind of object. ", |
|---|
| 90 | ""); |
|---|
| 91 | I_Method0(const char *, libraryName, |
|---|
| 92 | Properties::VIRTUAL, |
|---|
| 93 | __C5_char_P1__libraryName, |
|---|
| 94 | "return the name of the node's library. ", |
|---|
| 95 | ""); |
|---|
| 96 | I_Method0(const char *, className, |
|---|
| 97 | Properties::VIRTUAL, |
|---|
| 98 | __C5_char_P1__className, |
|---|
| 99 | "return the name of the node's class type. ", |
|---|
| 100 | ""); |
|---|
| 101 | I_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, unsigned, int, 0, |
|---|
| 102 | ____Frame__C5_std_string_R1__unsigned, |
|---|
| 103 | "", |
|---|
| 104 | ""); |
|---|
| 105 | I_Constructor2(IN, const osgWidget::Frame &, x, IN, const osg::CopyOp &, x, |
|---|
| 106 | ____Frame__C5_Frame_R1__C5_osg_CopyOp_R1, |
|---|
| 107 | "", |
|---|
| 108 | ""); |
|---|
| 109 | I_Method4(void, createSimpleFrame, IN, osgWidget::point_type, cw, IN, osgWidget::point_type, ch, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, |
|---|
| 110 | Properties::NON_VIRTUAL, |
|---|
| 111 | __void__createSimpleFrame__point_type__point_type__point_type__point_type, |
|---|
| 112 | "", |
|---|
| 113 | ""); |
|---|
| 114 | I_Method3(void, createSimpleFrameWithSingleTexture, IN, osg::Image *, image, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, |
|---|
| 115 | Properties::NON_VIRTUAL, |
|---|
| 116 | __void__createSimpleFrameWithSingleTexture__osg_Image_P1__point_type__point_type, |
|---|
| 117 | "", |
|---|
| 118 | ""); |
|---|
| 119 | I_Method1(bool, setWindow, IN, osgWidget::Window *, x, |
|---|
| 120 | Properties::NON_VIRTUAL, |
|---|
| 121 | __bool__setWindow__Window_P1, |
|---|
| 122 | "", |
|---|
| 123 | ""); |
|---|
| 124 | I_Method0(osgWidget::Window::EmbeddedWindow *, getEmbeddedWindow, |
|---|
| 125 | Properties::NON_VIRTUAL, |
|---|
| 126 | __EmbeddedWindow_P1__getEmbeddedWindow, |
|---|
| 127 | "", |
|---|
| 128 | ""); |
|---|
| 129 | I_Method0(const osgWidget::Window::EmbeddedWindow *, getEmbeddedWindow, |
|---|
| 130 | Properties::NON_VIRTUAL, |
|---|
| 131 | __C5_EmbeddedWindow_P1__getEmbeddedWindow, |
|---|
| 132 | "", |
|---|
| 133 | ""); |
|---|
| 134 | I_Method1(osgWidget::Frame::Corner *, getCorner, IN, osgWidget::Frame::CornerType, c, |
|---|
| 135 | Properties::NON_VIRTUAL, |
|---|
| 136 | __Corner_P1__getCorner__CornerType, |
|---|
| 137 | "", |
|---|
| 138 | ""); |
|---|
| 139 | I_Method1(const osgWidget::Frame::Corner *, getCorner, IN, osgWidget::Frame::CornerType, c, |
|---|
| 140 | Properties::NON_VIRTUAL, |
|---|
| 141 | __C5_Corner_P1__getCorner__CornerType, |
|---|
| 142 | "", |
|---|
| 143 | ""); |
|---|
| 144 | I_Method1(osgWidget::Frame::Border *, getBorder, IN, osgWidget::Frame::BorderType, b, |
|---|
| 145 | Properties::NON_VIRTUAL, |
|---|
| 146 | __Border_P1__getBorder__BorderType, |
|---|
| 147 | "", |
|---|
| 148 | ""); |
|---|
| 149 | I_Method1(const osgWidget::Frame::Border *, getBorder, IN, osgWidget::Frame::BorderType, b, |
|---|
| 150 | Properties::NON_VIRTUAL, |
|---|
| 151 | __C5_Border_P1__getBorder__BorderType, |
|---|
| 152 | "", |
|---|
| 153 | ""); |
|---|
| 154 | I_Method2(bool, resizeFrame, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, |
|---|
| 155 | Properties::NON_VIRTUAL, |
|---|
| 156 | __bool__resizeFrame__point_type__point_type, |
|---|
| 157 | "", |
|---|
| 158 | ""); |
|---|
| 159 | I_Method0(unsigned int, getFlags, |
|---|
| 160 | Properties::NON_VIRTUAL, |
|---|
| 161 | __unsigned_int__getFlags, |
|---|
| 162 | "", |
|---|
| 163 | ""); |
|---|
| 164 | I_Method1(void, setFlags, IN, unsigned int, flags, |
|---|
| 165 | Properties::NON_VIRTUAL, |
|---|
| 166 | __void__setFlags__unsigned_int, |
|---|
| 167 | "", |
|---|
| 168 | ""); |
|---|
| 169 | I_Method0(bool, canResize, |
|---|
| 170 | Properties::NON_VIRTUAL, |
|---|
| 171 | __bool__canResize, |
|---|
| 172 | "", |
|---|
| 173 | ""); |
|---|
| 174 | I_Method0(bool, canMove, |
|---|
| 175 | Properties::NON_VIRTUAL, |
|---|
| 176 | __bool__canMove, |
|---|
| 177 | "", |
|---|
| 178 | ""); |
|---|
| 179 | I_Method0(bool, canTexture, |
|---|
| 180 | Properties::NON_VIRTUAL, |
|---|
| 181 | __bool__canTexture, |
|---|
| 182 | "", |
|---|
| 183 | ""); |
|---|
| 184 | I_ProtectedMethod1(osgWidget::Widget *, _getCorner, IN, osgWidget::Frame::CornerType, x, |
|---|
| 185 | Properties::NON_VIRTUAL, |
|---|
| 186 | Properties::CONST, |
|---|
| 187 | __Widget_P1___getCorner__CornerType, |
|---|
| 188 | "", |
|---|
| 189 | ""); |
|---|
| 190 | I_ProtectedMethod1(osgWidget::Widget *, _getBorder, IN, osgWidget::Frame::BorderType, x, |
|---|
| 191 | Properties::NON_VIRTUAL, |
|---|
| 192 | Properties::CONST, |
|---|
| 193 | __Widget_P1___getBorder__BorderType, |
|---|
| 194 | "", |
|---|
| 195 | ""); |
|---|
| 196 | I_SimpleProperty(osgWidget::Window::EmbeddedWindow *, EmbeddedWindow, |
|---|
| 197 | __EmbeddedWindow_P1__getEmbeddedWindow, |
|---|
| 198 | 0); |
|---|
| 199 | I_SimpleProperty(unsigned int, Flags, |
|---|
| 200 | __unsigned_int__getFlags, |
|---|
| 201 | __void__setFlags__unsigned_int); |
|---|
| 202 | I_SimpleProperty(osgWidget::Window *, Window, |
|---|
| 203 | 0, |
|---|
| 204 | __bool__setWindow__Window_P1); |
|---|
| 205 | END_REFLECTOR |
|---|
| 206 | |
|---|
| 207 | BEGIN_OBJECT_REFLECTOR(osgWidget::Frame::Border) |
|---|
| 208 | I_DeclaringFile("osgWidget/Frame"); |
|---|
| 209 | I_BaseType(osgWidget::Widget); |
|---|
| 210 | I_Method0(osg::Object *, cloneType, |
|---|
| 211 | Properties::VIRTUAL, |
|---|
| 212 | __osg_Object_P1__cloneType, |
|---|
| 213 | "Clone the type of an object, with Object* return type. ", |
|---|
| 214 | "Must be defined by derived classes. "); |
|---|
| 215 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 216 | Properties::VIRTUAL, |
|---|
| 217 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 218 | "Clone an object, with Object* return type. ", |
|---|
| 219 | "Must be defined by derived classes. "); |
|---|
| 220 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 221 | Properties::VIRTUAL, |
|---|
| 222 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 223 | "", |
|---|
| 224 | ""); |
|---|
| 225 | I_Method0(const char *, libraryName, |
|---|
| 226 | Properties::VIRTUAL, |
|---|
| 227 | __C5_char_P1__libraryName, |
|---|
| 228 | "return the name of the object's library. ", |
|---|
| 229 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 230 | I_Method0(const char *, className, |
|---|
| 231 | Properties::VIRTUAL, |
|---|
| 232 | __C5_char_P1__className, |
|---|
| 233 | "return the name of the object's class type. ", |
|---|
| 234 | "Must be defined by derived classes. "); |
|---|
| 235 | I_ConstructorWithDefaults3(IN, osgWidget::Frame::BorderType, x, osgWidget::Frame::BORDER_LEFT, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, |
|---|
| 236 | ____Border__BorderType__point_type__point_type, |
|---|
| 237 | "", |
|---|
| 238 | ""); |
|---|
| 239 | I_Constructor2(IN, const osgWidget::Frame::Border &, x, IN, const osg::CopyOp &, x, |
|---|
| 240 | ____Border__C5_Border_R1__C5_osg_CopyOp_R1, |
|---|
| 241 | "", |
|---|
| 242 | ""); |
|---|
| 243 | I_Method1(void, parented, IN, osgWidget::Window *, x, |
|---|
| 244 | Properties::VIRTUAL, |
|---|
| 245 | __void__parented__Window_P1, |
|---|
| 246 | "", |
|---|
| 247 | ""); |
|---|
| 248 | I_Method0(void, positioned, |
|---|
| 249 | Properties::VIRTUAL, |
|---|
| 250 | __void__positioned, |
|---|
| 251 | "", |
|---|
| 252 | ""); |
|---|
| 253 | I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, osgWidget::WindowManager *, x, |
|---|
| 254 | Properties::VIRTUAL, |
|---|
| 255 | __bool__mouseDrag__double__double__WindowManager_P1, |
|---|
| 256 | "", |
|---|
| 257 | ""); |
|---|
| 258 | I_Method0(osgWidget::Frame::BorderType, getBorderType, |
|---|
| 259 | Properties::NON_VIRTUAL, |
|---|
| 260 | __BorderType__getBorderType, |
|---|
| 261 | "", |
|---|
| 262 | ""); |
|---|
| 263 | I_Method1(void, setBorderType, IN, osgWidget::Frame::BorderType, border, |
|---|
| 264 | Properties::NON_VIRTUAL, |
|---|
| 265 | __void__setBorderType__BorderType, |
|---|
| 266 | "", |
|---|
| 267 | ""); |
|---|
| 268 | I_Method1(void, setBorderTypeAndName, IN, osgWidget::Frame::BorderType, border, |
|---|
| 269 | Properties::NON_VIRTUAL, |
|---|
| 270 | __void__setBorderTypeAndName__BorderType, |
|---|
| 271 | "", |
|---|
| 272 | ""); |
|---|
| 273 | I_SimpleProperty(osgWidget::Frame::BorderType, BorderType, |
|---|
| 274 | __BorderType__getBorderType, |
|---|
| 275 | __void__setBorderType__BorderType); |
|---|
| 276 | I_SimpleProperty(osgWidget::Frame::BorderType, BorderTypeAndName, |
|---|
| 277 | 0, |
|---|
| 278 | __void__setBorderTypeAndName__BorderType); |
|---|
| 279 | END_REFLECTOR |
|---|
| 280 | |
|---|
| 281 | BEGIN_OBJECT_REFLECTOR(osgWidget::Frame::Corner) |
|---|
| 282 | I_DeclaringFile("osgWidget/Frame"); |
|---|
| 283 | I_BaseType(osgWidget::Widget); |
|---|
| 284 | I_Method0(osg::Object *, cloneType, |
|---|
| 285 | Properties::VIRTUAL, |
|---|
| 286 | __osg_Object_P1__cloneType, |
|---|
| 287 | "Clone the type of an object, with Object* return type. ", |
|---|
| 288 | "Must be defined by derived classes. "); |
|---|
| 289 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 290 | Properties::VIRTUAL, |
|---|
| 291 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 292 | "Clone an object, with Object* return type. ", |
|---|
| 293 | "Must be defined by derived classes. "); |
|---|
| 294 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 295 | Properties::VIRTUAL, |
|---|
| 296 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 297 | "", |
|---|
| 298 | ""); |
|---|
| 299 | I_Method0(const char *, libraryName, |
|---|
| 300 | Properties::VIRTUAL, |
|---|
| 301 | __C5_char_P1__libraryName, |
|---|
| 302 | "return the name of the object's library. ", |
|---|
| 303 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 304 | I_Method0(const char *, className, |
|---|
| 305 | Properties::VIRTUAL, |
|---|
| 306 | __C5_char_P1__className, |
|---|
| 307 | "return the name of the object's class type. ", |
|---|
| 308 | "Must be defined by derived classes. "); |
|---|
| 309 | I_ConstructorWithDefaults3(IN, osgWidget::Frame::CornerType, x, osgWidget::Frame::CORNER_LOWER_LEFT, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, |
|---|
| 310 | ____Corner__CornerType__point_type__point_type, |
|---|
| 311 | "", |
|---|
| 312 | ""); |
|---|
| 313 | I_Constructor2(IN, const osgWidget::Frame::Corner &, x, IN, const osg::CopyOp &, x, |
|---|
| 314 | ____Corner__C5_Corner_R1__C5_osg_CopyOp_R1, |
|---|
| 315 | "", |
|---|
| 316 | ""); |
|---|
| 317 | I_Method1(void, parented, IN, osgWidget::Window *, x, |
|---|
| 318 | Properties::VIRTUAL, |
|---|
| 319 | __void__parented__Window_P1, |
|---|
| 320 | "", |
|---|
| 321 | ""); |
|---|
| 322 | I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, osgWidget::WindowManager *, x, |
|---|
| 323 | Properties::VIRTUAL, |
|---|
| 324 | __bool__mouseDrag__double__double__WindowManager_P1, |
|---|
| 325 | "", |
|---|
| 326 | ""); |
|---|
| 327 | I_Method0(osgWidget::Frame::CornerType, getCornerType, |
|---|
| 328 | Properties::NON_VIRTUAL, |
|---|
| 329 | __CornerType__getCornerType, |
|---|
| 330 | "", |
|---|
| 331 | ""); |
|---|
| 332 | I_Method1(void, setCornerType, IN, osgWidget::Frame::CornerType, corner, |
|---|
| 333 | Properties::NON_VIRTUAL, |
|---|
| 334 | __void__setCornerType__CornerType, |
|---|
| 335 | "", |
|---|
| 336 | ""); |
|---|
| 337 | I_Method1(void, setCornerTypeAndName, IN, osgWidget::Frame::CornerType, corner, |
|---|
| 338 | Properties::NON_VIRTUAL, |
|---|
| 339 | __void__setCornerTypeAndName__CornerType, |
|---|
| 340 | "", |
|---|
| 341 | ""); |
|---|
| 342 | I_SimpleProperty(osgWidget::Frame::CornerType, CornerType, |
|---|
| 343 | __CornerType__getCornerType, |
|---|
| 344 | __void__setCornerType__CornerType); |
|---|
| 345 | I_SimpleProperty(osgWidget::Frame::CornerType, CornerTypeAndName, |
|---|
| 346 | 0, |
|---|
| 347 | __void__setCornerTypeAndName__CornerType); |
|---|
| 348 | END_REFLECTOR |
|---|