Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoGLGraphicDevicePeer.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2019 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23#ifndef _SO_GL_GRAPHIC_DEVICE_PEER_H_
24#define _SO_GL_GRAPHIC_DEVICE_PEER_H_
25
26#include <Inventor/components/SoGLGraphicDevice.h>
27#include <Inventor/components/SoGraphicConfig.h>
28#include <Inventor/components/SoGLGraphicConfigTemplate.h>
29
30#include <Inventor/STL/algorithm>
31#include <Inventor/STL/functional>
32#include <Inventor/STL/set>
33#include <Inventor/STL/vector>
34
35#ifdef _WIN32
36#pragma warning(push)
37#pragma warning(disable:4251)
38#endif
39
40typedef std::vector<SoGraphicConfig *> SoGraphicConfigList;
41typedef std::set<int, std::less<int> > SoSamplesList;
42
65{
66
67 public:
68
72 virtual ~SoGLGraphicDevicePeer();
73
78 virtual SoGraphicConfigList &getGraphicConfigsList();
79
84 virtual SoSamplesList &getSamplesParseTab();
85
89 virtual SoGLGraphicConfigTemplate getDefaultGraphicConfigTemplate() = 0;
90
94 virtual SoGLGraphicConfigTemplate getGraphicConfigTemplate(SoGLGraphicConfig *graphicConfig) = 0;
95
99 virtual SbGlContextHelper::Display getDisplay() = 0;
100
104 virtual SoGLGraphicDevice::DeviceType getType() = 0;
105
106
107 private:
108
112 virtual void buildGraphicConfigsList() = 0;
113
117 virtual void clearGraphicConfigsList() = 0;
118
122 SoGraphicConfigList m_configs;
123
127 SoSamplesList m_samplesParseTab; // 255 multisample levels ...
128};
129#ifdef _WIN32
130#pragma warning(pop)
131#endif
132
133#endif /* _SO_GL_GRAPHIC_DEVICE_PEER_H_ */
134
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Defines an OpenG...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Defines an OpenG...
DeviceType
Device types.