00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2019 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 #ifndef _SO_GL_GRAPHIC_DEVICE_PEER_H_ 00024 #define _SO_GL_GRAPHIC_DEVICE_PEER_H_ 00025 00026 #include <Inventor/components/SoGLGraphicDevice.h> 00027 #include <Inventor/components/SoGraphicConfig.h> 00028 #include <Inventor/components/SoGLGraphicConfigTemplate.h> 00029 00030 #include <Inventor/STL/algorithm> 00031 #include <Inventor/STL/functional> 00032 #include <Inventor/STL/set> 00033 #include <Inventor/STL/vector> 00034 00035 #ifdef _WIN32 00036 #pragma warning(push) 00037 #pragma warning(disable:4251) 00038 #endif 00039 00040 typedef std::vector<SoGraphicConfig *> SoGraphicConfigList; 00041 typedef std::set<int, std::less<int> > SoSamplesList; 00042 00065 { 00066 00067 public: 00068 00072 virtual ~SoGLGraphicDevicePeer(); 00073 00078 virtual SoGraphicConfigList &getGraphicConfigsList(); 00079 00084 virtual SoSamplesList &getSamplesParseTab(); 00085 00089 virtual SoGLGraphicConfigTemplate getDefaultGraphicConfigTemplate() = 0; 00090 00094 virtual SoGLGraphicConfigTemplate getGraphicConfigTemplate(SoGLGraphicConfig *graphicConfig) = 0; 00095 00099 virtual SbGlContextHelper::Display getDisplay() = 0; 00100 00104 virtual SoGLGraphicDevice::DeviceType getType() = 0; 00105 00106 00107 private: 00108 00112 virtual void buildGraphicConfigsList() = 0; 00113 00117 virtual void clearGraphicConfigsList() = 0; 00118 00122 SoGraphicConfigList m_configs; 00123 00127 SoSamplesList m_samplesParseTab; // 255 multisample levels ... 00128 }; 00129 #ifdef _WIN32 00130 #pragma warning(pop) 00131 #endif 00132 00133 #endif /* _SO_GL_GRAPHIC_DEVICE_PEER_H_ */ 00134 00135