| 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/GraphicsContext> |
|---|
| 15 | #include <osg/Matrix> |
|---|
| 16 | #include <osg/Object> |
|---|
| 17 | #include <osgGA/GUIEventAdapter> |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | #ifdef IN |
|---|
| 21 | #undef IN |
|---|
| 22 | #endif |
|---|
| 23 | #ifdef OUT |
|---|
| 24 | #undef OUT |
|---|
| 25 | #endif |
|---|
| 26 | |
|---|
| 27 | BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::MouseButtonMask) |
|---|
| 28 | I_DeclaringFile("osgGA/GUIEventAdapter"); |
|---|
| 29 | I_EnumLabel(osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON); |
|---|
| 30 | I_EnumLabel(osgGA::GUIEventAdapter::MIDDLE_MOUSE_BUTTON); |
|---|
| 31 | I_EnumLabel(osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON); |
|---|
| 32 | END_REFLECTOR |
|---|
| 33 | |
|---|
| 34 | BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::EventType) |
|---|
| 35 | I_DeclaringFile("osgGA/GUIEventAdapter"); |
|---|
| 36 | I_EnumLabel(osgGA::GUIEventAdapter::NONE); |
|---|
| 37 | I_EnumLabel(osgGA::GUIEventAdapter::PUSH); |
|---|
| 38 | I_EnumLabel(osgGA::GUIEventAdapter::RELEASE); |
|---|
| 39 | I_EnumLabel(osgGA::GUIEventAdapter::DOUBLECLICK); |
|---|
| 40 | I_EnumLabel(osgGA::GUIEventAdapter::DRAG); |
|---|
| 41 | I_EnumLabel(osgGA::GUIEventAdapter::MOVE); |
|---|
| 42 | I_EnumLabel(osgGA::GUIEventAdapter::KEYDOWN); |
|---|
| 43 | I_EnumLabel(osgGA::GUIEventAdapter::KEYUP); |
|---|
| 44 | I_EnumLabel(osgGA::GUIEventAdapter::FRAME); |
|---|
| 45 | I_EnumLabel(osgGA::GUIEventAdapter::RESIZE); |
|---|
| 46 | I_EnumLabel(osgGA::GUIEventAdapter::SCROLL); |
|---|
| 47 | I_EnumLabel(osgGA::GUIEventAdapter::PEN_PRESSURE); |
|---|
| 48 | I_EnumLabel(osgGA::GUIEventAdapter::PEN_ORIENTATION); |
|---|
| 49 | I_EnumLabel(osgGA::GUIEventAdapter::PEN_PROXIMITY_ENTER); |
|---|
| 50 | I_EnumLabel(osgGA::GUIEventAdapter::PEN_PROXIMITY_LEAVE); |
|---|
| 51 | I_EnumLabel(osgGA::GUIEventAdapter::CLOSE_WINDOW); |
|---|
| 52 | I_EnumLabel(osgGA::GUIEventAdapter::QUIT_APPLICATION); |
|---|
| 53 | I_EnumLabel(osgGA::GUIEventAdapter::USER); |
|---|
| 54 | END_REFLECTOR |
|---|
| 55 | |
|---|
| 56 | BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::KeySymbol) |
|---|
| 57 | I_DeclaringFile("osgGA/GUIEventAdapter"); |
|---|
| 58 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Space); |
|---|
| 59 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_BackSpace); |
|---|
| 60 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Tab); |
|---|
| 61 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Linefeed); |
|---|
| 62 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Clear); |
|---|
| 63 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Return); |
|---|
| 64 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Pause); |
|---|
| 65 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Scroll_Lock); |
|---|
| 66 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Sys_Req); |
|---|
| 67 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Escape); |
|---|
| 68 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Delete); |
|---|
| 69 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Home); |
|---|
| 70 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Left); |
|---|
| 71 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Up); |
|---|
| 72 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Right); |
|---|
| 73 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Down); |
|---|
| 74 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Prior); |
|---|
| 75 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Page_Up); |
|---|
| 76 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Next); |
|---|
| 77 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Page_Down); |
|---|
| 78 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_End); |
|---|
| 79 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Begin); |
|---|
| 80 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Select); |
|---|
| 81 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Print); |
|---|
| 82 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Execute); |
|---|
| 83 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Insert); |
|---|
| 84 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Undo); |
|---|
| 85 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Redo); |
|---|
| 86 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Menu); |
|---|
| 87 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Find); |
|---|
| 88 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Cancel); |
|---|
| 89 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Help); |
|---|
| 90 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Break); |
|---|
| 91 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Mode_switch); |
|---|
| 92 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Script_switch); |
|---|
| 93 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Num_Lock); |
|---|
| 94 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Space); |
|---|
| 95 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Tab); |
|---|
| 96 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Enter); |
|---|
| 97 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F1); |
|---|
| 98 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F2); |
|---|
| 99 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F3); |
|---|
| 100 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F4); |
|---|
| 101 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Home); |
|---|
| 102 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Left); |
|---|
| 103 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Up); |
|---|
| 104 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Right); |
|---|
| 105 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Down); |
|---|
| 106 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Prior); |
|---|
| 107 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Page_Up); |
|---|
| 108 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Next); |
|---|
| 109 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Page_Down); |
|---|
| 110 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_End); |
|---|
| 111 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Begin); |
|---|
| 112 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Insert); |
|---|
| 113 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Delete); |
|---|
| 114 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Equal); |
|---|
| 115 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Multiply); |
|---|
| 116 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Add); |
|---|
| 117 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Separator); |
|---|
| 118 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Subtract); |
|---|
| 119 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Decimal); |
|---|
| 120 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Divide); |
|---|
| 121 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_0); |
|---|
| 122 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_1); |
|---|
| 123 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_2); |
|---|
| 124 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_3); |
|---|
| 125 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_4); |
|---|
| 126 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_5); |
|---|
| 127 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_6); |
|---|
| 128 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_7); |
|---|
| 129 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_8); |
|---|
| 130 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_9); |
|---|
| 131 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F1); |
|---|
| 132 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F2); |
|---|
| 133 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F3); |
|---|
| 134 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F4); |
|---|
| 135 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F5); |
|---|
| 136 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F6); |
|---|
| 137 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F7); |
|---|
| 138 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F8); |
|---|
| 139 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F9); |
|---|
| 140 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F10); |
|---|
| 141 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F11); |
|---|
| 142 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F12); |
|---|
| 143 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F13); |
|---|
| 144 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F14); |
|---|
| 145 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F15); |
|---|
| 146 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F16); |
|---|
| 147 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F17); |
|---|
| 148 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F18); |
|---|
| 149 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F19); |
|---|
| 150 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F20); |
|---|
| 151 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F21); |
|---|
| 152 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F22); |
|---|
| 153 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F23); |
|---|
| 154 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F24); |
|---|
| 155 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F25); |
|---|
| 156 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F26); |
|---|
| 157 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F27); |
|---|
| 158 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F28); |
|---|
| 159 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F29); |
|---|
| 160 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F30); |
|---|
| 161 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F31); |
|---|
| 162 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F32); |
|---|
| 163 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F33); |
|---|
| 164 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F34); |
|---|
| 165 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_F35); |
|---|
| 166 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_L); |
|---|
| 167 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_R); |
|---|
| 168 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Control_L); |
|---|
| 169 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Control_R); |
|---|
| 170 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Caps_Lock); |
|---|
| 171 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_Lock); |
|---|
| 172 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Meta_L); |
|---|
| 173 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Meta_R); |
|---|
| 174 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Alt_L); |
|---|
| 175 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Alt_R); |
|---|
| 176 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Super_L); |
|---|
| 177 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Super_R); |
|---|
| 178 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Hyper_L); |
|---|
| 179 | I_EnumLabel(osgGA::GUIEventAdapter::KEY_Hyper_R); |
|---|
| 180 | END_REFLECTOR |
|---|
| 181 | |
|---|
| 182 | BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::ModKeyMask) |
|---|
| 183 | I_DeclaringFile("osgGA/GUIEventAdapter"); |
|---|
| 184 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT); |
|---|
| 185 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_SHIFT); |
|---|
| 186 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_CTRL); |
|---|
| 187 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_CTRL); |
|---|
| 188 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_ALT); |
|---|
| 189 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT); |
|---|
| 190 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_META); |
|---|
| 191 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_META); |
|---|
| 192 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_SUPER); |
|---|
| 193 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_SUPER); |
|---|
| 194 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_HYPER); |
|---|
| 195 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_HYPER); |
|---|
| 196 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_NUM_LOCK); |
|---|
| 197 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_CAPS_LOCK); |
|---|
| 198 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_CTRL); |
|---|
| 199 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_SHIFT); |
|---|
| 200 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_ALT); |
|---|
| 201 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_META); |
|---|
| 202 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_SUPER); |
|---|
| 203 | I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_HYPER); |
|---|
| 204 | END_REFLECTOR |
|---|
| 205 | |
|---|
| 206 | BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::MouseYOrientation) |
|---|
| 207 | I_DeclaringFile("osgGA/GUIEventAdapter"); |
|---|
| 208 | I_EnumLabel(osgGA::GUIEventAdapter::Y_INCREASING_UPWARDS); |
|---|
| 209 | I_EnumLabel(osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS); |
|---|
| 210 | END_REFLECTOR |
|---|
| 211 | |
|---|
| 212 | BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::ScrollingMotion) |
|---|
| 213 | I_DeclaringFile("osgGA/GUIEventAdapter"); |
|---|
| 214 | I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_NONE); |
|---|
| 215 | I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_LEFT); |
|---|
| 216 | I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_RIGHT); |
|---|
| 217 | I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_UP); |
|---|
| 218 | I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_DOWN); |
|---|
| 219 | I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_2D); |
|---|
| 220 | END_REFLECTOR |
|---|
| 221 | |
|---|
| 222 | BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::TabletPointerType) |
|---|
| 223 | I_DeclaringFile("osgGA/GUIEventAdapter"); |
|---|
| 224 | I_EnumLabel(osgGA::GUIEventAdapter::UNKNOWN); |
|---|
| 225 | I_EnumLabel(osgGA::GUIEventAdapter::PEN); |
|---|
| 226 | I_EnumLabel(osgGA::GUIEventAdapter::PUCK); |
|---|
| 227 | I_EnumLabel(osgGA::GUIEventAdapter::ERASER); |
|---|
| 228 | END_REFLECTOR |
|---|
| 229 | |
|---|
| 230 | BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) |
|---|
| 231 | I_DeclaringFile("osgGA/GUIEventAdapter"); |
|---|
| 232 | I_BaseType(osg::Object); |
|---|
| 233 | I_Constructor0(____GUIEventAdapter, |
|---|
| 234 | "", |
|---|
| 235 | ""); |
|---|
| 236 | I_ConstructorWithDefaults2(IN, const osgGA::GUIEventAdapter &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 237 | ____GUIEventAdapter__C5_GUIEventAdapter_R1__C5_osg_CopyOp_R1, |
|---|
| 238 | "", |
|---|
| 239 | ""); |
|---|
| 240 | I_Method0(osg::Object *, cloneType, |
|---|
| 241 | Properties::VIRTUAL, |
|---|
| 242 | __osg_Object_P1__cloneType, |
|---|
| 243 | "Clone the type of an object, with Object* return type. ", |
|---|
| 244 | "Must be defined by derived classes. "); |
|---|
| 245 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 246 | Properties::VIRTUAL, |
|---|
| 247 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 248 | "Clone an object, with Object* return type. ", |
|---|
| 249 | "Must be defined by derived classes. "); |
|---|
| 250 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 251 | Properties::VIRTUAL, |
|---|
| 252 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 253 | "", |
|---|
| 254 | ""); |
|---|
| 255 | I_Method0(const char *, libraryName, |
|---|
| 256 | Properties::VIRTUAL, |
|---|
| 257 | __C5_char_P1__libraryName, |
|---|
| 258 | "return the name of the object's library. ", |
|---|
| 259 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 260 | I_Method0(const char *, className, |
|---|
| 261 | Properties::VIRTUAL, |
|---|
| 262 | __C5_char_P1__className, |
|---|
| 263 | "return the name of the object's class type. ", |
|---|
| 264 | "Must be defined by derived classes. "); |
|---|
| 265 | I_Method1(void, setHandled, IN, bool, handled, |
|---|
| 266 | Properties::NON_VIRTUAL, |
|---|
| 267 | __void__setHandled__bool, |
|---|
| 268 | "Set whether this event has been handled by an event handler or not. ", |
|---|
| 269 | ""); |
|---|
| 270 | I_Method0(bool, getHandled, |
|---|
| 271 | Properties::NON_VIRTUAL, |
|---|
| 272 | __bool__getHandled, |
|---|
| 273 | "Get whether this event has been handled by an event handler or not. ", |
|---|
| 274 | ""); |
|---|
| 275 | I_Method1(void, setEventType, IN, osgGA::GUIEventAdapter::EventType, Type, |
|---|
| 276 | Properties::NON_VIRTUAL, |
|---|
| 277 | __void__setEventType__EventType, |
|---|
| 278 | "set the event type. ", |
|---|
| 279 | ""); |
|---|
| 280 | I_Method0(osgGA::GUIEventAdapter::EventType, getEventType, |
|---|
| 281 | Properties::VIRTUAL, |
|---|
| 282 | __EventType__getEventType, |
|---|
| 283 | "get the event type. ", |
|---|
| 284 | ""); |
|---|
| 285 | I_Method1(void, setTime, IN, double, time, |
|---|
| 286 | Properties::NON_VIRTUAL, |
|---|
| 287 | __void__setTime__double, |
|---|
| 288 | "set time in seconds of event. ", |
|---|
| 289 | ""); |
|---|
| 290 | I_Method0(double, getTime, |
|---|
| 291 | Properties::NON_VIRTUAL, |
|---|
| 292 | __double__getTime, |
|---|
| 293 | "get time in seconds of event. ", |
|---|
| 294 | ""); |
|---|
| 295 | I_Method0(double, time, |
|---|
| 296 | Properties::NON_VIRTUAL, |
|---|
| 297 | __double__time, |
|---|
| 298 | "deprecated function for getting time of event. ", |
|---|
| 299 | ""); |
|---|
| 300 | I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, |
|---|
| 301 | Properties::NON_VIRTUAL, |
|---|
| 302 | __void__setGraphicsContext__osg_GraphicsContext_P1, |
|---|
| 303 | "", |
|---|
| 304 | ""); |
|---|
| 305 | I_Method0(const osg::GraphicsContext *, getGraphicsContext, |
|---|
| 306 | Properties::NON_VIRTUAL, |
|---|
| 307 | __C5_osg_GraphicsContext_P1__getGraphicsContext, |
|---|
| 308 | "", |
|---|
| 309 | ""); |
|---|
| 310 | I_MethodWithDefaults5(void, setWindowRectangle, IN, int, x, , IN, int, y, , IN, int, width, , IN, int, height, , IN, bool, updateMouseRange, true, |
|---|
| 311 | Properties::NON_VIRTUAL, |
|---|
| 312 | __void__setWindowRectangle__int__int__int__int__bool, |
|---|
| 313 | "set window rectangle. ", |
|---|
| 314 | ""); |
|---|
| 315 | I_Method0(int, getWindowX, |
|---|
| 316 | Properties::NON_VIRTUAL, |
|---|
| 317 | __int__getWindowX, |
|---|
| 318 | "get window x origin. ", |
|---|
| 319 | ""); |
|---|
| 320 | I_Method0(int, getWindowY, |
|---|
| 321 | Properties::NON_VIRTUAL, |
|---|
| 322 | __int__getWindowY, |
|---|
| 323 | "get window y origin. ", |
|---|
| 324 | ""); |
|---|
| 325 | I_Method0(int, getWindowWidth, |
|---|
| 326 | Properties::NON_VIRTUAL, |
|---|
| 327 | __int__getWindowWidth, |
|---|
| 328 | "get window width. ", |
|---|
| 329 | ""); |
|---|
| 330 | I_Method0(int, getWindowHeight, |
|---|
| 331 | Properties::NON_VIRTUAL, |
|---|
| 332 | __int__getWindowHeight, |
|---|
| 333 | "get window height. ", |
|---|
| 334 | ""); |
|---|
| 335 | I_Method1(void, setKey, IN, int, key, |
|---|
| 336 | Properties::NON_VIRTUAL, |
|---|
| 337 | __void__setKey__int, |
|---|
| 338 | "set key pressed. ", |
|---|
| 339 | ""); |
|---|
| 340 | I_Method0(int, getKey, |
|---|
| 341 | Properties::VIRTUAL, |
|---|
| 342 | __int__getKey, |
|---|
| 343 | "get key pressed, return -1 if inappropriate for this GUIEventAdapter. ", |
|---|
| 344 | ""); |
|---|
| 345 | I_Method1(void, setButton, IN, int, button, |
|---|
| 346 | Properties::NON_VIRTUAL, |
|---|
| 347 | __void__setButton__int, |
|---|
| 348 | "set button pressed/released. ", |
|---|
| 349 | ""); |
|---|
| 350 | I_Method0(int, getButton, |
|---|
| 351 | Properties::NON_VIRTUAL, |
|---|
| 352 | __int__getButton, |
|---|
| 353 | "button pressed/released, return -1 if inappropriate for this GUIEventAdapter. ", |
|---|
| 354 | ""); |
|---|
| 355 | I_Method4(void, setInputRange, IN, float, Xmin, IN, float, Ymin, IN, float, Xmax, IN, float, Ymax, |
|---|
| 356 | Properties::NON_VIRTUAL, |
|---|
| 357 | __void__setInputRange__float__float__float__float, |
|---|
| 358 | "set mouse input range. ", |
|---|
| 359 | ""); |
|---|
| 360 | I_Method0(float, getXmin, |
|---|
| 361 | Properties::NON_VIRTUAL, |
|---|
| 362 | __float__getXmin, |
|---|
| 363 | "get mouse minimum x. ", |
|---|
| 364 | ""); |
|---|
| 365 | I_Method0(float, getXmax, |
|---|
| 366 | Properties::NON_VIRTUAL, |
|---|
| 367 | __float__getXmax, |
|---|
| 368 | "get mouse maximum x. ", |
|---|
| 369 | ""); |
|---|
| 370 | I_Method0(float, getYmin, |
|---|
| 371 | Properties::NON_VIRTUAL, |
|---|
| 372 | __float__getYmin, |
|---|
| 373 | "get mouse minimum y. ", |
|---|
| 374 | ""); |
|---|
| 375 | I_Method0(float, getYmax, |
|---|
| 376 | Properties::NON_VIRTUAL, |
|---|
| 377 | __float__getYmax, |
|---|
| 378 | "get mouse maximum y. ", |
|---|
| 379 | ""); |
|---|
| 380 | I_Method1(void, setX, IN, float, x, |
|---|
| 381 | Properties::NON_VIRTUAL, |
|---|
| 382 | __void__setX__float, |
|---|
| 383 | "set current mouse x position. ", |
|---|
| 384 | ""); |
|---|
| 385 | I_Method0(float, getX, |
|---|
| 386 | Properties::NON_VIRTUAL, |
|---|
| 387 | __float__getX, |
|---|
| 388 | "get current mouse x position. ", |
|---|
| 389 | ""); |
|---|
| 390 | I_Method1(void, setY, IN, float, y, |
|---|
| 391 | Properties::NON_VIRTUAL, |
|---|
| 392 | __void__setY__float, |
|---|
| 393 | "set current mouse y position. ", |
|---|
| 394 | ""); |
|---|
| 395 | I_Method0(float, getY, |
|---|
| 396 | Properties::NON_VIRTUAL, |
|---|
| 397 | __float__getY, |
|---|
| 398 | "get current mouse y position. ", |
|---|
| 399 | ""); |
|---|
| 400 | I_Method0(float, getXnormalized, |
|---|
| 401 | Properties::NON_VIRTUAL, |
|---|
| 402 | __float__getXnormalized, |
|---|
| 403 | "return the current mouse x value normalized to the range of -1 to 1. ", |
|---|
| 404 | "-1 would be the left hand side of the window. 0.0 would be the middle of the window. +1 would be the right hand side of the window. "); |
|---|
| 405 | I_Method0(float, getYnormalized, |
|---|
| 406 | Properties::NON_VIRTUAL, |
|---|
| 407 | __float__getYnormalized, |
|---|
| 408 | "return the current mouse y value normalized to the range of -1 to 1. ", |
|---|
| 409 | "-1 would be the bottom of the window. 0.0 would be the middle of the window. +1 would be the top of the window. "); |
|---|
| 410 | I_Method1(void, setMouseYOrientation, IN, osgGA::GUIEventAdapter::MouseYOrientation, myo, |
|---|
| 411 | Properties::NON_VIRTUAL, |
|---|
| 412 | __void__setMouseYOrientation__MouseYOrientation, |
|---|
| 413 | "set mouse-Y orientation (mouse-Y increases upwards or downwards). ", |
|---|
| 414 | ""); |
|---|
| 415 | I_Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation, |
|---|
| 416 | Properties::NON_VIRTUAL, |
|---|
| 417 | __MouseYOrientation__getMouseYOrientation, |
|---|
| 418 | "get mouse-Y orientation (mouse-Y increases upwards or downwards). ", |
|---|
| 419 | ""); |
|---|
| 420 | I_Method1(void, setButtonMask, IN, int, mask, |
|---|
| 421 | Properties::NON_VIRTUAL, |
|---|
| 422 | __void__setButtonMask__int, |
|---|
| 423 | "set current mouse button state. ", |
|---|
| 424 | ""); |
|---|
| 425 | I_Method0(int, getButtonMask, |
|---|
| 426 | Properties::NON_VIRTUAL, |
|---|
| 427 | __int__getButtonMask, |
|---|
| 428 | "get current mouse button state. ", |
|---|
| 429 | ""); |
|---|
| 430 | I_Method1(void, setModKeyMask, IN, int, mask, |
|---|
| 431 | Properties::NON_VIRTUAL, |
|---|
| 432 | __void__setModKeyMask__int, |
|---|
| 433 | "set modifier key mask. ", |
|---|
| 434 | ""); |
|---|
| 435 | I_Method0(int, getModKeyMask, |
|---|
| 436 | Properties::NON_VIRTUAL, |
|---|
| 437 | __int__getModKeyMask, |
|---|
| 438 | "get modifier key mask. ", |
|---|
| 439 | ""); |
|---|
| 440 | I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, motion, |
|---|
| 441 | Properties::NON_VIRTUAL, |
|---|
| 442 | __void__setScrollingMotion__ScrollingMotion, |
|---|
| 443 | "set scrolling motion (for EventType::SCROLL). ", |
|---|
| 444 | ""); |
|---|
| 445 | I_Method0(osgGA::GUIEventAdapter::ScrollingMotion, getScrollingMotion, |
|---|
| 446 | Properties::NON_VIRTUAL, |
|---|
| 447 | __ScrollingMotion__getScrollingMotion, |
|---|
| 448 | "get scrolling motion (for EventType::SCROLL). ", |
|---|
| 449 | ""); |
|---|
| 450 | I_Method2(void, setScrollingMotionDelta, IN, float, x, IN, float, y, |
|---|
| 451 | Properties::NON_VIRTUAL, |
|---|
| 452 | __void__setScrollingMotionDelta__float__float, |
|---|
| 453 | "set the scrolling delta to x,y and the scrolling motion to SCROLL_2D. ", |
|---|
| 454 | ""); |
|---|
| 455 | I_Method0(float, getScrollingDeltaX, |
|---|
| 456 | Properties::NON_VIRTUAL, |
|---|
| 457 | __float__getScrollingDeltaX, |
|---|
| 458 | "get the scrolling x-delta. ", |
|---|
| 459 | ""); |
|---|
| 460 | I_Method0(float, getScrollingDeltaY, |
|---|
| 461 | Properties::NON_VIRTUAL, |
|---|
| 462 | __float__getScrollingDeltaY, |
|---|
| 463 | "get the scrolling y-delta. ", |
|---|
| 464 | ""); |
|---|
| 465 | I_Method1(void, setPenPressure, IN, float, pressure, |
|---|
| 466 | Properties::NON_VIRTUAL, |
|---|
| 467 | __void__setPenPressure__float, |
|---|
| 468 | "set the tablet pen pressure (range 0..1). ", |
|---|
| 469 | ""); |
|---|
| 470 | I_Method0(float, getPenPressure, |
|---|
| 471 | Properties::NON_VIRTUAL, |
|---|
| 472 | __float__getPenPressure, |
|---|
| 473 | "get the tablet pen pressure (range 0..1). ", |
|---|
| 474 | ""); |
|---|
| 475 | I_Method1(void, setPenTiltX, IN, float, tiltX, |
|---|
| 476 | Properties::NON_VIRTUAL, |
|---|
| 477 | __void__setPenTiltX__float, |
|---|
| 478 | "set the tablet pen tiltX in degrees. ", |
|---|
| 479 | ""); |
|---|
| 480 | I_Method0(float, getPenTiltX, |
|---|
| 481 | Properties::NON_VIRTUAL, |
|---|
| 482 | __float__getPenTiltX, |
|---|
| 483 | "get the tablet pen tiltX in degrees. ", |
|---|
| 484 | ""); |
|---|
| 485 | I_Method1(void, setPenTiltY, IN, float, tiltY, |
|---|
| 486 | Properties::NON_VIRTUAL, |
|---|
| 487 | __void__setPenTiltY__float, |
|---|
| 488 | "set the tablet pen tiltY in degrees. ", |
|---|
| 489 | ""); |
|---|
| 490 | I_Method0(float, getPenTiltY, |
|---|
| 491 | Properties::NON_VIRTUAL, |
|---|
| 492 | __float__getPenTiltY, |
|---|
| 493 | "get the tablet pen tiltY in degrees. ", |
|---|
| 494 | ""); |
|---|
| 495 | I_Method1(void, setPenRotation, IN, float, rotation, |
|---|
| 496 | Properties::NON_VIRTUAL, |
|---|
| 497 | __void__setPenRotation__float, |
|---|
| 498 | "set the tablet pen rotation around the Z-axis in degrees. ", |
|---|
| 499 | ""); |
|---|
| 500 | I_Method0(float, getPenRotation, |
|---|
| 501 | Properties::NON_VIRTUAL, |
|---|
| 502 | __float__getPenRotation, |
|---|
| 503 | "get the tablet pen rotation around the Z-axis in degrees. ", |
|---|
| 504 | ""); |
|---|
| 505 | I_Method1(void, setTabletPointerType, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, |
|---|
| 506 | Properties::NON_VIRTUAL, |
|---|
| 507 | __void__setTabletPointerType__TabletPointerType, |
|---|
| 508 | "set the tablet pointer type. ", |
|---|
| 509 | ""); |
|---|
| 510 | I_Method0(osgGA::GUIEventAdapter::TabletPointerType, getTabletPointerType, |
|---|
| 511 | Properties::NON_VIRTUAL, |
|---|
| 512 | __TabletPointerType__getTabletPointerType, |
|---|
| 513 | "get the tablet pointer type. ", |
|---|
| 514 | ""); |
|---|
| 515 | I_Method0(const osg::Matrix, getPenOrientation, |
|---|
| 516 | Properties::NON_VIRTUAL, |
|---|
| 517 | __C5_osg_Matrix__getPenOrientation, |
|---|
| 518 | "set the orientation from a tablet input device as a matrix. ", |
|---|
| 519 | ""); |
|---|
| 520 | I_StaticMethod0(osg::ref_ptr< osgGA::GUIEventAdapter > &, getAccumulatedEventState, |
|---|
| 521 | __osg_ref_ptrT1_GUIEventAdapter__R1__getAccumulatedEventState_S, |
|---|
| 522 | "Get the accumulated event state singleton. ", |
|---|
| 523 | "Typically all EventQueue will share this single GUIEventAdapter object for tracking the mouse position, keyboard and mouse masks. "); |
|---|
| 524 | I_SimpleProperty(int, Button, |
|---|
| 525 | __int__getButton, |
|---|
| 526 | __void__setButton__int); |
|---|
| 527 | I_SimpleProperty(int, ButtonMask, |
|---|
| 528 | __int__getButtonMask, |
|---|
| 529 | __void__setButtonMask__int); |
|---|
| 530 | I_SimpleProperty(osgGA::GUIEventAdapter::EventType, EventType, |
|---|
| 531 | __EventType__getEventType, |
|---|
| 532 | __void__setEventType__EventType); |
|---|
| 533 | I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, |
|---|
| 534 | 0, |
|---|
| 535 | __void__setGraphicsContext__osg_GraphicsContext_P1); |
|---|
| 536 | I_SimpleProperty(bool, Handled, |
|---|
| 537 | __bool__getHandled, |
|---|
| 538 | __void__setHandled__bool); |
|---|
| 539 | I_SimpleProperty(int, Key, |
|---|
| 540 | __int__getKey, |
|---|
| 541 | __void__setKey__int); |
|---|
| 542 | I_SimpleProperty(int, ModKeyMask, |
|---|
| 543 | __int__getModKeyMask, |
|---|
| 544 | __void__setModKeyMask__int); |
|---|
| 545 | I_SimpleProperty(osgGA::GUIEventAdapter::MouseYOrientation, MouseYOrientation, |
|---|
| 546 | __MouseYOrientation__getMouseYOrientation, |
|---|
| 547 | __void__setMouseYOrientation__MouseYOrientation); |
|---|
| 548 | I_SimpleProperty(const osg::Matrix, PenOrientation, |
|---|
| 549 | __C5_osg_Matrix__getPenOrientation, |
|---|
| 550 | 0); |
|---|
| 551 | I_SimpleProperty(float, PenPressure, |
|---|
| 552 | __float__getPenPressure, |
|---|
| 553 | __void__setPenPressure__float); |
|---|
| 554 | I_SimpleProperty(float, PenRotation, |
|---|
| 555 | __float__getPenRotation, |
|---|
| 556 | __void__setPenRotation__float); |
|---|
| 557 | I_SimpleProperty(float, PenTiltX, |
|---|
| 558 | __float__getPenTiltX, |
|---|
| 559 | __void__setPenTiltX__float); |
|---|
| 560 | I_SimpleProperty(float, PenTiltY, |
|---|
| 561 | __float__getPenTiltY, |
|---|
| 562 | __void__setPenTiltY__float); |
|---|
| 563 | I_SimpleProperty(float, ScrollingDeltaX, |
|---|
| 564 | __float__getScrollingDeltaX, |
|---|
| 565 | 0); |
|---|
| 566 | I_SimpleProperty(float, ScrollingDeltaY, |
|---|
| 567 | __float__getScrollingDeltaY, |
|---|
| 568 | 0); |
|---|
| 569 | I_SimpleProperty(osgGA::GUIEventAdapter::ScrollingMotion, ScrollingMotion, |
|---|
| 570 | __ScrollingMotion__getScrollingMotion, |
|---|
| 571 | __void__setScrollingMotion__ScrollingMotion); |
|---|
| 572 | I_SimpleProperty(osgGA::GUIEventAdapter::TabletPointerType, TabletPointerType, |
|---|
| 573 | __TabletPointerType__getTabletPointerType, |
|---|
| 574 | __void__setTabletPointerType__TabletPointerType); |
|---|
| 575 | I_SimpleProperty(double, Time, |
|---|
| 576 | __double__getTime, |
|---|
| 577 | __void__setTime__double); |
|---|
| 578 | I_SimpleProperty(int, WindowHeight, |
|---|
| 579 | __int__getWindowHeight, |
|---|
| 580 | 0); |
|---|
| 581 | I_SimpleProperty(int, WindowWidth, |
|---|
| 582 | __int__getWindowWidth, |
|---|
| 583 | 0); |
|---|
| 584 | I_SimpleProperty(int, WindowX, |
|---|
| 585 | __int__getWindowX, |
|---|
| 586 | 0); |
|---|
| 587 | I_SimpleProperty(int, WindowY, |
|---|
| 588 | __int__getWindowY, |
|---|
| 589 | 0); |
|---|
| 590 | I_SimpleProperty(float, X, |
|---|
| 591 | __float__getX, |
|---|
| 592 | __void__setX__float); |
|---|
| 593 | I_SimpleProperty(float, Xmax, |
|---|
| 594 | __float__getXmax, |
|---|
| 595 | 0); |
|---|
| 596 | I_SimpleProperty(float, Xmin, |
|---|
| 597 | __float__getXmin, |
|---|
| 598 | 0); |
|---|
| 599 | I_SimpleProperty(float, Xnormalized, |
|---|
| 600 | __float__getXnormalized, |
|---|
| 601 | 0); |
|---|
| 602 | I_SimpleProperty(float, Y, |
|---|
| 603 | __float__getY, |
|---|
| 604 | __void__setY__float); |
|---|
| 605 | I_SimpleProperty(float, Ymax, |
|---|
| 606 | __float__getYmax, |
|---|
| 607 | 0); |
|---|
| 608 | I_SimpleProperty(float, Ymin, |
|---|
| 609 | __float__getYmin, |
|---|
| 610 | 0); |
|---|
| 611 | I_SimpleProperty(float, Ynormalized, |
|---|
| 612 | __float__getYnormalized, |
|---|
| 613 | 0); |
|---|
| 614 | END_REFLECTOR |
|---|