root/OpenSceneGraph/trunk/src/osgWrappers/osgViewer/ViewerBase.cpp @ 8895

Revision 8895, 18.3 kB (checked in by robert, 6 years ago)

Updated wrappers

Line 
1// ***************************************************************************
2//
3//   Generated automatically by genwrapper.
4//   Please DO NOT EDIT this file!
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/FrameStamp>
15#include <osg/OperationThread>
16#include <osg/Stats>
17#include <osgGA/EventVisitor>
18#include <osgUtil/UpdateVisitor>
19#include <osgViewer/ViewerBase>
20
21// Must undefine IN and OUT macros defined in Windows headers
22#ifdef IN
23#undef IN
24#endif
25#ifdef OUT
26#undef OUT
27#endif
28
29#include <osgViewer/View>
30       
31TYPE_NAME_ALIAS(std::vector< osg::Camera * >, osgViewer::ViewerBase::Cameras)
32
33TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osgViewer::ViewerBase::Contexts)
34
35TYPE_NAME_ALIAS(std::vector< osgViewer::GraphicsWindow * >, osgViewer::ViewerBase::Windows)
36
37TYPE_NAME_ALIAS(std::vector< OpenThreads::Thread * >, osgViewer::ViewerBase::Threads)
38
39TYPE_NAME_ALIAS(std::vector< osg::OperationThread * >, osgViewer::ViewerBase::OperationThreads)
40
41TYPE_NAME_ALIAS(std::vector< osgViewer::Scene * >, osgViewer::ViewerBase::Scenes)
42
43TYPE_NAME_ALIAS(std::vector< osgViewer::View * >, osgViewer::ViewerBase::Views)
44
45BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::ThreadingModel)
46        I_DeclaringFile("osgViewer/ViewerBase");
47        I_EnumLabel(osgViewer::ViewerBase::SingleThreaded);
48        I_EnumLabel(osgViewer::ViewerBase::CullDrawThreadPerContext);
49        I_EnumLabel(osgViewer::ViewerBase::ThreadPerContext);
50        I_EnumLabel(osgViewer::ViewerBase::DrawThreadPerContext);
51        I_EnumLabel(osgViewer::ViewerBase::CullThreadPerCameraDrawThreadPerContext);
52        I_EnumLabel(osgViewer::ViewerBase::ThreadPerCamera);
53        I_EnumLabel(osgViewer::ViewerBase::AutomaticSelection);
54END_REFLECTOR
55
56BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::BarrierPosition)
57        I_DeclaringFile("osgViewer/ViewerBase");
58        I_EnumLabel(osgViewer::ViewerBase::BeforeSwapBuffers);
59        I_EnumLabel(osgViewer::ViewerBase::AfterSwapBuffers);
60END_REFLECTOR
61
62BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ViewerBase)
63        I_DeclaringFile("osgViewer/ViewerBase");
64        I_VirtualBaseType(osg::Object);
65        I_Constructor0(____ViewerBase,
66                       "",
67                       "");
68        I_Constructor1(IN, const osgViewer::ViewerBase &, vb,
69                       Properties::NON_EXPLICIT,
70                       ____ViewerBase__C5_ViewerBase_R1,
71                       "",
72                       "");
73        I_Method1(void, setStats, IN, osg::Stats *, stats,
74                  Properties::NON_VIRTUAL,
75                  __void__setStats__osg_Stats_P1,
76                  "Set the Stats object used for collect various frame related timing and scene graph stats. ",
77                  "");
78        I_Method0(osg::Stats *, getStats,
79                  Properties::NON_VIRTUAL,
80                  __osg_Stats_P1__getStats,
81                  "Get the Viewers Stats object. ",
82                  "");
83        I_Method0(const osg::Stats *, getStats,
84                  Properties::NON_VIRTUAL,
85                  __C5_osg_Stats_P1__getStats,
86                  "Get the Viewers Stats object. ",
87                  "");
88        I_Method1(bool, readConfiguration, IN, const std::string &, filename,
89                  Properties::PURE_VIRTUAL,
90                  __bool__readConfiguration__C5_std_string_R1,
91                  "read the viewer configuration from a configuration file. ",
92                  "");
93        I_Method0(bool, isRealized,
94                  Properties::PURE_VIRTUAL,
95                  __bool__isRealized,
96                  "Get whether at least of one of this viewers windows are realized. ",
97                  "");
98        I_Method0(void, realize,
99                  Properties::PURE_VIRTUAL,
100                  __void__realize,
101                  "set up windows and associated threads. ",
102                  "");
103        I_Method1(void, setThreadingModel, IN, osgViewer::ViewerBase::ThreadingModel, threadingModel,
104                  Properties::VIRTUAL,
105                  __void__setThreadingModel__ThreadingModel,
106                  "Set the threading model the rendering traversals will use. ",
107                  "");
108        I_Method0(osgViewer::ViewerBase::ThreadingModel, getThreadingModel,
109                  Properties::NON_VIRTUAL,
110                  __ThreadingModel__getThreadingModel,
111                  "Get the threading model the rendering traversals will use. ",
112                  "");
113        I_Method0(osgViewer::ViewerBase::ThreadingModel, suggestBestThreadingModel,
114                  Properties::VIRTUAL,
115                  __ThreadingModel__suggestBestThreadingModel,
116                  "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ",
117                  "");
118        I_Method0(void, setUpThreading,
119                  Properties::VIRTUAL,
120                  __void__setUpThreading,
121                  "Set up the threading and processor affinity as per the viewers threading model. ",
122                  "");
123        I_Method0(bool, areThreadsRunning,
124                  Properties::NON_VIRTUAL,
125                  __bool__areThreadsRunning,
126                  "Return true if viewer threads are running. ",
127                  "");
128        I_Method0(void, stopThreading,
129                  Properties::VIRTUAL,
130                  __void__stopThreading,
131                  "Stop any threads begin run by viewer. ",
132                  "");
133        I_Method0(void, startThreading,
134                  Properties::VIRTUAL,
135                  __void__startThreading,
136                  "Start any threads required by the viewer. ",
137                  "");
138        I_Method1(void, setEndBarrierPosition, IN, osgViewer::ViewerBase::BarrierPosition, bp,
139                  Properties::NON_VIRTUAL,
140                  __void__setEndBarrierPosition__BarrierPosition,
141                  "Set the position of the end barrier. ",
142                  "AfterSwapBuffers may result in slightly higher framerates, but may lead to inconsistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. ");
143        I_Method0(osgViewer::ViewerBase::BarrierPosition, getEndBarrierPosition,
144                  Properties::NON_VIRTUAL,
145                  __BarrierPosition__getEndBarrierPosition,
146                  "Get the end barrier position. ",
147                  "");
148        I_Method1(void, setDone, IN, bool, done,
149                  Properties::NON_VIRTUAL,
150                  __void__setDone__bool,
151                  "Set the done flag to signal the viewer's work is done and should exit the frame loop. ",
152                  "");
153        I_Method0(bool, done,
154                  Properties::NON_VIRTUAL,
155                  __bool__done,
156                  "Return true if viewer's work is done and should exit the frame loop. ",
157                  "");
158        I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, eventVisitor,
159                  Properties::NON_VIRTUAL,
160                  __void__setEventVisitor__osgGA_EventVisitor_P1,
161                  "Set the EventVisitor. ",
162                  "");
163        I_Method0(osgGA::EventVisitor *, getEventVisitor,
164                  Properties::NON_VIRTUAL,
165                  __osgGA_EventVisitor_P1__getEventVisitor,
166                  "Get the EventVisitor. ",
167                  "");
168        I_Method0(const osgGA::EventVisitor *, getEventVisitor,
169                  Properties::NON_VIRTUAL,
170                  __C5_osgGA_EventVisitor_P1__getEventVisitor,
171                  "Get the const EventVisitor. ",
172                  "");
173        I_Method1(void, setKeyEventSetsDone, IN, int, key,
174                  Properties::NON_VIRTUAL,
175                  __void__setKeyEventSetsDone__int,
176                  "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ",
177                  "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. ");
178        I_Method0(int, getKeyEventSetsDone,
179                  Properties::NON_VIRTUAL,
180                  __int__getKeyEventSetsDone,
181                  "get the key event that the viewer checks on each frame to see if the viewer's done flag. ",
182                  "");
183        I_Method1(void, setQuitEventSetsDone, IN, bool, flag,
184                  Properties::NON_VIRTUAL,
185                  __void__setQuitEventSetsDone__bool,
186                  "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ",
187                  "");
188        I_Method0(bool, getQuitEventSetsDone,
189                  Properties::NON_VIRTUAL,
190                  __bool__getQuitEventSetsDone,
191                  "",
192                  "true if the viewer respond to the QUIT_APPLICATION-event  ");
193        I_Method1(void, setReleaseContextAtEndOfFrameHint, IN, bool, hint,
194                  Properties::NON_VIRTUAL,
195                  __void__setReleaseContextAtEndOfFrameHint__bool,
196                  "Hint to tell the renderingTraversals() method whether to call relaseContext() on the last context that was made current by the thread calling renderingTraverals(). ",
197                  "Note, when running multi-threaded viewer no threads will be made current or release current. Setting this hint to false can enable the frame loop to be lazy about calling makeCurrent and releaseContext on each new frame, helping performance. However, if you frame loop is managing multiple graphics context all from the main frame thread then this hint must be left on, otherwise the wrong context could be left active, introducing errors in rendering. ");
198        I_Method0(bool, getReleaseContextAtEndOfFrameHint,
199                  Properties::NON_VIRTUAL,
200                  __bool__getReleaseContextAtEndOfFrameHint,
201                  "Hint to tell the renderingTraversals() method whether to call relaseContext(). ",
202                  "");
203        I_Method1(void, setUpdateVisitor, IN, osgUtil::UpdateVisitor *, updateVisitor,
204                  Properties::NON_VIRTUAL,
205                  __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1,
206                  "Set the UpdateVisitor. ",
207                  "");
208        I_Method0(osgUtil::UpdateVisitor *, getUpdateVisitor,
209                  Properties::NON_VIRTUAL,
210                  __osgUtil_UpdateVisitor_P1__getUpdateVisitor,
211                  "Get the UpdateVisitor. ",
212                  "");
213        I_Method0(const osgUtil::UpdateVisitor *, getUpdateVisitor,
214                  Properties::NON_VIRTUAL,
215                  __C5_osgUtil_UpdateVisitor_P1__getUpdateVisitor,
216                  "Get the const UpdateVisitor. ",
217                  "");
218        I_Method1(void, setUpdateOperations, IN, osg::OperationQueue *, operations,
219                  Properties::NON_VIRTUAL,
220                  __void__setUpdateOperations__osg_OperationQueue_P1,
221                  "Set the Update OperationQueue. ",
222                  "");
223        I_Method0(osg::OperationQueue *, getUpdateOperations,
224                  Properties::NON_VIRTUAL,
225                  __osg_OperationQueue_P1__getUpdateOperations,
226                  "Get the Update OperationQueue. ",
227                  "");
228        I_Method0(const osg::OperationQueue *, getUpdateOperations,
229                  Properties::NON_VIRTUAL,
230                  __C5_osg_OperationQueue_P1__getUpdateOperations,
231                  "Get the const Update OperationQueue. ",
232                  "");
233        I_Method1(void, addUpdateOperation, IN, osg::Operation *, operation,
234                  Properties::NON_VIRTUAL,
235                  __void__addUpdateOperation__osg_Operation_P1,
236                  "Add an update operation. ",
237                  "");
238        I_Method1(void, removeUpdateOperation, IN, osg::Operation *, operation,
239                  Properties::NON_VIRTUAL,
240                  __void__removeUpdateOperation__osg_Operation_P1,
241                  "Remove an update operation. ",
242                  "");
243        I_Method1(void, setRealizeOperation, IN, osg::Operation *, op,
244                  Properties::NON_VIRTUAL,
245                  __void__setRealizeOperation__osg_Operation_P1,
246                  "Set the graphics operation to call on realization of the viewers graphics windows. ",
247                  "");
248        I_Method0(osg::Operation *, getRealizeOperation,
249                  Properties::NON_VIRTUAL,
250                  __osg_Operation_P1__getRealizeOperation,
251                  "Get the graphics operation to call on realization of the viewers graphics windows. ",
252                  "");
253        I_Method0(void, checkWindowStatus,
254                  Properties::NON_VIRTUAL,
255                  __void__checkWindowStatus,
256                  "Check to see if windows are still open, if not set viewer done to true. ",
257                  "");
258        I_Method0(int, run,
259                  Properties::PURE_VIRTUAL,
260                  __int__run,
261                  "Execute a main frame loop. ",
262                  "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. ");
263        I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME,
264                              Properties::VIRTUAL,
265                              __void__frame__double,
266                              "Render a complete new frame. ",
267                              "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). ");
268        I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME,
269                              Properties::PURE_VIRTUAL,
270                              __void__advance__double,
271                              "",
272                              "");
273        I_Method0(void, eventTraversal,
274                  Properties::PURE_VIRTUAL,
275                  __void__eventTraversal,
276                  "",
277                  "");
278        I_Method0(void, updateTraversal,
279                  Properties::PURE_VIRTUAL,
280                  __void__updateTraversal,
281                  "",
282                  "");
283        I_Method0(void, renderingTraversals,
284                  Properties::VIRTUAL,
285                  __void__renderingTraversals,
286                  "",
287                  "");
288        I_MethodWithDefaults2(void, getCameras, IN, osgViewer::ViewerBase::Cameras &, cameras, , IN, bool, onlyActive, true,
289                              Properties::PURE_VIRTUAL,
290                              __void__getCameras__Cameras_R1__bool,
291                              "",
292                              "");
293        I_MethodWithDefaults2(void, getContexts, IN, osgViewer::ViewerBase::Contexts &, contexts, , IN, bool, onlyValid, true,
294                              Properties::PURE_VIRTUAL,
295                              __void__getContexts__Contexts_R1__bool,
296                              "",
297                              "");
298        I_MethodWithDefaults2(void, getWindows, IN, osgViewer::ViewerBase::Windows &, windows, , IN, bool, onlyValid, true,
299                              Properties::VIRTUAL,
300                              __void__getWindows__Windows_R1__bool,
301                              "",
302                              "");
303        I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::ViewerBase::Threads &, threads, , IN, bool, onlyActive, true,
304                              Properties::PURE_VIRTUAL,
305                              __void__getAllThreads__Threads_R1__bool,
306                              "",
307                              "");
308        I_MethodWithDefaults2(void, getOperationThreads, IN, osgViewer::ViewerBase::OperationThreads &, threads, , IN, bool, onlyActive, true,
309                              Properties::PURE_VIRTUAL,
310                              __void__getOperationThreads__OperationThreads_R1__bool,
311                              "",
312                              "");
313        I_MethodWithDefaults2(void, getScenes, IN, osgViewer::ViewerBase::Scenes &, scenes, , IN, bool, onlyValid, true,
314                              Properties::PURE_VIRTUAL,
315                              __void__getScenes__Scenes_R1__bool,
316                              "",
317                              "");
318        I_MethodWithDefaults2(void, getViews, IN, osgViewer::ViewerBase::Views &, views, , IN, bool, onlyValid, true,
319                              Properties::PURE_VIRTUAL,
320                              __void__getViews__Views_R1__bool,
321                              "",
322                              "");
323        I_Method0(double, elapsedTime,
324                  Properties::PURE_VIRTUAL,
325                  __double__elapsedTime,
326                  "",
327                  "");
328        I_Method0(osg::FrameStamp *, getViewerFrameStamp,
329                  Properties::PURE_VIRTUAL,
330                  __osg_FrameStamp_P1__getViewerFrameStamp,
331                  "",
332                  "");
333        I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage,
334                  Properties::PURE_VIRTUAL,
335                  __void__getUsage__osg_ApplicationUsage_R1,
336                  "Get the keyboard and mouse usage of this viewer. ",
337                  "");
338        I_ProtectedMethod1(void, makeCurrent, IN, osg::GraphicsContext *, gc,
339                           Properties::NON_VIRTUAL,
340                           Properties::NON_CONST,
341                           __void__makeCurrent__osg_GraphicsContext_P1,
342                           "",
343                           "");
344        I_ProtectedMethod0(void, releaseContext,
345                           Properties::NON_VIRTUAL,
346                           Properties::NON_CONST,
347                           __void__releaseContext,
348                           "",
349                           "");
350        I_ProtectedMethod0(void, viewerInit,
351                           Properties::PURE_VIRTUAL,
352                           Properties::NON_CONST,
353                           __void__viewerInit,
354                           "",
355                           "");
356        I_SimpleProperty(bool, Done,
357                         0,
358                         __void__setDone__bool);
359        I_SimpleProperty(osgViewer::ViewerBase::BarrierPosition, EndBarrierPosition,
360                         __BarrierPosition__getEndBarrierPosition,
361                         __void__setEndBarrierPosition__BarrierPosition);
362        I_SimpleProperty(osgGA::EventVisitor *, EventVisitor,
363                         __osgGA_EventVisitor_P1__getEventVisitor,
364                         __void__setEventVisitor__osgGA_EventVisitor_P1);
365        I_SimpleProperty(int, KeyEventSetsDone,
366                         __int__getKeyEventSetsDone,
367                         __void__setKeyEventSetsDone__int);
368        I_SimpleProperty(bool, QuitEventSetsDone,
369                         __bool__getQuitEventSetsDone,
370                         __void__setQuitEventSetsDone__bool);
371        I_SimpleProperty(osg::Operation *, RealizeOperation,
372                         __osg_Operation_P1__getRealizeOperation,
373                         __void__setRealizeOperation__osg_Operation_P1);
374        I_SimpleProperty(bool, ReleaseContextAtEndOfFrameHint,
375                         __bool__getReleaseContextAtEndOfFrameHint,
376                         __void__setReleaseContextAtEndOfFrameHint__bool);
377        I_SimpleProperty(osg::Stats *, Stats,
378                         __osg_Stats_P1__getStats,
379                         __void__setStats__osg_Stats_P1);
380        I_SimpleProperty(osgViewer::ViewerBase::ThreadingModel, ThreadingModel,
381                         __ThreadingModel__getThreadingModel,
382                         __void__setThreadingModel__ThreadingModel);
383        I_SimpleProperty(osg::OperationQueue *, UpdateOperations,
384                         __osg_OperationQueue_P1__getUpdateOperations,
385                         __void__setUpdateOperations__osg_OperationQueue_P1);
386        I_SimpleProperty(osgUtil::UpdateVisitor *, UpdateVisitor,
387                         __osgUtil_UpdateVisitor_P1__getUpdateVisitor,
388                         __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1);
389        I_SimpleProperty(osg::FrameStamp *, ViewerFrameStamp,
390                         __osg_FrameStamp_P1__getViewerFrameStamp,
391                         0);
392END_REFLECTOR
393
394STD_VECTOR_REFLECTOR(std::vector< OpenThreads::Thread * >)
395
396STD_VECTOR_REFLECTOR(std::vector< osg::Camera * >)
397
398STD_VECTOR_REFLECTOR(std::vector< osg::OperationThread * >)
399
400STD_VECTOR_REFLECTOR(std::vector< osgViewer::GraphicsWindow * >)
401
402STD_VECTOR_REFLECTOR(std::vector< osgViewer::Scene * >)
403
404STD_VECTOR_REFLECTOR(std::vector< osgViewer::View * >)
Note: See TracBrowser for help on using the browser.