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