changed: gcc8 base update
[opensg.git] / Source / System / Statistics / Foregrounds / OSGPerfMonitorForegroundBase.inl
blob3aead3bcd4e5267df7d02fc03db1d25a0d6af4ec
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *               Copyright (C) 2000-2013 by the OpenSG Forum                 *
6  *                                                                           *
7  * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net  *
8  *                                                                           *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11  *                                License                                    *
12  *                                                                           *
13  * This library is free software; you can redistribute it and/or modify it   *
14  * under the terms of the GNU Library General Public License as published    *
15  * by the Free Software Foundation, version 2.                               *
16  *                                                                           *
17  * This library is distributed in the hope that it will be useful, but       *
18  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
20  * Library General Public License for more details.                          *
21  *                                                                           *
22  * You should have received a copy of the GNU Library General Public         *
23  * License along with this library; if not, write to the Free Software       *
24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
25  *                                                                           *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28  *                                Changes                                    *
29  *                                                                           *
30  *                                                                           *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38  *****************************************************************************
39  **                                                                         **
40  **                  This file is automatically generated.                  **
41  **                                                                         **
42  **          Any changes made to this file WILL be lost when it is          **
43  **           regenerated, which can become necessary at any time.          **
44  **                                                                         **
45  **     Do not change this file, changes should be done in the derived      **
46  **     class PerfMonitorForeground!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &PerfMonitorForegroundBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 PerfMonitorForegroundBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 PerfMonitorForegroundBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the PerfMonitorForeground::_sfMode field.
79 inline
80 UInt32 &PerfMonitorForegroundBase::editMode(void)
82     editSField(ModeFieldMask);
84     return _sfMode.getValue();
87 //! Get the value of the PerfMonitorForeground::_sfMode field.
88 inline
89       UInt32  PerfMonitorForegroundBase::getMode(void) const
91     return _sfMode.getValue();
94 //! Set the value of the PerfMonitorForeground::_sfMode field.
95 inline
96 void PerfMonitorForegroundBase::setMode(const UInt32 value)
98     editSField(ModeFieldMask);
100     _sfMode.setValue(value);
102 //! Get the value of the PerfMonitorForeground::_sfMaxSize field.
104 inline
105 Real32 &PerfMonitorForegroundBase::editMaxSize(void)
107     editSField(MaxSizeFieldMask);
109     return _sfMaxSize.getValue();
112 //! Get the value of the PerfMonitorForeground::_sfMaxSize field.
113 inline
114       Real32  PerfMonitorForegroundBase::getMaxSize(void) const
116     return _sfMaxSize.getValue();
119 //! Set the value of the PerfMonitorForeground::_sfMaxSize field.
120 inline
121 void PerfMonitorForegroundBase::setMaxSize(const Real32 value)
123     editSField(MaxSizeFieldMask);
125     _sfMaxSize.setValue(value);
127 //! Get the value of the PerfMonitorForeground::_sfColor field.
129 inline
130 Color4f &PerfMonitorForegroundBase::editColor(void)
132     editSField(ColorFieldMask);
134     return _sfColor.getValue();
137 //! Get the value of the PerfMonitorForeground::_sfColor field.
138 inline
139 const Color4f &PerfMonitorForegroundBase::getColor(void) const
141     return _sfColor.getValue();
144 //! Set the value of the PerfMonitorForeground::_sfColor field.
145 inline
146 void PerfMonitorForegroundBase::setColor(const Color4f &value)
148     editSField(ColorFieldMask);
150     _sfColor.setValue(value);
152 //! Get the value of the PerfMonitorForeground::_sfBgColor field.
154 inline
155 Color4f &PerfMonitorForegroundBase::editBgColor(void)
157     editSField(BgColorFieldMask);
159     return _sfBgColor.getValue();
162 //! Get the value of the PerfMonitorForeground::_sfBgColor field.
163 inline
164 const Color4f &PerfMonitorForegroundBase::getBgColor(void) const
166     return _sfBgColor.getValue();
169 //! Set the value of the PerfMonitorForeground::_sfBgColor field.
170 inline
171 void PerfMonitorForegroundBase::setBgColor(const Color4f &value)
173     editSField(BgColorFieldMask);
175     _sfBgColor.setValue(value);
177 //! Get the value of the PerfMonitorForeground::_sfFamily field.
179 inline
180 std::string &PerfMonitorForegroundBase::editFamily(void)
182     editSField(FamilyFieldMask);
184     return _sfFamily.getValue();
187 //! Get the value of the PerfMonitorForeground::_sfFamily field.
188 inline
189 const std::string &PerfMonitorForegroundBase::getFamily(void) const
191     return _sfFamily.getValue();
194 //! Set the value of the PerfMonitorForeground::_sfFamily field.
195 inline
196 void PerfMonitorForegroundBase::setFamily(const std::string &value)
198     editSField(FamilyFieldMask);
200     _sfFamily.setValue(value);
202 //! Get the value of the PerfMonitorForeground::_sfBorderColor field.
204 inline
205 Color4f &PerfMonitorForegroundBase::editBorderColor(void)
207     editSField(BorderColorFieldMask);
209     return _sfBorderColor.getValue();
212 //! Get the value of the PerfMonitorForeground::_sfBorderColor field.
213 inline
214 const Color4f &PerfMonitorForegroundBase::getBorderColor(void) const
216     return _sfBorderColor.getValue();
219 //! Set the value of the PerfMonitorForeground::_sfBorderColor field.
220 inline
221 void PerfMonitorForegroundBase::setBorderColor(const Color4f &value)
223     editSField(BorderColorFieldMask);
225     _sfBorderColor.setValue(value);
227 //! Get the value of the PerfMonitorForeground::_sfBorderOffset field.
229 inline
230 Vec2f &PerfMonitorForegroundBase::editBorderOffset(void)
232     editSField(BorderOffsetFieldMask);
234     return _sfBorderOffset.getValue();
237 //! Get the value of the PerfMonitorForeground::_sfBorderOffset field.
238 inline
239 const Vec2f &PerfMonitorForegroundBase::getBorderOffset(void) const
241     return _sfBorderOffset.getValue();
244 //! Set the value of the PerfMonitorForeground::_sfBorderOffset field.
245 inline
246 void PerfMonitorForegroundBase::setBorderOffset(const Vec2f &value)
248     editSField(BorderOffsetFieldMask);
250     _sfBorderOffset.setValue(value);
252 //! Get the value of the PerfMonitorForeground::_sfTextMargin field.
254 inline
255 Vec2f &PerfMonitorForegroundBase::editTextMargin(void)
257     editSField(TextMarginFieldMask);
259     return _sfTextMargin.getValue();
262 //! Get the value of the PerfMonitorForeground::_sfTextMargin field.
263 inline
264 const Vec2f &PerfMonitorForegroundBase::getTextMargin(void) const
266     return _sfTextMargin.getValue();
269 //! Set the value of the PerfMonitorForeground::_sfTextMargin field.
270 inline
271 void PerfMonitorForegroundBase::setTextMargin(const Vec2f &value)
273     editSField(TextMarginFieldMask);
275     _sfTextMargin.setValue(value);
279 #ifdef OSG_MT_CPTR_ASPECT
280 inline
281 void PerfMonitorForegroundBase::execSync (      PerfMonitorForegroundBase *pFrom,
282                                         ConstFieldMaskArg  whichField,
283                                         AspectOffsetStore &oOffsets,
284                                         ConstFieldMaskArg  syncMode,
285                                   const UInt32             uiSyncInfo)
287     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
289     if(FieldBits::NoField != (ModeFieldMask & whichField))
290         _sfMode.syncWith(pFrom->_sfMode);
292     if(FieldBits::NoField != (MaxSizeFieldMask & whichField))
293         _sfMaxSize.syncWith(pFrom->_sfMaxSize);
295     if(FieldBits::NoField != (ColorFieldMask & whichField))
296         _sfColor.syncWith(pFrom->_sfColor);
298     if(FieldBits::NoField != (BgColorFieldMask & whichField))
299         _sfBgColor.syncWith(pFrom->_sfBgColor);
301     if(FieldBits::NoField != (FamilyFieldMask & whichField))
302         _sfFamily.syncWith(pFrom->_sfFamily);
304     if(FieldBits::NoField != (BorderColorFieldMask & whichField))
305         _sfBorderColor.syncWith(pFrom->_sfBorderColor);
307     if(FieldBits::NoField != (BorderOffsetFieldMask & whichField))
308         _sfBorderOffset.syncWith(pFrom->_sfBorderOffset);
310     if(FieldBits::NoField != (TextMarginFieldMask & whichField))
311         _sfTextMargin.syncWith(pFrom->_sfTextMargin);
313 #endif
316 inline
317 const Char8 *PerfMonitorForegroundBase::getClassname(void)
319     return "PerfMonitorForeground";
321 OSG_GEN_CONTAINERPTR(PerfMonitorForeground);
323 OSG_END_NAMESPACE