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