| 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/Object> |
|---|
| 15 | #include <osgText/Text> |
|---|
| 16 | #include <osgWidget/Label> |
|---|
| 17 | #include <osgWidget/Types> |
|---|
| 18 | #include <osgWidget/Window> |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | #ifdef IN |
|---|
| 22 | #undef IN |
|---|
| 23 | #endif |
|---|
| 24 | #ifdef OUT |
|---|
| 25 | #undef OUT |
|---|
| 26 | #endif |
|---|
| 27 | |
|---|
| 28 | BEGIN_OBJECT_REFLECTOR(osgWidget::Label) |
|---|
| 29 | I_DeclaringFile("osgWidget/Label"); |
|---|
| 30 | I_BaseType(osgWidget::Widget); |
|---|
| 31 | I_Method0(osg::Object *, cloneType, |
|---|
| 32 | Properties::VIRTUAL, |
|---|
| 33 | __osg_Object_P1__cloneType, |
|---|
| 34 | "Clone the type of an object, with Object* return type. ", |
|---|
| 35 | "Must be defined by derived classes. "); |
|---|
| 36 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 37 | Properties::VIRTUAL, |
|---|
| 38 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 39 | "Clone an object, with Object* return type. ", |
|---|
| 40 | "Must be defined by derived classes. "); |
|---|
| 41 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 42 | Properties::VIRTUAL, |
|---|
| 43 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 44 | "", |
|---|
| 45 | ""); |
|---|
| 46 | I_Method0(const char *, libraryName, |
|---|
| 47 | Properties::VIRTUAL, |
|---|
| 48 | __C5_char_P1__libraryName, |
|---|
| 49 | "return the name of the object's library. ", |
|---|
| 50 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 51 | I_Method0(const char *, className, |
|---|
| 52 | Properties::VIRTUAL, |
|---|
| 53 | __C5_char_P1__className, |
|---|
| 54 | "return the name of the object's class type. ", |
|---|
| 55 | "Must be defined by derived classes. "); |
|---|
| 56 | I_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, const std::string &, x, "", |
|---|
| 57 | ____Label__C5_std_string_R1__C5_std_string_R1, |
|---|
| 58 | "", |
|---|
| 59 | ""); |
|---|
| 60 | I_Constructor2(IN, const osgWidget::Label &, x, IN, const osg::CopyOp &, x, |
|---|
| 61 | ____Label__C5_Label_R1__C5_osg_CopyOp_R1, |
|---|
| 62 | "", |
|---|
| 63 | ""); |
|---|
| 64 | I_Method1(void, parented, IN, osgWidget::Window *, x, |
|---|
| 65 | Properties::VIRTUAL, |
|---|
| 66 | __void__parented__Window_P1, |
|---|
| 67 | "", |
|---|
| 68 | ""); |
|---|
| 69 | I_Method1(void, unparented, IN, osgWidget::Window *, x, |
|---|
| 70 | Properties::VIRTUAL, |
|---|
| 71 | __void__unparented__Window_P1, |
|---|
| 72 | "", |
|---|
| 73 | ""); |
|---|
| 74 | I_Method0(void, positioned, |
|---|
| 75 | Properties::VIRTUAL, |
|---|
| 76 | __void__positioned, |
|---|
| 77 | "", |
|---|
| 78 | ""); |
|---|
| 79 | I_Method1(void, setLabel, IN, const std::string &, x, |
|---|
| 80 | Properties::NON_VIRTUAL, |
|---|
| 81 | __void__setLabel__C5_std_string_R1, |
|---|
| 82 | "", |
|---|
| 83 | ""); |
|---|
| 84 | I_Method1(void, setFont, IN, const std::string &, x, |
|---|
| 85 | Properties::NON_VIRTUAL, |
|---|
| 86 | __void__setFont__C5_std_string_R1, |
|---|
| 87 | "", |
|---|
| 88 | ""); |
|---|
| 89 | I_Method1(void, setFontSize, IN, unsigned, int, |
|---|
| 90 | Properties::NON_VIRTUAL, |
|---|
| 91 | __void__setFontSize__unsigned, |
|---|
| 92 | "", |
|---|
| 93 | ""); |
|---|
| 94 | I_Method1(void, setFontColor, IN, const osgWidget::Color &, x, |
|---|
| 95 | Properties::NON_VIRTUAL, |
|---|
| 96 | __void__setFontColor__C5_Color_R1, |
|---|
| 97 | "", |
|---|
| 98 | ""); |
|---|
| 99 | I_Method1(void, setShadow, IN, osgWidget::point_type, x, |
|---|
| 100 | Properties::NON_VIRTUAL, |
|---|
| 101 | __void__setShadow__point_type, |
|---|
| 102 | "", |
|---|
| 103 | ""); |
|---|
| 104 | I_Method0(osgWidget::XYCoord, getTextSize, |
|---|
| 105 | Properties::NON_VIRTUAL, |
|---|
| 106 | __XYCoord__getTextSize, |
|---|
| 107 | "", |
|---|
| 108 | ""); |
|---|
| 109 | I_Method0(std::string, getLabel, |
|---|
| 110 | Properties::NON_VIRTUAL, |
|---|
| 111 | __std_string__getLabel, |
|---|
| 112 | "", |
|---|
| 113 | ""); |
|---|
| 114 | I_Method4(void, setFontColor, IN, osgWidget::point_type, r, IN, osgWidget::point_type, g, IN, osgWidget::point_type, b, IN, osgWidget::point_type, a, |
|---|
| 115 | Properties::NON_VIRTUAL, |
|---|
| 116 | __void__setFontColor__point_type__point_type__point_type__point_type, |
|---|
| 117 | "", |
|---|
| 118 | ""); |
|---|
| 119 | I_Method0(osgText::Text *, getText, |
|---|
| 120 | Properties::NON_VIRTUAL, |
|---|
| 121 | __osgText_Text_P1__getText, |
|---|
| 122 | "", |
|---|
| 123 | ""); |
|---|
| 124 | I_Method0(const osgText::Text *, getText, |
|---|
| 125 | Properties::NON_VIRTUAL, |
|---|
| 126 | __C5_osgText_Text_P1__getText, |
|---|
| 127 | "", |
|---|
| 128 | ""); |
|---|
| 129 | I_ProtectedMethod1(void, _calculateSize, IN, const osgWidget::XYCoord &, x, |
|---|
| 130 | Properties::VIRTUAL, |
|---|
| 131 | Properties::NON_CONST, |
|---|
| 132 | __void___calculateSize__C5_XYCoord_R1, |
|---|
| 133 | "", |
|---|
| 134 | ""); |
|---|
| 135 | I_SimpleProperty(const std::string &, Font, |
|---|
| 136 | 0, |
|---|
| 137 | __void__setFont__C5_std_string_R1); |
|---|
| 138 | I_SimpleProperty(const osgWidget::Color &, FontColor, |
|---|
| 139 | 0, |
|---|
| 140 | __void__setFontColor__C5_Color_R1); |
|---|
| 141 | I_SimpleProperty(unsigned, FontSize, |
|---|
| 142 | 0, |
|---|
| 143 | __void__setFontSize__unsigned); |
|---|
| 144 | I_SimpleProperty(std::string, Label, |
|---|
| 145 | __std_string__getLabel, |
|---|
| 146 | __void__setLabel__C5_std_string_R1); |
|---|
| 147 | I_SimpleProperty(osgWidget::point_type, Shadow, |
|---|
| 148 | 0, |
|---|
| 149 | __void__setShadow__point_type); |
|---|
| 150 | I_SimpleProperty(osgText::Text *, Text, |
|---|
| 151 | __osgText_Text_P1__getText, |
|---|
| 152 | 0); |
|---|
| 153 | I_SimpleProperty(osgWidget::XYCoord, TextSize, |
|---|
| 154 | __XYCoord__getTextSize, |
|---|
| 155 | 0); |
|---|
| 156 | END_REFLECTOR |
|---|