15 #include <osg/Version>
19 #pragma GCC diagnostic push
20 #pragma GCC diagnostic ignored "-Wdeprecated-copy"
24 #include <osgViewer/Viewer>
27 #pragma GCC diagnostic pop
30 #include <osgText/Text>
36 #include <boost/graph/graph_traits.hpp>
37 #include <boost/graph/properties.hpp>
42 #if(FEVV_USE_QT5) // FOR_QT6
43 class BaseViewerOSG :
public BaseViewer
63 #if(FEVV_USE_QT5) // FOR_QT6
71 std::cout <<
"*** this=" <<
this <<
" entering " << __func__ << std::endl;
78 #if OSG_MIN_VERSION_REQUIRED(3, 4, 0)
81 #if(FEVV_USE_QT5) // FOR_QT6
84 setThreadingModel(osgViewer::ViewerBase::SingleThreaded);
87 #if(FEVV_USE_QT5) // FOR_QT6
90 setThreadingModel(osgViewer::ViewerBase::SingleThreaded);
94 #if defined(Q_WS_X11) // X Window System -> Linux
99 setThreadingModel(osgViewer::ViewerBase::SingleThreaded);
100 #elif defined(Q_WS_MACX) // Mac OS X
103 setThreadingModel(osgViewer::ViewerBase::AutomaticSelection);
106 setThreadingModel(osgViewer::ViewerBase::AutomaticSelection);
113 std::cout <<
"*** this=" <<
this <<
" leaving " << __func__ << std::endl;
120 std::cout <<
"*** this=" <<
this <<
" entering " << __func__ << std::endl;
131 std::cout <<
"*** this=" <<
this <<
" leaving " << __func__ << std::endl;