📄 viewerbase.cpp
字号:
// ***************************************************************************//// Generated automatically by genwrapper.// Please DO NOT EDIT this file!//// ***************************************************************************#include <osgIntrospection/ReflectionMacros>#include <osgIntrospection/TypedMethodInfo>#include <osgIntrospection/StaticMethodInfo>#include <osgIntrospection/Attributes>#include <osg/ApplicationUsage>#include <osg/FrameStamp>#include <osg/OperationThread>#include <osg/Stats>#include <osgGA/EventVisitor>#include <osgUtil/UpdateVisitor>#include <osgViewer/ViewerBase>// Must undefine IN and OUT macros defined in Windows headers#ifdef IN#undef IN#endif#ifdef OUT#undef OUT#endif#include <osgViewer/View> TYPE_NAME_ALIAS(std::vector< osg::Camera * >, osgViewer::ViewerBase::Cameras)TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osgViewer::ViewerBase::Contexts)TYPE_NAME_ALIAS(std::vector< osgViewer::GraphicsWindow * >, osgViewer::ViewerBase::Windows)TYPE_NAME_ALIAS(std::vector< OpenThreads::Thread * >, osgViewer::ViewerBase::Threads)TYPE_NAME_ALIAS(std::vector< osg::OperationThread * >, osgViewer::ViewerBase::OperationThreads)TYPE_NAME_ALIAS(std::vector< osgViewer::Scene * >, osgViewer::ViewerBase::Scenes)TYPE_NAME_ALIAS(std::vector< osgViewer::View * >, osgViewer::ViewerBase::Views)BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::ThreadingModel) I_DeclaringFile("osgViewer/ViewerBase"); I_EnumLabel(osgViewer::ViewerBase::SingleThreaded); I_EnumLabel(osgViewer::ViewerBase::CullDrawThreadPerContext); I_EnumLabel(osgViewer::ViewerBase::ThreadPerContext); I_EnumLabel(osgViewer::ViewerBase::DrawThreadPerContext); I_EnumLabel(osgViewer::ViewerBase::CullThreadPerCameraDrawThreadPerContext); I_EnumLabel(osgViewer::ViewerBase::ThreadPerCamera); I_EnumLabel(osgViewer::ViewerBase::AutomaticSelection);END_REFLECTORBEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::BarrierPosition) I_DeclaringFile("osgViewer/ViewerBase"); I_EnumLabel(osgViewer::ViewerBase::BeforeSwapBuffers); I_EnumLabel(osgViewer::ViewerBase::AfterSwapBuffers);END_REFLECTORBEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ViewerBase) I_DeclaringFile("osgViewer/ViewerBase"); I_VirtualBaseType(osg::Object); I_Constructor0(____ViewerBase, "", ""); I_Constructor1(IN, const osgViewer::ViewerBase &, vb, Properties::NON_EXPLICIT, ____ViewerBase__C5_ViewerBase_R1, "", ""); I_Method1(void, setStats, IN, osg::Stats *, stats, Properties::NON_VIRTUAL, __void__setStats__osg_Stats_P1, "Set the Stats object used for collect various frame related timing and scene graph stats. ", ""); I_Method0(osg::Stats *, getStats, Properties::NON_VIRTUAL, __osg_Stats_P1__getStats, "Get the Viewers Stats object. ", ""); I_Method0(const osg::Stats *, getStats, Properties::NON_VIRTUAL, __C5_osg_Stats_P1__getStats, "Get the Viewers Stats object. ", ""); I_Method1(bool, readConfiguration, IN, const std::string &, filename, Properties::PURE_VIRTUAL, __bool__readConfiguration__C5_std_string_R1, "read the viewer configuration from a configuration file. ", ""); I_Method0(bool, isRealized, Properties::PURE_VIRTUAL, __bool__isRealized, "Get whether at least of one of this viewers windows are realized. ", ""); I_Method0(void, realize, Properties::PURE_VIRTUAL, __void__realize, "set up windows and associated threads. ", ""); I_Method1(void, setThreadingModel, IN, osgViewer::ViewerBase::ThreadingModel, threadingModel, Properties::VIRTUAL, __void__setThreadingModel__ThreadingModel, "Set the threading model the rendering traversals will use. ", ""); I_Method0(osgViewer::ViewerBase::ThreadingModel, getThreadingModel, Properties::NON_VIRTUAL, __ThreadingModel__getThreadingModel, "Get the threading model the rendering traversals will use. ", ""); I_Method0(osgViewer::ViewerBase::ThreadingModel, suggestBestThreadingModel, Properties::VIRTUAL, __ThreadingModel__suggestBestThreadingModel, "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ", ""); I_Method0(void, setUpThreading, Properties::VIRTUAL, __void__setUpThreading, "Set up the threading and processor affinity as per the viewers threading model. ", ""); I_Method0(bool, areThreadsRunning, Properties::NON_VIRTUAL, __bool__areThreadsRunning, "Return true if viewer threads are running. ", ""); I_Method0(void, stopThreading, Properties::VIRTUAL, __void__stopThreading, "Stop any threads begin run by viewer. ", ""); I_Method0(void, startThreading, Properties::VIRTUAL, __void__startThreading, "Start any threads required by the viewer. ", ""); I_Method1(void, setEndBarrierPosition, IN, osgViewer::ViewerBase::BarrierPosition, bp, Properties::NON_VIRTUAL, __void__setEndBarrierPosition__BarrierPosition, "Set the position of the end barrier. ", "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. "); I_Method0(osgViewer::ViewerBase::BarrierPosition, getEndBarrierPosition, Properties::NON_VIRTUAL, __BarrierPosition__getEndBarrierPosition, "Get the end barrier position. ", ""); I_Method1(void, setDone, IN, bool, done, Properties::NON_VIRTUAL, __void__setDone__bool, "Set the done flag to signal the viewer's work is done and should exit the frame loop. ", ""); I_Method0(bool, done, Properties::NON_VIRTUAL, __bool__done, "Return true if viewer's work is done and should exit the frame loop. ", ""); I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, eventVisitor, Properties::NON_VIRTUAL, __void__setEventVisitor__osgGA_EventVisitor_P1, "Set the EventVisitor. ", ""); I_Method0(osgGA::EventVisitor *, getEventVisitor, Properties::NON_VIRTUAL, __osgGA_EventVisitor_P1__getEventVisitor, "Get the EventVisitor. ", ""); I_Method0(const osgGA::EventVisitor *, getEventVisitor, Properties::NON_VIRTUAL, __C5_osgGA_EventVisitor_P1__getEventVisitor, "Get the const EventVisitor. ", ""); I_Method1(void, setKeyEventSetsDone, IN, int, key, Properties::NON_VIRTUAL, __void__setKeyEventSetsDone__int, "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. ", "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); I_Method0(int, getKeyEventSetsDone, Properties::NON_VIRTUAL, __int__getKeyEventSetsDone, "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", ""); I_Method1(void, setQuitEventSetsDone, IN, bool, flag, Properties::NON_VIRTUAL, __void__setQuitEventSetsDone__bool, "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", ""); I_Method0(bool, getQuitEventSetsDone, Properties::NON_VIRTUAL, __bool__getQuitEventSetsDone, "", "true if the viewer respond to the QUIT_APPLICATION-event "); I_Method1(void, setReleaseContextAtEndOfFrameHint, IN, bool, hint, Properties::NON_VIRTUAL, __void__setReleaseContextAtEndOfFrameHint__bool, "Hint to tell the renderingTraversals() method whether to call relaseContext() on the last context that was made current by the thread calling renderingTraverals(). ", "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. "); I_Method0(bool, getReleaseContextAtEndOfFrameHint, Properties::NON_VIRTUAL, __bool__getReleaseContextAtEndOfFrameHint, "Hint to tell the renderingTraversals() method whether to call relaseContext(). ", ""); I_Method1(void, setUpdateVisitor, IN, osgUtil::UpdateVisitor *, updateVisitor,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -