Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoGLGraphicDevice.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_H_
24#define _SO_GL_GRAPHIC_DEVICE_H_
25
26#if defined(_WIN32)
27# include <windows.h> // for HDC def
28# ifdef _SO_QT_
29# include <wingdi.h>
30# else
31# include <Inventor/Win/SoWinDef.h>
32# endif
33#else
34# include <Inventor/helpers/SbGlContextHelper.h>
35#endif
36#include <Inventor/sys/port.h>
37
38#include <Inventor/components/SoGraphicDevice.h>
39#include <Inventor/components/SoGraphicConfig.h>
40#include <Inventor/components/SoGLGraphicConfig.h>
41#include <Inventor/components/SoGraphicConfigTemplate.h>
42#include <Inventor/components/SoGLGraphicConfigTemplate.h>
43
44class SoGLGraphicDevicePeer;
45
70
71 public:
72
82
87
92
97
103
109
138
143 size_t getNum();
144
150
155 size_t getNum(const SoGraphicConfigTemplate &temp);
156
162
167
168private:
169
170 size_t getNumSamplesAvailable();
174 int getNumSamples(size_t n);
175 int findSampleIndex(int findInt);
176
177 private:
178
179 SoGLGraphicDevicePeer *m_devicePeer;
180 void *m_sortedGraphicConfigs;
181 SoGLGraphicConfigTemplate m_template;
182};
183
184#endif /* _SO_GL_GRAPHIC_DEVICE_H_ */
185
<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...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Represents an Op...
SoGraphicConfig * getGraphicConfig(const SoGraphicConfigTemplate &temp, size_t n)
Returns the best nth of all the graphics configurations supported by this device and sorted according...
size_t getNum()
Returns the number of the graphics configurations supported by this device.
SbGlContextHelper::Display getDisplay()
Returns the Display corresponding to this graphics device.
SoGLGraphicDevice & operator()(SbGlContextHelper::Display display)
Allows you to cast Display to SoGLGraphicDevice.
virtual ~SoGLGraphicDevice()
Destructor.
SoGraphicConfig * getBestGraphicConfig(const SoGraphicConfigTemplate &temp)
Returns the best graphics configuration corresponding to the preferences in the specified template.
SoGLGraphicDevice(SbGlContextHelper::Display display, DeviceType dt=SoGLGraphicDevice::WINDOW)
Constructor.
size_t getNum(const SoGraphicConfigTemplate &temp)
Returns the number of the graphics configurations supported by this device and the given template.
SoGLGraphicConfigTemplate getGraphicConfigTemplate(SoGLGraphicConfig *graphicConfig)
Returns a template corresponding to the given graphics configuration.
SoGraphicConfig * getGraphicConfig(size_t n)
Returns the n-th of all the graphics configurations supported by this device.
SoGraphicConfig * getDefaultGraphicConfig()
Returns the best graphics configuration corresponding to a graphics template containing the default p...
DeviceType
Device types.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...