| 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/ArgumentParser> |
|---|
| 15 | #include <osg/Camera> |
|---|
| 16 | #include <osg/CopyOp> |
|---|
| 17 | #include <osg/FrameStamp> |
|---|
| 18 | #include <osg/Node> |
|---|
| 19 | #include <osg/Object> |
|---|
| 20 | #include <osg/Timer> |
|---|
| 21 | #include <osgViewer/GraphicsWindow> |
|---|
| 22 | #include <osgViewer/View> |
|---|
| 23 | #include <osgViewer/Viewer> |
|---|
| 24 | #include <osgViewer/ViewerBase> |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | #ifdef IN |
|---|
| 28 | #undef IN |
|---|
| 29 | #endif |
|---|
| 30 | #ifdef OUT |
|---|
| 31 | #undef OUT |
|---|
| 32 | #endif |
|---|
| 33 | |
|---|
| 34 | BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer) |
|---|
| 35 | I_DeclaringFile("osgViewer/Viewer"); |
|---|
| 36 | I_BaseType(osgViewer::ViewerBase); |
|---|
| 37 | I_BaseType(osgViewer::View); |
|---|
| 38 | I_Constructor0(____Viewer, |
|---|
| 39 | "", |
|---|
| 40 | ""); |
|---|
| 41 | I_Constructor1(IN, osg::ArgumentParser &, arguments, |
|---|
| 42 | Properties::NON_EXPLICIT, |
|---|
| 43 | ____Viewer__osg_ArgumentParser_R1, |
|---|
| 44 | "", |
|---|
| 45 | ""); |
|---|
| 46 | I_ConstructorWithDefaults2(IN, const osgViewer::Viewer &, viewer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 47 | ____Viewer__C5_osgViewer_Viewer_R1__C5_osg_CopyOp_R1, |
|---|
| 48 | "", |
|---|
| 49 | ""); |
|---|
| 50 | I_Method0(osg::Object *, cloneType, |
|---|
| 51 | Properties::VIRTUAL, |
|---|
| 52 | __osg_Object_P1__cloneType, |
|---|
| 53 | "Clone the type of an object, with Object* return type. ", |
|---|
| 54 | "Must be defined by derived classes. "); |
|---|
| 55 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, |
|---|
| 56 | Properties::VIRTUAL, |
|---|
| 57 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 58 | "Clone an object, with Object* return type. ", |
|---|
| 59 | "Must be defined by derived classes. "); |
|---|
| 60 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 61 | Properties::VIRTUAL, |
|---|
| 62 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 63 | "", |
|---|
| 64 | ""); |
|---|
| 65 | I_Method0(const char *, libraryName, |
|---|
| 66 | Properties::VIRTUAL, |
|---|
| 67 | __C5_char_P1__libraryName, |
|---|
| 68 | "return the name of the object's library. ", |
|---|
| 69 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 70 | I_Method0(const char *, className, |
|---|
| 71 | Properties::VIRTUAL, |
|---|
| 72 | __C5_char_P1__className, |
|---|
| 73 | "return the name of the object's class type. ", |
|---|
| 74 | "Must be defined by derived classes. "); |
|---|
| 75 | I_Method1(void, take, IN, osgViewer::View &, rhs, |
|---|
| 76 | Properties::VIRTUAL, |
|---|
| 77 | __void__take__View_R1, |
|---|
| 78 | "Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty. ", |
|---|
| 79 | ""); |
|---|
| 80 | I_Method1(bool, readConfiguration, IN, const std::string &, filename, |
|---|
| 81 | Properties::VIRTUAL, |
|---|
| 82 | __bool__readConfiguration__C5_std_string_R1, |
|---|
| 83 | "read the viewer configuration from a configuration file. ", |
|---|
| 84 | ""); |
|---|
| 85 | I_Method0(bool, isRealized, |
|---|
| 86 | Properties::VIRTUAL, |
|---|
| 87 | __bool__isRealized, |
|---|
| 88 | "Get whether at least of one of this viewers windows are realized. ", |
|---|
| 89 | ""); |
|---|
| 90 | I_Method0(void, realize, |
|---|
| 91 | Properties::VIRTUAL, |
|---|
| 92 | __void__realize, |
|---|
| 93 | "set up windows and associated threads. ", |
|---|
| 94 | ""); |
|---|
| 95 | I_Method1(void, setStartTick, IN, osg::Timer_t, tick, |
|---|
| 96 | Properties::VIRTUAL, |
|---|
| 97 | __void__setStartTick__osg_Timer_t, |
|---|
| 98 | "", |
|---|
| 99 | ""); |
|---|
| 100 | I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, |
|---|
| 101 | Properties::NON_VIRTUAL, |
|---|
| 102 | __void__setReferenceTime__double, |
|---|
| 103 | "", |
|---|
| 104 | ""); |
|---|
| 105 | I_Method1(void, setSceneData, IN, osg::Node *, node, |
|---|
| 106 | Properties::VIRTUAL, |
|---|
| 107 | __void__setSceneData__osg_Node_P1, |
|---|
| 108 | "Set the sene graph data that viewer with view. ", |
|---|
| 109 | ""); |
|---|
| 110 | I_Method4(osgViewer::GraphicsWindowEmbedded *, setUpViewerAsEmbeddedInWindow, IN, int, x, IN, int, y, IN, int, width, IN, int, height, |
|---|
| 111 | Properties::VIRTUAL, |
|---|
| 112 | __GraphicsWindowEmbedded_P1__setUpViewerAsEmbeddedInWindow__int__int__int__int, |
|---|
| 113 | "Convenience method for setting up the viewer so it can be used embedded in an external managed window. ", |
|---|
| 114 | "Returns the GraphicsWindowEmbedded that can be used by applications to pass in events to the viewer. "); |
|---|
| 115 | I_Method0(double, elapsedTime, |
|---|
| 116 | Properties::VIRTUAL, |
|---|
| 117 | __double__elapsedTime, |
|---|
| 118 | "", |
|---|
| 119 | ""); |
|---|
| 120 | I_Method0(osg::FrameStamp *, getViewerFrameStamp, |
|---|
| 121 | Properties::VIRTUAL, |
|---|
| 122 | __osg_FrameStamp_P1__getViewerFrameStamp, |
|---|
| 123 | "", |
|---|
| 124 | ""); |
|---|
| 125 | I_Method0(int, run, |
|---|
| 126 | Properties::VIRTUAL, |
|---|
| 127 | __int__run, |
|---|
| 128 | "Execute a main frame loop. ", |
|---|
| 129 | "Equivalent to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned. "); |
|---|
| 130 | I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, |
|---|
| 131 | Properties::VIRTUAL, |
|---|
| 132 | __void__advance__double, |
|---|
| 133 | "", |
|---|
| 134 | ""); |
|---|
| 135 | I_Method0(void, eventTraversal, |
|---|
| 136 | Properties::VIRTUAL, |
|---|
| 137 | __void__eventTraversal, |
|---|
| 138 | "", |
|---|
| 139 | ""); |
|---|
| 140 | I_Method0(void, updateTraversal, |
|---|
| 141 | Properties::VIRTUAL, |
|---|
| 142 | __void__updateTraversal, |
|---|
| 143 | "", |
|---|
| 144 | ""); |
|---|
| 145 | I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, |
|---|
| 146 | Properties::NON_VIRTUAL, |
|---|
| 147 | __void__setCameraWithFocus__osg_Camera_P1, |
|---|
| 148 | "", |
|---|
| 149 | ""); |
|---|
| 150 | I_Method0(osg::Camera *, getCameraWithFocus, |
|---|
| 151 | Properties::NON_VIRTUAL, |
|---|
| 152 | __osg_Camera_P1__getCameraWithFocus, |
|---|
| 153 | "", |
|---|
| 154 | ""); |
|---|
| 155 | I_Method0(const osg::Camera *, getCameraWithFocus, |
|---|
| 156 | Properties::NON_VIRTUAL, |
|---|
| 157 | __C5_osg_Camera_P1__getCameraWithFocus, |
|---|
| 158 | "", |
|---|
| 159 | ""); |
|---|
| 160 | I_MethodWithDefaults2(void, getCameras, IN, osgViewer::ViewerBase::Cameras &, cameras, , IN, bool, onlyActive, true, |
|---|
| 161 | Properties::VIRTUAL, |
|---|
| 162 | __void__getCameras__Cameras_R1__bool, |
|---|
| 163 | "", |
|---|
| 164 | ""); |
|---|
| 165 | I_MethodWithDefaults2(void, getContexts, IN, osgViewer::ViewerBase::Contexts &, contexts, , IN, bool, onlyValid, true, |
|---|
| 166 | Properties::VIRTUAL, |
|---|
| 167 | __void__getContexts__Contexts_R1__bool, |
|---|
| 168 | "", |
|---|
| 169 | ""); |
|---|
| 170 | I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::ViewerBase::Threads &, threads, , IN, bool, onlyActive, true, |
|---|
| 171 | Properties::VIRTUAL, |
|---|
| 172 | __void__getAllThreads__Threads_R1__bool, |
|---|
| 173 | "", |
|---|
| 174 | ""); |
|---|
| 175 | I_MethodWithDefaults2(void, getOperationThreads, IN, osgViewer::ViewerBase::OperationThreads &, threads, , IN, bool, onlyActive, true, |
|---|
| 176 | Properties::VIRTUAL, |
|---|
| 177 | __void__getOperationThreads__OperationThreads_R1__bool, |
|---|
| 178 | "", |
|---|
| 179 | ""); |
|---|
| 180 | I_MethodWithDefaults2(void, getScenes, IN, osgViewer::ViewerBase::Scenes &, scenes, , IN, bool, onlyValid, true, |
|---|
| 181 | Properties::VIRTUAL, |
|---|
| 182 | __void__getScenes__Scenes_R1__bool, |
|---|
| 183 | "", |
|---|
| 184 | ""); |
|---|
| 185 | I_MethodWithDefaults2(void, getViews, IN, osgViewer::ViewerBase::Views &, views, , IN, bool, onlyValid, true, |
|---|
| 186 | Properties::VIRTUAL, |
|---|
| 187 | __void__getViews__Views_R1__bool, |
|---|
| 188 | "", |
|---|
| 189 | ""); |
|---|
| 190 | I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, |
|---|
| 191 | Properties::VIRTUAL, |
|---|
| 192 | __void__getUsage__osg_ApplicationUsage_R1, |
|---|
| 193 | "Get the keyboard and mouse usage of this viewer. ", |
|---|
| 194 | ""); |
|---|
| 195 | I_ProtectedMethod0(void, constructorInit, |
|---|
| 196 | Properties::NON_VIRTUAL, |
|---|
| 197 | Properties::NON_CONST, |
|---|
| 198 | __void__constructorInit, |
|---|
| 199 | "", |
|---|
| 200 | ""); |
|---|
| 201 | I_ProtectedMethod0(void, viewerInit, |
|---|
| 202 | Properties::VIRTUAL, |
|---|
| 203 | Properties::NON_CONST, |
|---|
| 204 | __void__viewerInit, |
|---|
| 205 | "", |
|---|
| 206 | ""); |
|---|
| 207 | I_SimpleProperty(osg::Camera *, CameraWithFocus, |
|---|
| 208 | __osg_Camera_P1__getCameraWithFocus, |
|---|
| 209 | __void__setCameraWithFocus__osg_Camera_P1); |
|---|
| 210 | I_SimpleProperty(double, ReferenceTime, |
|---|
| 211 | 0, |
|---|
| 212 | __void__setReferenceTime__double); |
|---|
| 213 | I_SimpleProperty(osg::Node *, SceneData, |
|---|
| 214 | 0, |
|---|
| 215 | __void__setSceneData__osg_Node_P1); |
|---|
| 216 | I_SimpleProperty(osg::Timer_t, StartTick, |
|---|
| 217 | 0, |
|---|
| 218 | __void__setStartTick__osg_Timer_t); |
|---|
| 219 | I_SimpleProperty(osg::FrameStamp *, ViewerFrameStamp, |
|---|
| 220 | __osg_FrameStamp_P1__getViewerFrameStamp, |
|---|
| 221 | 0); |
|---|
| 222 | END_REFLECTOR |
|---|