fixed: gcc8 compile issues
[opensg.git] / Source / Contrib / ComplexSceneManager / Helper / OSGCSMStatisticsForeground.h
blob1083a7fd5b2793d3bffdcf1ad81cc3a31279dcd4
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGCSMSTATISTICSFOREGROUND_H_
40 #define _OSGCSMSTATISTICSFOREGROUND_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGCSMStatisticsForegroundBase.h"
46 #include "OSGStatisticsForeground.h"
48 OSG_BEGIN_NAMESPACE
50 class CSMWindow;
51 class SimpleStatisticsForeground;
53 /*! \brief CSMStatisticsForeground class. See \ref
54 PageContribCSMStatisticsForeground for a description.
57 class OSG_CONTRIBCSM_DLLMAPPING CSMStatisticsForeground :
58 public CSMStatisticsForegroundBase
60 protected:
62 /*========================== PUBLIC =================================*/
64 public:
66 typedef CSMStatisticsForegroundBase Inherited;
67 typedef CSMStatisticsForeground Self;
69 /*---------------------------------------------------------------------*/
70 /*! \name Sync */
71 /*! \{ */
73 virtual void changed(ConstFieldMaskArg whichField,
74 UInt32 origin,
75 BitVector details );
77 /*! \} */
78 /*---------------------------------------------------------------------*/
79 /*! \name Output */
80 /*! \{ */
82 bool init(CSMWindow *pCSMWin);
84 /*! \} */
85 /*---------------------------------------------------------------------*/
86 /*! \name Output */
87 /*! \{ */
89 StatisticsForeground *getOSGForeground(void);
91 /*! \} */
92 /*---------------------------------------------------------------------*/
93 /*! \name Output */
94 /*! \{ */
96 virtual void dump( UInt32 uiIndent = 0,
97 const BitVector bvFlags = 0) const;
99 /*! \} */
100 /*========================= PROTECTED ===============================*/
102 protected:
104 // Variables should all be in CSMStatisticsForegroundBase.
106 StatisticsForegroundUnrecPtr _pStatFG;
108 /*---------------------------------------------------------------------*/
109 /*! \name Constructors */
110 /*! \{ */
112 CSMStatisticsForeground(void);
113 CSMStatisticsForeground(const CSMStatisticsForeground &source);
115 /*! \} */
116 /*---------------------------------------------------------------------*/
117 /*! \name Destructors */
118 /*! \{ */
120 virtual ~CSMStatisticsForeground(void);
122 /*! \} */
123 /*---------------------------------------------------------------------*/
124 /*! \name Init */
125 /*! \{ */
127 void addElement( SimpleStatisticsForeground *pStatFG,
128 const std::string &szStatObj,
129 const std::string &szStatElem,
130 const std::string &szFormat );
132 /*! \} */
133 /*---------------------------------------------------------------------*/
134 /*! \name Init */
135 /*! \{ */
137 virtual void draw(DrawEnv *);
139 /*! \} */
140 /*---------------------------------------------------------------------*/
141 /*! \name Init */
142 /*! \{ */
144 virtual void resolveLinks(void);
146 /*! \} */
147 /*---------------------------------------------------------------------*/
148 /*! \name Init */
149 /*! \{ */
151 static void initMethod(InitPhase ePhase);
153 /*! \} */
154 /*========================== PRIVATE ================================*/
156 private:
158 friend class FieldContainer;
159 friend class CSMStatisticsForegroundBase;
161 // prohibit default functions (move to 'public' if you need one)
162 void operator =(const CSMStatisticsForeground &source);
165 typedef CSMStatisticsForeground *CSMStatisticsForegroundP;
167 OSG_END_NAMESPACE
169 #include "OSGCSMStatisticsForegroundBase.inl"
170 #include "OSGCSMStatisticsForeground.inl"
172 #endif /* _OSGCSMSTATISTICSFOREGROUND_H_ */