OpendTect-6_4  6.4
uiglinfo.h
Go to the documentation of this file.
1 #ifndef uiglinfo_h
2 #define uiglinfo_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: J.C. Glas
9  Date: August 2016
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiosgmod.h"
15 #include "uistring.h"
16 #include "bufstringset.h"
17 
18 namespace osgGeo { class GLInfo; }
19 
20 
22 {
23 public:
24  GLInfo();
25  ~GLInfo();
26 
27  void update();
28 
29  bool isOK() const;
30  bool isPlatformSupported() const;
31 
32  const char* glVendor() const;
33  const char* glRenderer() const;
34  const char* glVersion() const;
35 
36  BufferStringSet allInfo() const;
37 
38 protected:
39 
40  bool isok_;
41  osgGeo::GLInfo* glinfo_;
42 };
43 
44 
46 { mODTextTranslationClass(uiGLInfo)
47 public:
48  friend mGlobal(uiOSG) uiGLInfo& uiGLI();
49 
50  uiGLInfo() {}
51 
52  uiString getMessage(bool* warning=0);
53  void showMessage(uiString msg,bool warn=false,
54  const char* dontshowagainkey=0,
55  bool onlyonce=false);
56  void createAndShowMessage(bool addwarnings=false,
57  const char* dontshowagainkey=0);
58 protected:
60  static uiGLInfo* theinst_;
61 };
62 
63 mGlobal(uiOSG) uiGLInfo& uiGLI();
64 
65 
66 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BufferStringSet allInfo() const
bool isPlatformSupported() const
bool isok_
Definition: uiglinfo.h:40
uiGLInfo & uiGLI()
mODTextTranslationClass(uiGLInfo) public uiGLInfo()
Definition: uiglinfo.h:50
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define mGlobal(module)
Definition: commondefs.h:163
static uiGLInfo * theinst_
Definition: uiglinfo.h:60
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
Definition: uiglinfo.h:21
Definition: uistring.h:89
GLInfo glinfo_
Definition: uiglinfo.h:59
Set of BufferString objects.
Definition: bufstringset.h:28
bool isOK() const
const char * glVersion() const
osgGeo::GLInfo * glinfo_
Definition: uiglinfo.h:41
Definition: uiglinfo.h:45
const char * glRenderer() const
void update()
const char * glVendor() const

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019