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