Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoGLGraphicDevicePeer.h
Go to the documentation of this file.
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
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
79
85
90
95
100
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
std::set< int, std::less< int > > SoSamplesList
virtual SoGLGraphicDevice::DeviceType getType()=0
Returns the type of device.
virtual SoSamplesList & getSamplesParseTab()
Returns the list of all the available number of samples supported by this OpenGL graphics device.
virtual SoGLGraphicConfigTemplate getGraphicConfigTemplate(SoGLGraphicConfig *graphicConfig)=0
Returns a template according to the given graphics configuration.
virtual SoGLGraphicConfigTemplate getDefaultGraphicConfigTemplate()=0
Returns the default template used by Open Inventor.
virtual SoGraphicConfigList & getGraphicConfigsList()
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Defines an OpenG...
virtual SbGlContextHelper::Display getDisplay()=0
Returns the Display corresponding to this graphics device.
std::vector< SoGraphicConfig * > SoGraphicConfigList
<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.