| 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/ApplicationUsage> |
|---|
| 14 | #include <osg/Camera> |
|---|
| 15 | #include <osg/CopyOp> |
|---|
| 16 | #include <osg/Drawable> |
|---|
| 17 | #include <osg/Image> |
|---|
| 18 | #include <osg/NodeVisitor> |
|---|
| 19 | #include <osg/Object> |
|---|
| 20 | #include <osg/RenderInfo> |
|---|
| 21 | #include <osgGA/GUIActionAdapter> |
|---|
| 22 | #include <osgGA/GUIEventAdapter> |
|---|
| 23 | #include <osgViewer/ViewerBase> |
|---|
| 24 | #include <osgViewer/ViewerEventHandlers> |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | #ifdef IN |
|---|
| 28 | #undef IN |
|---|
| 29 | #endif |
|---|
| 30 | #ifdef OUT |
|---|
| 31 | #undef OUT |
|---|
| 32 | #endif |
|---|
| 33 | |
|---|
| 34 | BEGIN_OBJECT_REFLECTOR(osgViewer::HelpHandler) |
|---|
| 35 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 36 | I_BaseType(osgGA::GUIEventHandler); |
|---|
| 37 | I_ConstructorWithDefaults1(IN, osg::ApplicationUsage *, au, 0, |
|---|
| 38 | Properties::NON_EXPLICIT, |
|---|
| 39 | ____HelpHandler__osg_ApplicationUsage_P1, |
|---|
| 40 | "", |
|---|
| 41 | ""); |
|---|
| 42 | I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, |
|---|
| 43 | Properties::NON_VIRTUAL, |
|---|
| 44 | __void__setApplicationUsage__osg_ApplicationUsage_P1, |
|---|
| 45 | "", |
|---|
| 46 | ""); |
|---|
| 47 | I_Method0(osg::ApplicationUsage *, getApplicationUsage, |
|---|
| 48 | Properties::NON_VIRTUAL, |
|---|
| 49 | __osg_ApplicationUsage_P1__getApplicationUsage, |
|---|
| 50 | "", |
|---|
| 51 | ""); |
|---|
| 52 | I_Method0(const osg::ApplicationUsage *, getApplicationUsage, |
|---|
| 53 | Properties::NON_VIRTUAL, |
|---|
| 54 | __C5_osg_ApplicationUsage_P1__getApplicationUsage, |
|---|
| 55 | "", |
|---|
| 56 | ""); |
|---|
| 57 | I_Method1(void, setKeyEventTogglesOnScreenHelp, IN, int, key, |
|---|
| 58 | Properties::NON_VIRTUAL, |
|---|
| 59 | __void__setKeyEventTogglesOnScreenHelp__int, |
|---|
| 60 | "", |
|---|
| 61 | ""); |
|---|
| 62 | I_Method0(int, getKeyEventTogglesOnScreenHelp, |
|---|
| 63 | Properties::NON_VIRTUAL, |
|---|
| 64 | __int__getKeyEventTogglesOnScreenHelp, |
|---|
| 65 | "", |
|---|
| 66 | ""); |
|---|
| 67 | I_Method0(void, reset, |
|---|
| 68 | Properties::NON_VIRTUAL, |
|---|
| 69 | __void__reset, |
|---|
| 70 | "", |
|---|
| 71 | ""); |
|---|
| 72 | I_Method0(osg::Camera *, getCamera, |
|---|
| 73 | Properties::NON_VIRTUAL, |
|---|
| 74 | __osg_Camera_P1__getCamera, |
|---|
| 75 | "", |
|---|
| 76 | ""); |
|---|
| 77 | I_Method0(const osg::Camera *, getCamera, |
|---|
| 78 | Properties::NON_VIRTUAL, |
|---|
| 79 | __C5_osg_Camera_P1__getCamera, |
|---|
| 80 | "", |
|---|
| 81 | ""); |
|---|
| 82 | I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, |
|---|
| 83 | Properties::VIRTUAL, |
|---|
| 84 | __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, |
|---|
| 85 | "Deprecated, Handle events, return true if handled, false otherwise. ", |
|---|
| 86 | ""); |
|---|
| 87 | I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, |
|---|
| 88 | Properties::VIRTUAL, |
|---|
| 89 | __void__getUsage__osg_ApplicationUsage_R1, |
|---|
| 90 | "Get the keyboard and mouse usage of this manipulator. ", |
|---|
| 91 | ""); |
|---|
| 92 | I_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, |
|---|
| 93 | Properties::NON_VIRTUAL, |
|---|
| 94 | Properties::NON_CONST, |
|---|
| 95 | __void__setUpHUDCamera__osgViewer_ViewerBase_P1, |
|---|
| 96 | "", |
|---|
| 97 | ""); |
|---|
| 98 | I_ProtectedMethod1(void, setUpScene, IN, osgViewer::ViewerBase *, viewer, |
|---|
| 99 | Properties::NON_VIRTUAL, |
|---|
| 100 | Properties::NON_CONST, |
|---|
| 101 | __void__setUpScene__osgViewer_ViewerBase_P1, |
|---|
| 102 | "", |
|---|
| 103 | ""); |
|---|
| 104 | I_SimpleProperty(osg::ApplicationUsage *, ApplicationUsage, |
|---|
| 105 | __osg_ApplicationUsage_P1__getApplicationUsage, |
|---|
| 106 | __void__setApplicationUsage__osg_ApplicationUsage_P1); |
|---|
| 107 | I_SimpleProperty(osg::Camera *, Camera, |
|---|
| 108 | __osg_Camera_P1__getCamera, |
|---|
| 109 | 0); |
|---|
| 110 | I_SimpleProperty(int, KeyEventTogglesOnScreenHelp, |
|---|
| 111 | __int__getKeyEventTogglesOnScreenHelp, |
|---|
| 112 | __void__setKeyEventTogglesOnScreenHelp__int); |
|---|
| 113 | END_REFLECTOR |
|---|
| 114 | |
|---|
| 115 | BEGIN_OBJECT_REFLECTOR(osgViewer::InteractiveImageHandler) |
|---|
| 116 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 117 | I_BaseType(osgGA::GUIEventHandler); |
|---|
| 118 | I_BaseType(osg::Drawable::CullCallback); |
|---|
| 119 | I_Constructor1(IN, osg::Image *, image, |
|---|
| 120 | Properties::NON_EXPLICIT, |
|---|
| 121 | ____InteractiveImageHandler__osg_Image_P1, |
|---|
| 122 | "", |
|---|
| 123 | ""); |
|---|
| 124 | I_Method0(osg::Object *, cloneType, |
|---|
| 125 | Properties::VIRTUAL, |
|---|
| 126 | __osg_Object_P1__cloneType, |
|---|
| 127 | "Clone the type of an object, with Object* return type. ", |
|---|
| 128 | "Must be defined by derived classes. "); |
|---|
| 129 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 130 | Properties::VIRTUAL, |
|---|
| 131 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 132 | "Clone an object, with Object* return type. ", |
|---|
| 133 | "Must be defined by derived classes. "); |
|---|
| 134 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 135 | Properties::VIRTUAL, |
|---|
| 136 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 137 | "", |
|---|
| 138 | ""); |
|---|
| 139 | I_Method0(const char *, libraryName, |
|---|
| 140 | Properties::VIRTUAL, |
|---|
| 141 | __C5_char_P1__libraryName, |
|---|
| 142 | "return the name of the object's library. ", |
|---|
| 143 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 144 | I_Method0(const char *, className, |
|---|
| 145 | Properties::VIRTUAL, |
|---|
| 146 | __C5_char_P1__className, |
|---|
| 147 | "return the name of the object's class type. ", |
|---|
| 148 | "Must be defined by derived classes. "); |
|---|
| 149 | I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, |
|---|
| 150 | Properties::VIRTUAL, |
|---|
| 151 | __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, |
|---|
| 152 | "Handle events, return true if handled, false otherwise. ", |
|---|
| 153 | ""); |
|---|
| 154 | I_Method3(bool, cull, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, IN, osg::RenderInfo *, renderInfo, |
|---|
| 155 | Properties::VIRTUAL, |
|---|
| 156 | __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_RenderInfo_P1, |
|---|
| 157 | "do customized cull code, return true if drawable should be culled. ", |
|---|
| 158 | ""); |
|---|
| 159 | I_ProtectedConstructor0(____InteractiveImageHandler, |
|---|
| 160 | "", |
|---|
| 161 | ""); |
|---|
| 162 | I_ProtectedConstructorWithDefaults2(IN, const osgViewer::InteractiveImageHandler &, x, , IN, const osg::CopyOp &, x, osg::CopyOp::SHALLOW_COPY, |
|---|
| 163 | ____InteractiveImageHandler__C5_InteractiveImageHandler_R1__C5_osg_CopyOp_R1, |
|---|
| 164 | "", |
|---|
| 165 | ""); |
|---|
| 166 | I_ProtectedMethod5(bool, mousePosition, IN, osgViewer::View *, view, IN, osg::NodeVisitor *, nv, IN, const osgGA::GUIEventAdapter &, ea, IN, int &, x, IN, int &, y, |
|---|
| 167 | Properties::NON_VIRTUAL, |
|---|
| 168 | Properties::CONST, |
|---|
| 169 | __bool__mousePosition__osgViewer_View_P1__osg_NodeVisitor_P1__C5_osgGA_GUIEventAdapter_R1__int_R1__int_R1, |
|---|
| 170 | "", |
|---|
| 171 | ""); |
|---|
| 172 | END_REFLECTOR |
|---|
| 173 | |
|---|
| 174 | BEGIN_OBJECT_REFLECTOR(osgViewer::LODScaleHandler) |
|---|
| 175 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 176 | I_BaseType(osgGA::GUIEventHandler); |
|---|
| 177 | I_Constructor0(____LODScaleHandler, |
|---|
| 178 | "", |
|---|
| 179 | ""); |
|---|
| 180 | I_Method1(void, setKeyEventIncreaseLODScale, IN, int, key, |
|---|
| 181 | Properties::NON_VIRTUAL, |
|---|
| 182 | __void__setKeyEventIncreaseLODScale__int, |
|---|
| 183 | "", |
|---|
| 184 | ""); |
|---|
| 185 | I_Method0(int, getKeyEventIncreaseLODScale, |
|---|
| 186 | Properties::NON_VIRTUAL, |
|---|
| 187 | __int__getKeyEventIncreaseLODScale, |
|---|
| 188 | "", |
|---|
| 189 | ""); |
|---|
| 190 | I_Method1(void, setKeyEventDecreaseLODScale, IN, int, key, |
|---|
| 191 | Properties::NON_VIRTUAL, |
|---|
| 192 | __void__setKeyEventDecreaseLODScale__int, |
|---|
| 193 | "", |
|---|
| 194 | ""); |
|---|
| 195 | I_Method0(int, getKeyEventDecreaseLODScale, |
|---|
| 196 | Properties::NON_VIRTUAL, |
|---|
| 197 | __int__getKeyEventDecreaseLODScale, |
|---|
| 198 | "", |
|---|
| 199 | ""); |
|---|
| 200 | I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, |
|---|
| 201 | Properties::VIRTUAL, |
|---|
| 202 | __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, |
|---|
| 203 | "Deprecated, Handle events, return true if handled, false otherwise. ", |
|---|
| 204 | ""); |
|---|
| 205 | I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, |
|---|
| 206 | Properties::VIRTUAL, |
|---|
| 207 | __void__getUsage__osg_ApplicationUsage_R1, |
|---|
| 208 | "Get the keyboard and mouse usage of this manipulator. ", |
|---|
| 209 | ""); |
|---|
| 210 | I_SimpleProperty(int, KeyEventDecreaseLODScale, |
|---|
| 211 | __int__getKeyEventDecreaseLODScale, |
|---|
| 212 | __void__setKeyEventDecreaseLODScale__int); |
|---|
| 213 | I_SimpleProperty(int, KeyEventIncreaseLODScale, |
|---|
| 214 | __int__getKeyEventIncreaseLODScale, |
|---|
| 215 | __void__setKeyEventIncreaseLODScale__int); |
|---|
| 216 | END_REFLECTOR |
|---|
| 217 | |
|---|
| 218 | BEGIN_OBJECT_REFLECTOR(osgViewer::RecordCameraPathHandler) |
|---|
| 219 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 220 | I_BaseType(osgGA::GUIEventHandler); |
|---|
| 221 | I_ConstructorWithDefaults2(IN, const std::string &, filename, "saved_animation.path", IN, float, fps, 25.0f, |
|---|
| 222 | ____RecordCameraPathHandler__C5_std_string_R1__float, |
|---|
| 223 | "", |
|---|
| 224 | ""); |
|---|
| 225 | I_Method1(void, setKeyEventToggleRecord, IN, int, key, |
|---|
| 226 | Properties::NON_VIRTUAL, |
|---|
| 227 | __void__setKeyEventToggleRecord__int, |
|---|
| 228 | "", |
|---|
| 229 | ""); |
|---|
| 230 | I_Method0(int, getKeyEventToggleRecord, |
|---|
| 231 | Properties::NON_VIRTUAL, |
|---|
| 232 | __int__getKeyEventToggleRecord, |
|---|
| 233 | "", |
|---|
| 234 | ""); |
|---|
| 235 | I_Method1(void, setKeyEventTogglePlayback, IN, int, key, |
|---|
| 236 | Properties::NON_VIRTUAL, |
|---|
| 237 | __void__setKeyEventTogglePlayback__int, |
|---|
| 238 | "", |
|---|
| 239 | ""); |
|---|
| 240 | I_Method0(int, getKeyEventTogglePlayback, |
|---|
| 241 | Properties::NON_VIRTUAL, |
|---|
| 242 | __int__getKeyEventTogglePlayback, |
|---|
| 243 | "", |
|---|
| 244 | ""); |
|---|
| 245 | I_MethodWithDefaults1(void, setAutoIncrementFilename, IN, bool, autoinc, true, |
|---|
| 246 | Properties::NON_VIRTUAL, |
|---|
| 247 | __void__setAutoIncrementFilename__bool, |
|---|
| 248 | "", |
|---|
| 249 | ""); |
|---|
| 250 | I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, |
|---|
| 251 | Properties::VIRTUAL, |
|---|
| 252 | __void__getUsage__osg_ApplicationUsage_R1, |
|---|
| 253 | "Get the keyboard and mouse usage of this manipulator. ", |
|---|
| 254 | ""); |
|---|
| 255 | I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, |
|---|
| 256 | Properties::VIRTUAL, |
|---|
| 257 | __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, |
|---|
| 258 | "Deprecated, Handle events, return true if handled, false otherwise. ", |
|---|
| 259 | ""); |
|---|
| 260 | I_SimpleProperty(bool, AutoIncrementFilename, |
|---|
| 261 | 0, |
|---|
| 262 | __void__setAutoIncrementFilename__bool); |
|---|
| 263 | I_SimpleProperty(int, KeyEventTogglePlayback, |
|---|
| 264 | __int__getKeyEventTogglePlayback, |
|---|
| 265 | __void__setKeyEventTogglePlayback__int); |
|---|
| 266 | I_SimpleProperty(int, KeyEventToggleRecord, |
|---|
| 267 | __int__getKeyEventToggleRecord, |
|---|
| 268 | __void__setKeyEventToggleRecord__int); |
|---|
| 269 | END_REFLECTOR |
|---|
| 270 | |
|---|
| 271 | BEGIN_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler) |
|---|
| 272 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 273 | I_BaseType(osgGA::GUIEventHandler); |
|---|
| 274 | I_ConstructorWithDefaults1(IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, defaultOperation, 0, |
|---|
| 275 | Properties::NON_EXPLICIT, |
|---|
| 276 | ____ScreenCaptureHandler__CaptureOperation_P1, |
|---|
| 277 | "", |
|---|
| 278 | ""); |
|---|
| 279 | I_Method1(void, setKeyEventTakeScreenShot, IN, int, key, |
|---|
| 280 | Properties::NON_VIRTUAL, |
|---|
| 281 | __void__setKeyEventTakeScreenShot__int, |
|---|
| 282 | "", |
|---|
| 283 | ""); |
|---|
| 284 | I_Method0(int, getKeyEventTakeScreenShot, |
|---|
| 285 | Properties::NON_VIRTUAL, |
|---|
| 286 | __int__getKeyEventTakeScreenShot, |
|---|
| 287 | "", |
|---|
| 288 | ""); |
|---|
| 289 | I_Method1(void, setCaptureOperation, IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, operation, |
|---|
| 290 | Properties::NON_VIRTUAL, |
|---|
| 291 | __void__setCaptureOperation__CaptureOperation_P1, |
|---|
| 292 | "", |
|---|
| 293 | ""); |
|---|
| 294 | I_Method0(osgViewer::ScreenCaptureHandler::CaptureOperation *, getCaptureOperation, |
|---|
| 295 | Properties::NON_VIRTUAL, |
|---|
| 296 | __CaptureOperation_P1__getCaptureOperation, |
|---|
| 297 | "", |
|---|
| 298 | ""); |
|---|
| 299 | I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, |
|---|
| 300 | Properties::VIRTUAL, |
|---|
| 301 | __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, |
|---|
| 302 | "Deprecated, Handle events, return true if handled, false otherwise. ", |
|---|
| 303 | ""); |
|---|
| 304 | I_Method1(void, captureNextFrame, IN, osgViewer::ViewerBase &, viewer, |
|---|
| 305 | Properties::VIRTUAL, |
|---|
| 306 | __void__captureNextFrame__osgViewer_ViewerBase_R1, |
|---|
| 307 | "Capture the given viewer's views on the next frame. ", |
|---|
| 308 | ""); |
|---|
| 309 | I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, |
|---|
| 310 | Properties::VIRTUAL, |
|---|
| 311 | __void__getUsage__osg_ApplicationUsage_R1, |
|---|
| 312 | "Get the keyboard and mouse usage of this manipulator. ", |
|---|
| 313 | ""); |
|---|
| 314 | I_ProtectedMethod1(void, addCallbackToViewer, IN, osgViewer::ViewerBase &, viewer, |
|---|
| 315 | Properties::NON_VIRTUAL, |
|---|
| 316 | Properties::NON_CONST, |
|---|
| 317 | __void__addCallbackToViewer__osgViewer_ViewerBase_R1, |
|---|
| 318 | "", |
|---|
| 319 | ""); |
|---|
| 320 | I_SimpleProperty(osgViewer::ScreenCaptureHandler::CaptureOperation *, CaptureOperation, |
|---|
| 321 | __CaptureOperation_P1__getCaptureOperation, |
|---|
| 322 | __void__setCaptureOperation__CaptureOperation_P1); |
|---|
| 323 | I_SimpleProperty(int, KeyEventTakeScreenShot, |
|---|
| 324 | __int__getKeyEventTakeScreenShot, |
|---|
| 325 | __void__setKeyEventTakeScreenShot__int); |
|---|
| 326 | END_REFLECTOR |
|---|
| 327 | |
|---|
| 328 | BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler::CaptureOperation) |
|---|
| 329 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 330 | I_BaseType(osg::Referenced); |
|---|
| 331 | I_Constructor0(____CaptureOperation, |
|---|
| 332 | "", |
|---|
| 333 | ""); |
|---|
| 334 | END_REFLECTOR |
|---|
| 335 | |
|---|
| 336 | BEGIN_ENUM_REFLECTOR(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy) |
|---|
| 337 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 338 | I_EnumLabel(osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE); |
|---|
| 339 | I_EnumLabel(osgViewer::ScreenCaptureHandler::WriteToFile::SEQUENTIAL_NUMBER); |
|---|
| 340 | END_REFLECTOR |
|---|
| 341 | |
|---|
| 342 | BEGIN_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler::WriteToFile) |
|---|
| 343 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 344 | I_BaseType(osgViewer::ScreenCaptureHandler::CaptureOperation); |
|---|
| 345 | I_ConstructorWithDefaults3(IN, const std::string &, filename, , IN, const std::string &, extension, , IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE, |
|---|
| 346 | ____WriteToFile__C5_std_string_R1__C5_std_string_R1__SavePolicy, |
|---|
| 347 | "", |
|---|
| 348 | ""); |
|---|
| 349 | I_Method1(void, setSavePolicy, IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, |
|---|
| 350 | Properties::NON_VIRTUAL, |
|---|
| 351 | __void__setSavePolicy__SavePolicy, |
|---|
| 352 | "", |
|---|
| 353 | ""); |
|---|
| 354 | I_Method0(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, getSavePolicy, |
|---|
| 355 | Properties::NON_VIRTUAL, |
|---|
| 356 | __SavePolicy__getSavePolicy, |
|---|
| 357 | "", |
|---|
| 358 | ""); |
|---|
| 359 | I_SimpleProperty(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, SavePolicy, |
|---|
| 360 | __SavePolicy__getSavePolicy, |
|---|
| 361 | __void__setSavePolicy__SavePolicy); |
|---|
| 362 | END_REFLECTOR |
|---|
| 363 | |
|---|
| 364 | BEGIN_ENUM_REFLECTOR(osgViewer::StatsHandler::StatsType) |
|---|
| 365 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 366 | I_EnumLabel(osgViewer::StatsHandler::NO_STATS); |
|---|
| 367 | I_EnumLabel(osgViewer::StatsHandler::FRAME_RATE); |
|---|
| 368 | I_EnumLabel(osgViewer::StatsHandler::VIEWER_STATS); |
|---|
| 369 | I_EnumLabel(osgViewer::StatsHandler::CAMERA_SCENE_STATS); |
|---|
| 370 | I_EnumLabel(osgViewer::StatsHandler::VIEWER_SCENE_STATS); |
|---|
| 371 | I_EnumLabel(osgViewer::StatsHandler::LAST); |
|---|
| 372 | END_REFLECTOR |
|---|
| 373 | |
|---|
| 374 | BEGIN_OBJECT_REFLECTOR(osgViewer::StatsHandler) |
|---|
| 375 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 376 | I_BaseType(osgGA::GUIEventHandler); |
|---|
| 377 | I_Constructor0(____StatsHandler, |
|---|
| 378 | "", |
|---|
| 379 | ""); |
|---|
| 380 | I_Method1(void, setKeyEventTogglesOnScreenStats, IN, int, key, |
|---|
| 381 | Properties::NON_VIRTUAL, |
|---|
| 382 | __void__setKeyEventTogglesOnScreenStats__int, |
|---|
| 383 | "", |
|---|
| 384 | ""); |
|---|
| 385 | I_Method0(int, getKeyEventTogglesOnScreenStats, |
|---|
| 386 | Properties::NON_VIRTUAL, |
|---|
| 387 | __int__getKeyEventTogglesOnScreenStats, |
|---|
| 388 | "", |
|---|
| 389 | ""); |
|---|
| 390 | I_Method1(void, setKeyEventPrintsOutStats, IN, int, key, |
|---|
| 391 | Properties::NON_VIRTUAL, |
|---|
| 392 | __void__setKeyEventPrintsOutStats__int, |
|---|
| 393 | "", |
|---|
| 394 | ""); |
|---|
| 395 | I_Method0(int, getKeyEventPrintsOutStats, |
|---|
| 396 | Properties::NON_VIRTUAL, |
|---|
| 397 | __int__getKeyEventPrintsOutStats, |
|---|
| 398 | "", |
|---|
| 399 | ""); |
|---|
| 400 | I_Method0(double, getBlockMultiplier, |
|---|
| 401 | Properties::NON_VIRTUAL, |
|---|
| 402 | __double__getBlockMultiplier, |
|---|
| 403 | "", |
|---|
| 404 | ""); |
|---|
| 405 | I_Method0(void, reset, |
|---|
| 406 | Properties::NON_VIRTUAL, |
|---|
| 407 | __void__reset, |
|---|
| 408 | "", |
|---|
| 409 | ""); |
|---|
| 410 | I_Method0(osg::Camera *, getCamera, |
|---|
| 411 | Properties::NON_VIRTUAL, |
|---|
| 412 | __osg_Camera_P1__getCamera, |
|---|
| 413 | "", |
|---|
| 414 | ""); |
|---|
| 415 | I_Method0(const osg::Camera *, getCamera, |
|---|
| 416 | Properties::NON_VIRTUAL, |
|---|
| 417 | __C5_osg_Camera_P1__getCamera, |
|---|
| 418 | "", |
|---|
| 419 | ""); |
|---|
| 420 | I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, |
|---|
| 421 | Properties::VIRTUAL, |
|---|
| 422 | __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, |
|---|
| 423 | "Deprecated, Handle events, return true if handled, false otherwise. ", |
|---|
| 424 | ""); |
|---|
| 425 | I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, |
|---|
| 426 | Properties::VIRTUAL, |
|---|
| 427 | __void__getUsage__osg_ApplicationUsage_R1, |
|---|
| 428 | "Get the keyboard and mouse usage of this manipulator. ", |
|---|
| 429 | ""); |
|---|
| 430 | I_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, |
|---|
| 431 | Properties::NON_VIRTUAL, |
|---|
| 432 | Properties::NON_CONST, |
|---|
| 433 | __void__setUpHUDCamera__osgViewer_ViewerBase_P1, |
|---|
| 434 | "", |
|---|
| 435 | ""); |
|---|
| 436 | I_ProtectedMethod4(osg::Geometry *, createBackgroundRectangle, IN, const osg::Vec3 &, pos, IN, const float, width, IN, const float, height, IN, osg::Vec4 &, color, |
|---|
| 437 | Properties::NON_VIRTUAL, |
|---|
| 438 | Properties::NON_CONST, |
|---|
| 439 | __osg_Geometry_P1__createBackgroundRectangle__C5_osg_Vec3_R1__C5_float__C5_float__osg_Vec4_R1, |
|---|
| 440 | "", |
|---|
| 441 | ""); |
|---|
| 442 | I_ProtectedMethod4(osg::Geometry *, createGeometry, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, |
|---|
| 443 | Properties::NON_VIRTUAL, |
|---|
| 444 | Properties::NON_CONST, |
|---|
| 445 | __osg_Geometry_P1__createGeometry__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, |
|---|
| 446 | "", |
|---|
| 447 | ""); |
|---|
| 448 | I_ProtectedMethod4(osg::Geometry *, createFrameMarkers, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, |
|---|
| 449 | Properties::NON_VIRTUAL, |
|---|
| 450 | Properties::NON_CONST, |
|---|
| 451 | __osg_Geometry_P1__createFrameMarkers__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, |
|---|
| 452 | "", |
|---|
| 453 | ""); |
|---|
| 454 | I_ProtectedMethod4(osg::Geometry *, createTick, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numTicks, |
|---|
| 455 | Properties::NON_VIRTUAL, |
|---|
| 456 | Properties::NON_CONST, |
|---|
| 457 | __osg_Geometry_P1__createTick__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, |
|---|
| 458 | "", |
|---|
| 459 | ""); |
|---|
| 460 | I_ProtectedMethod7(osg::Node *, createCameraTimeStats, IN, const std::string &, font, IN, osg::Vec3 &, pos, IN, float, startBlocks, IN, bool, acquireGPUStats, IN, float, characterSize, IN, osg::Stats *, viewerStats, IN, osg::Camera *, camera, |
|---|
| 461 | Properties::NON_VIRTUAL, |
|---|
| 462 | Properties::NON_CONST, |
|---|
| 463 | __osg_Node_P1__createCameraTimeStats__C5_std_string_R1__osg_Vec3_R1__float__bool__float__osg_Stats_P1__osg_Camera_P1, |
|---|
| 464 | "", |
|---|
| 465 | ""); |
|---|
| 466 | I_ProtectedMethod1(void, setUpScene, IN, osgViewer::ViewerBase *, viewer, |
|---|
| 467 | Properties::NON_VIRTUAL, |
|---|
| 468 | Properties::NON_CONST, |
|---|
| 469 | __void__setUpScene__osgViewer_ViewerBase_P1, |
|---|
| 470 | "", |
|---|
| 471 | ""); |
|---|
| 472 | I_ProtectedMethod0(void, updateThreadingModelText, |
|---|
| 473 | Properties::NON_VIRTUAL, |
|---|
| 474 | Properties::NON_CONST, |
|---|
| 475 | __void__updateThreadingModelText, |
|---|
| 476 | "", |
|---|
| 477 | ""); |
|---|
| 478 | I_SimpleProperty(double, BlockMultiplier, |
|---|
| 479 | __double__getBlockMultiplier, |
|---|
| 480 | 0); |
|---|
| 481 | I_SimpleProperty(osg::Camera *, Camera, |
|---|
| 482 | __osg_Camera_P1__getCamera, |
|---|
| 483 | 0); |
|---|
| 484 | I_SimpleProperty(int, KeyEventPrintsOutStats, |
|---|
| 485 | __int__getKeyEventPrintsOutStats, |
|---|
| 486 | __void__setKeyEventPrintsOutStats__int); |
|---|
| 487 | I_SimpleProperty(int, KeyEventTogglesOnScreenStats, |
|---|
| 488 | __int__getKeyEventTogglesOnScreenStats, |
|---|
| 489 | __void__setKeyEventTogglesOnScreenStats__int); |
|---|
| 490 | END_REFLECTOR |
|---|
| 491 | |
|---|
| 492 | BEGIN_OBJECT_REFLECTOR(osgViewer::ThreadingHandler) |
|---|
| 493 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 494 | I_BaseType(osgGA::GUIEventHandler); |
|---|
| 495 | I_Constructor0(____ThreadingHandler, |
|---|
| 496 | "", |
|---|
| 497 | ""); |
|---|
| 498 | I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, |
|---|
| 499 | Properties::VIRTUAL, |
|---|
| 500 | __void__getUsage__osg_ApplicationUsage_R1, |
|---|
| 501 | "Get the keyboard and mouse usage of this manipulator. ", |
|---|
| 502 | ""); |
|---|
| 503 | I_Method1(void, setKeyEventChangeThreadingModel, IN, int, key, |
|---|
| 504 | Properties::NON_VIRTUAL, |
|---|
| 505 | __void__setKeyEventChangeThreadingModel__int, |
|---|
| 506 | "", |
|---|
| 507 | ""); |
|---|
| 508 | I_Method0(int, getKeyEventChangeThreadingModel, |
|---|
| 509 | Properties::NON_VIRTUAL, |
|---|
| 510 | __int__getKeyEventChangeThreadingModel, |
|---|
| 511 | "", |
|---|
| 512 | ""); |
|---|
| 513 | I_Method1(void, setChangeThreadingModel, IN, bool, flag, |
|---|
| 514 | Properties::NON_VIRTUAL, |
|---|
| 515 | __void__setChangeThreadingModel__bool, |
|---|
| 516 | "", |
|---|
| 517 | ""); |
|---|
| 518 | I_Method0(bool, getChangeThreadingModel, |
|---|
| 519 | Properties::NON_VIRTUAL, |
|---|
| 520 | __bool__getChangeThreadingModel, |
|---|
| 521 | "", |
|---|
| 522 | ""); |
|---|
| 523 | I_Method1(void, setKeyEventChangeEndBarrierPosition, IN, int, key, |
|---|
| 524 | Properties::NON_VIRTUAL, |
|---|
| 525 | __void__setKeyEventChangeEndBarrierPosition__int, |
|---|
| 526 | "", |
|---|
| 527 | ""); |
|---|
| 528 | I_Method0(int, getKeyEventChangeEndBarrierPosition, |
|---|
| 529 | Properties::NON_VIRTUAL, |
|---|
| 530 | __int__getKeyEventChangeEndBarrierPosition, |
|---|
| 531 | "", |
|---|
| 532 | ""); |
|---|
| 533 | I_Method1(void, setChangeEndBarrierPosition, IN, bool, flag, |
|---|
| 534 | Properties::NON_VIRTUAL, |
|---|
| 535 | __void__setChangeEndBarrierPosition__bool, |
|---|
| 536 | "", |
|---|
| 537 | ""); |
|---|
| 538 | I_Method0(bool, getChangeEndBarrierPosition, |
|---|
| 539 | Properties::NON_VIRTUAL, |
|---|
| 540 | __bool__getChangeEndBarrierPosition, |
|---|
| 541 | "", |
|---|
| 542 | ""); |
|---|
| 543 | I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, |
|---|
| 544 | Properties::VIRTUAL, |
|---|
| 545 | __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, |
|---|
| 546 | "Deprecated, Handle events, return true if handled, false otherwise. ", |
|---|
| 547 | ""); |
|---|
| 548 | I_SimpleProperty(bool, ChangeEndBarrierPosition, |
|---|
| 549 | __bool__getChangeEndBarrierPosition, |
|---|
| 550 | __void__setChangeEndBarrierPosition__bool); |
|---|
| 551 | I_SimpleProperty(bool, ChangeThreadingModel, |
|---|
| 552 | __bool__getChangeThreadingModel, |
|---|
| 553 | __void__setChangeThreadingModel__bool); |
|---|
| 554 | I_SimpleProperty(int, KeyEventChangeEndBarrierPosition, |
|---|
| 555 | __int__getKeyEventChangeEndBarrierPosition, |
|---|
| 556 | __void__setKeyEventChangeEndBarrierPosition__int); |
|---|
| 557 | I_SimpleProperty(int, KeyEventChangeThreadingModel, |
|---|
| 558 | __int__getKeyEventChangeThreadingModel, |
|---|
| 559 | __void__setKeyEventChangeThreadingModel__int); |
|---|
| 560 | END_REFLECTOR |
|---|
| 561 | |
|---|
| 562 | BEGIN_OBJECT_REFLECTOR(osgViewer::WindowSizeHandler) |
|---|
| 563 | I_DeclaringFile("osgViewer/ViewerEventHandlers"); |
|---|
| 564 | I_BaseType(osgGA::GUIEventHandler); |
|---|
| 565 | I_Constructor0(____WindowSizeHandler, |
|---|
| 566 | "", |
|---|
| 567 | ""); |
|---|
| 568 | I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, |
|---|
| 569 | Properties::VIRTUAL, |
|---|
| 570 | __void__getUsage__osg_ApplicationUsage_R1, |
|---|
| 571 | "Get the keyboard and mouse usage of this manipulator. ", |
|---|
| 572 | ""); |
|---|
| 573 | I_Method1(void, setKeyEventToggleFullscreen, IN, int, key, |
|---|
| 574 | Properties::NON_VIRTUAL, |
|---|
| 575 | __void__setKeyEventToggleFullscreen__int, |
|---|
| 576 | "", |
|---|
| 577 | ""); |
|---|
| 578 | I_Method0(int, getKeyEventToggleFullscreen, |
|---|
| 579 | Properties::NON_VIRTUAL, |
|---|
| 580 | __int__getKeyEventToggleFullscreen, |
|---|
| 581 | "", |
|---|
| 582 | ""); |
|---|
| 583 | I_Method1(void, setToggleFullscreen, IN, bool, flag, |
|---|
| 584 | Properties::NON_VIRTUAL, |
|---|
| 585 | __void__setToggleFullscreen__bool, |
|---|
| 586 | "", |
|---|
| 587 | ""); |
|---|
| 588 | I_Method0(bool, getToggleFullscreen, |
|---|
| 589 | Properties::NON_VIRTUAL, |
|---|
| 590 | __bool__getToggleFullscreen, |
|---|
| 591 | "", |
|---|
| 592 | ""); |
|---|
| 593 | I_Method1(void, setKeyEventWindowedResolutionUp, IN, int, key, |
|---|
| 594 | Properties::NON_VIRTUAL, |
|---|
| 595 | __void__setKeyEventWindowedResolutionUp__int, |
|---|
| 596 | "", |
|---|
| 597 | ""); |
|---|
| 598 | I_Method0(int, getKeyEventWindowedResolutionUp, |
|---|
| 599 | Properties::NON_VIRTUAL, |
|---|
| 600 | __int__getKeyEventWindowedResolutionUp, |
|---|
| 601 | "", |
|---|
| 602 | ""); |
|---|
| 603 | I_Method1(void, setKeyEventWindowedResolutionDown, IN, int, key, |
|---|
| 604 | Properties::NON_VIRTUAL, |
|---|
| 605 | __void__setKeyEventWindowedResolutionDown__int, |
|---|
| 606 | "", |
|---|
| 607 | ""); |
|---|
| 608 | I_Method0(int, getKeyEventWindowedResolutionDown, |
|---|
| 609 | Properties::NON_VIRTUAL, |
|---|
| 610 | __int__getKeyEventWindowedResolutionDown, |
|---|
| 611 | "", |
|---|
| 612 | ""); |
|---|
| 613 | I_Method1(void, setChangeWindowedResolution, IN, bool, flag, |
|---|
| 614 | Properties::NON_VIRTUAL, |
|---|
| 615 | __void__setChangeWindowedResolution__bool, |
|---|
| 616 | "", |
|---|
| 617 | ""); |
|---|
| 618 | I_Method0(bool, getChangeWindowedResolution, |
|---|
| 619 | Properties::NON_VIRTUAL, |
|---|
| 620 | __bool__getChangeWindowedResolution, |
|---|
| 621 | "", |
|---|
| 622 | ""); |
|---|
| 623 | I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, |
|---|
| 624 | Properties::VIRTUAL, |
|---|
| 625 | __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, |
|---|
| 626 | "Deprecated, Handle events, return true if handled, false otherwise. ", |
|---|
| 627 | ""); |
|---|
| 628 | I_ProtectedMethod1(void, toggleFullscreen, IN, osgViewer::GraphicsWindow *, window, |
|---|
| 629 | Properties::NON_VIRTUAL, |
|---|
| 630 | Properties::NON_CONST, |
|---|
| 631 | __void__toggleFullscreen__osgViewer_GraphicsWindow_P1, |
|---|
| 632 | "", |
|---|
| 633 | ""); |
|---|
| 634 | I_ProtectedMethod2(void, changeWindowedResolution, IN, osgViewer::GraphicsWindow *, window, IN, bool, increase, |
|---|
| 635 | Properties::NON_VIRTUAL, |
|---|
| 636 | Properties::NON_CONST, |
|---|
| 637 | __void__changeWindowedResolution__osgViewer_GraphicsWindow_P1__bool, |
|---|
| 638 | "", |
|---|
| 639 | ""); |
|---|
| 640 | I_ProtectedMethod4(unsigned int, getNearestResolution, IN, int, screenWidth, IN, int, screenHeight, IN, int, width, IN, int, height, |
|---|
| 641 | Properties::NON_VIRTUAL, |
|---|
| 642 | Properties::CONST, |
|---|
| 643 | __unsigned_int__getNearestResolution__int__int__int__int, |
|---|
| 644 | "", |
|---|
| 645 | ""); |
|---|
| 646 | I_SimpleProperty(bool, ChangeWindowedResolution, |
|---|
| 647 | __bool__getChangeWindowedResolution, |
|---|
| 648 | __void__setChangeWindowedResolution__bool); |
|---|
| 649 | I_SimpleProperty(int, KeyEventToggleFullscreen, |
|---|
| 650 | __int__getKeyEventToggleFullscreen, |
|---|
| 651 | __void__setKeyEventToggleFullscreen__int); |
|---|
| 652 | I_SimpleProperty(int, KeyEventWindowedResolutionDown, |
|---|
| 653 | __int__getKeyEventWindowedResolutionDown, |
|---|
| 654 | __void__setKeyEventWindowedResolutionDown__int); |
|---|
| 655 | I_SimpleProperty(int, KeyEventWindowedResolutionUp, |
|---|
| 656 | __int__getKeyEventWindowedResolutionUp, |
|---|
| 657 | __void__setKeyEventWindowedResolutionUp__int); |
|---|
| 658 | I_SimpleProperty(bool, ToggleFullscreen, |
|---|
| 659 | __bool__getToggleFullscreen, |
|---|
| 660 | __void__setToggleFullscreen__bool); |
|---|
| 661 | END_REFLECTOR |
|---|