Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoGLGraphicConfigTemplate.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-2017 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_CONFIG_TEMPLATE_H_
24#define _SO_GL_GRAPHIC_CONFIG_TEMPLATE_H_
25
27
28class SoGLGraphicConfigTemplateSync;
29
71
72 public:
73
78
83
90 virtual SbBool isGraphicsConfigSupported(SoGraphicConfig &graphicConfig) const;
91
96
101
106
111
116
121
130 int minBits = 0,
131 int maxBits = INT_MAX);
132
139 int &maxBits) const;
140
146
158 int minRedBits = 0,
159 int minGreenBits = 0,
160 int minBlueBits = 0,
161 int minAlphaBits = 0,
162 int maxRedBits = INT_MAX,
163 int maxGreenBits = INT_MAX,
164 int maxBlueBits = INT_MAX,
165 int maxAlphaBits = INT_MAX);
166
173 int &minGreenBits,
174 int &minBlueBits,
175 int &minAlphaBits,
176 int &maxRedBits,
177 int &maxGreenBits,
178 int &maxBlueBits,
179 int &maxAlphaBits) const;
180
181
193 int minFloatRedBits = 15,
194 int minFloatGreenBits = 15,
195 int minFloatBlueBits = 15,
196 int minFloatAlphaBits = 15,
197 int maxFloatRedBits = 16,
198 int maxFloatGreenBits = 16,
199 int maxFloatBlueBits = 16,
200 int maxFloatAlphaBits = 16);
207 int &minFloatGreenBits,
208 int &minFloatBlueBits,
209 int &minFloatAlphaBits,
210 int &maxFloatRedBits,
211 int &maxFloatGreenBits,
212 int &maxFloatBlueBits,
213 int &maxFloatAlphaBits) const;
214
215
226 int minRedBits = 0,
227 int minGreenBits = 0,
228 int minBlueBits = 0,
229 int minAlphaBits = 0,
230 int maxRedBits = INT_MAX,
231 int maxGreenBits = INT_MAX,
232 int maxBlueBits = INT_MAX,
233 int maxAlphaBits = INT_MAX);
234
241 int &minGreenBits,
242 int &minBlueBits,
243 int &minAlphaBits,
244 int &maxRedBits,
245 int &maxGreenBits,
246 int &maxBlueBits,
247 int &maxAlphaBits) const;
248
258 int minBits = 0,
259 int maxBits = INT_MAX);
260
267 int &maxBits) const;
268
281 int minFsaaBits = 0,
282 int maxFsaaBits = INT_MAX );
283
290 int &maxFsaaBits) const;
291
292private:
293
294 SoGLGraphicConfigTemplateSync* getSynchronizer() const;
295 void setSynchronizer( SoGLGraphicConfigTemplateSync* );
296
298
303
304 private:
305 SoGLGraphicConfigTemplateSync* m_synchronizer;
306};
307
308// INLINE METHODS
309inline SoGLGraphicConfigTemplateSync*
310SoGLGraphicConfigTemplate::getSynchronizer() const
311{
312 return m_synchronizer;
313}
314
315#endif /* _SO_GL_GRAPHIC_CONFIG_TEMPLATE_H_ */
316
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Defines an OpenG...
SoGraphicConfigTemplate::Preference getFullSceneAntialiasing(int &minFsaaBits, int &maxFsaaBits) const
Returns the full-scene antialiasing preference and number of samples.
void setFullSceneAntialiasing(SoGraphicConfigTemplate::Preference pref, int minFsaaBits=0, int maxFsaaBits=INT_MAX)
Sets the full-scene antialiasing preferences.
void setStereoBuffer(SoGraphicConfigTemplate::Preference pref)
Sets the stereo buffer mode preference.
void setRGBAColor(SoGraphicConfigTemplate::Preference pref, int minRedBits=0, int minGreenBits=0, int minBlueBits=0, int minAlphaBits=0, int maxRedBits=INT_MAX, int maxGreenBits=INT_MAX, int maxBlueBits=INT_MAX, int maxAlphaBits=INT_MAX)
Sets the color preferences.
SoGraphicConfigTemplate::Preference getFloatRGBAColor(int &minFloatRedBits, int &minFloatGreenBits, int &minFloatBlueBits, int &minFloatAlphaBits, int &maxFloatRedBits, int &maxFloatGreenBits, int &maxFloatBlueBits, int &maxFloatAlphaBits) const
Returns the float color preferences.
SoGLGraphicConfigTemplate()
Constructor.
SbBool isFloatRGBAColor() const
Returns TRUE if floating point RGBA is used.
SoGraphicConfigTemplate::Preference getStereoBuffer() const
Returns the stereo buffer preference.
SoGraphicConfigTemplate::Preference getDepth(int &minBits, int &maxBits) const
Returns the depth buffer preference and sizes.
SoGraphicConfigTemplate::Preference getRGBAColor(int &minRedBits, int &minGreenBits, int &minBlueBits, int &minAlphaBits, int &maxRedBits, int &maxGreenBits, int &maxBlueBits, int &maxAlphaBits) const
Returns the color preferences.
void setAccelerated(SoGraphicConfigTemplate::Preference pref)
Sets the graphics acceleration preference.
void setFloatRGBAColor(SoGraphicConfigTemplate::Preference pref, int minFloatRedBits=15, int minFloatGreenBits=15, int minFloatBlueBits=15, int minFloatAlphaBits=15, int maxFloatRedBits=16, int maxFloatGreenBits=16, int maxFloatBlueBits=16, int maxFloatAlphaBits=16)
Sets the float color preferences.
void setDepth(SoGraphicConfigTemplate::Preference pref, int minBits=0, int maxBits=INT_MAX)
Sets the depth buffer preferences.
virtual ~SoGLGraphicConfigTemplate()
Destructor.
SoGraphicConfigTemplate::Preference getAccelerated() const
Returns the graphics acceleration preference.
void setAccum(SoGraphicConfigTemplate::Preference pref, int minRedBits=0, int minGreenBits=0, int minBlueBits=0, int minAlphaBits=0, int maxRedBits=INT_MAX, int maxGreenBits=INT_MAX, int maxBlueBits=INT_MAX, int maxAlphaBits=INT_MAX)
Sets the accumulation preferences.
SoGraphicConfigTemplate::Preference getStencil(int &minBits, int &maxBits) const
Returns the stencil preferences.
SoGraphicConfigTemplate::Preference getAccum(int &minRedBits, int &minGreenBits, int &minBlueBits, int &minAlphaBits, int &maxRedBits, int &maxGreenBits, int &maxBlueBits, int &maxAlphaBits) const
Returns the accumulation buffer preferences.
void setDoubleBuffer(SoGraphicConfigTemplate::Preference pref)
Sets the double buffer mode preference.
void setStencil(SoGraphicConfigTemplate::Preference pref, int minBits=0, int maxBits=INT_MAX)
Sets the stencil preferences.
SoGraphicConfigTemplate::Preference getDoubleBuffer() const
Returns the double buffer mode preference.
virtual SbBool isGraphicsConfigSupported(SoGraphicConfig &graphicConfig) const
Indicates if the graphics configuration graphicConfig fits this template.
<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...
Preference
Priority requirement.
int SbBool
Boolean type.
Definition SbBase.h:87