changed: gcc8 base update
[opensg.git] / Source / System / Statistics / Foregrounds / OSGSimpleStatisticsForegroundBase.inl
blob7c4ed5adb01efa7feb3aa9d1004f6e544b250643
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 SimpleStatisticsForeground!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &SimpleStatisticsForegroundBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 SimpleStatisticsForegroundBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 SimpleStatisticsForegroundBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the SimpleStatisticsForeground::_sfSize field.
79 inline
80 Real32 &SimpleStatisticsForegroundBase::editSize(void)
82     editSField(SizeFieldMask);
84     return _sfSize.getValue();
87 //! Get the value of the SimpleStatisticsForeground::_sfSize field.
88 inline
89       Real32  SimpleStatisticsForegroundBase::getSize(void) const
91     return _sfSize.getValue();
94 //! Set the value of the SimpleStatisticsForeground::_sfSize field.
95 inline
96 void SimpleStatisticsForegroundBase::setSize(const Real32 value)
98     editSField(SizeFieldMask);
100     _sfSize.setValue(value);
102 //! Get the value of the SimpleStatisticsForeground::_sfColor field.
104 inline
105 Color4f &SimpleStatisticsForegroundBase::editColor(void)
107     editSField(ColorFieldMask);
109     return _sfColor.getValue();
112 //! Get the value of the SimpleStatisticsForeground::_sfColor field.
113 inline
114 const Color4f &SimpleStatisticsForegroundBase::getColor(void) const
116     return _sfColor.getValue();
119 //! Set the value of the SimpleStatisticsForeground::_sfColor field.
120 inline
121 void SimpleStatisticsForegroundBase::setColor(const Color4f &value)
123     editSField(ColorFieldMask);
125     _sfColor.setValue(value);
127 //! Get the value of the SimpleStatisticsForeground::_sfShadowColor field.
129 inline
130 Color4f &SimpleStatisticsForegroundBase::editShadowColor(void)
132     editSField(ShadowColorFieldMask);
134     return _sfShadowColor.getValue();
137 //! Get the value of the SimpleStatisticsForeground::_sfShadowColor field.
138 inline
139 const Color4f &SimpleStatisticsForegroundBase::getShadowColor(void) const
141     return _sfShadowColor.getValue();
144 //! Set the value of the SimpleStatisticsForeground::_sfShadowColor field.
145 inline
146 void SimpleStatisticsForegroundBase::setShadowColor(const Color4f &value)
148     editSField(ShadowColorFieldMask);
150     _sfShadowColor.setValue(value);
152 //! Get the value of the SimpleStatisticsForeground::_sfBgColor field.
154 inline
155 Color4f &SimpleStatisticsForegroundBase::editBgColor(void)
157     editSField(BgColorFieldMask);
159     return _sfBgColor.getValue();
162 //! Get the value of the SimpleStatisticsForeground::_sfBgColor field.
163 inline
164 const Color4f &SimpleStatisticsForegroundBase::getBgColor(void) const
166     return _sfBgColor.getValue();
169 //! Set the value of the SimpleStatisticsForeground::_sfBgColor field.
170 inline
171 void SimpleStatisticsForegroundBase::setBgColor(const Color4f &value)
173     editSField(BgColorFieldMask);
175     _sfBgColor.setValue(value);
177 //! Get the value of the SimpleStatisticsForeground::_sfFamily field.
179 inline
180 std::string &SimpleStatisticsForegroundBase::editFamily(void)
182     editSField(FamilyFieldMask);
184     return _sfFamily.getValue();
187 //! Get the value of the SimpleStatisticsForeground::_sfFamily field.
188 inline
189 const std::string &SimpleStatisticsForegroundBase::getFamily(void) const
191     return _sfFamily.getValue();
194 //! Set the value of the SimpleStatisticsForeground::_sfFamily field.
195 inline
196 void SimpleStatisticsForegroundBase::setFamily(const std::string &value)
198     editSField(FamilyFieldMask);
200     _sfFamily.setValue(value);
202 //! Get the value of the SimpleStatisticsForeground::_sfShadowOffset field.
204 inline
205 Vec2f &SimpleStatisticsForegroundBase::editShadowOffset(void)
207     editSField(ShadowOffsetFieldMask);
209     return _sfShadowOffset.getValue();
212 //! Get the value of the SimpleStatisticsForeground::_sfShadowOffset field.
213 inline
214 const Vec2f &SimpleStatisticsForegroundBase::getShadowOffset(void) const
216     return _sfShadowOffset.getValue();
219 //! Set the value of the SimpleStatisticsForeground::_sfShadowOffset field.
220 inline
221 void SimpleStatisticsForegroundBase::setShadowOffset(const Vec2f &value)
223     editSField(ShadowOffsetFieldMask);
225     _sfShadowOffset.setValue(value);
227 //! Get the value of the SimpleStatisticsForeground::_sfHorizontalAlign field.
229 inline
230 UInt8 &SimpleStatisticsForegroundBase::editHorizontalAlign(void)
232     editSField(HorizontalAlignFieldMask);
234     return _sfHorizontalAlign.getValue();
237 //! Get the value of the SimpleStatisticsForeground::_sfHorizontalAlign field.
238 inline
239       UInt8  SimpleStatisticsForegroundBase::getHorizontalAlign(void) const
241     return _sfHorizontalAlign.getValue();
244 //! Set the value of the SimpleStatisticsForeground::_sfHorizontalAlign field.
245 inline
246 void SimpleStatisticsForegroundBase::setHorizontalAlign(const UInt8 value)
248     editSField(HorizontalAlignFieldMask);
250     _sfHorizontalAlign.setValue(value);
252 //! Get the value of the SimpleStatisticsForeground::_sfVerticalAlign field.
254 inline
255 UInt8 &SimpleStatisticsForegroundBase::editVerticalAlign(void)
257     editSField(VerticalAlignFieldMask);
259     return _sfVerticalAlign.getValue();
262 //! Get the value of the SimpleStatisticsForeground::_sfVerticalAlign field.
263 inline
264       UInt8  SimpleStatisticsForegroundBase::getVerticalAlign(void) const
266     return _sfVerticalAlign.getValue();
269 //! Set the value of the SimpleStatisticsForeground::_sfVerticalAlign field.
270 inline
271 void SimpleStatisticsForegroundBase::setVerticalAlign(const UInt8 value)
273     editSField(VerticalAlignFieldMask);
275     _sfVerticalAlign.setValue(value);
277 //! Get the value of the SimpleStatisticsForeground::_sfBorderColor field.
279 inline
280 Color4f &SimpleStatisticsForegroundBase::editBorderColor(void)
282     editSField(BorderColorFieldMask);
284     return _sfBorderColor.getValue();
287 //! Get the value of the SimpleStatisticsForeground::_sfBorderColor field.
288 inline
289 const Color4f &SimpleStatisticsForegroundBase::getBorderColor(void) const
291     return _sfBorderColor.getValue();
294 //! Set the value of the SimpleStatisticsForeground::_sfBorderColor field.
295 inline
296 void SimpleStatisticsForegroundBase::setBorderColor(const Color4f &value)
298     editSField(BorderColorFieldMask);
300     _sfBorderColor.setValue(value);
302 //! Get the value of the SimpleStatisticsForeground::_sfBorderOffset field.
304 inline
305 Vec2f &SimpleStatisticsForegroundBase::editBorderOffset(void)
307     editSField(BorderOffsetFieldMask);
309     return _sfBorderOffset.getValue();
312 //! Get the value of the SimpleStatisticsForeground::_sfBorderOffset field.
313 inline
314 const Vec2f &SimpleStatisticsForegroundBase::getBorderOffset(void) const
316     return _sfBorderOffset.getValue();
319 //! Set the value of the SimpleStatisticsForeground::_sfBorderOffset field.
320 inline
321 void SimpleStatisticsForegroundBase::setBorderOffset(const Vec2f &value)
323     editSField(BorderOffsetFieldMask);
325     _sfBorderOffset.setValue(value);
327 //! Get the value of the SimpleStatisticsForeground::_sfTextMargin field.
329 inline
330 Vec2f &SimpleStatisticsForegroundBase::editTextMargin(void)
332     editSField(TextMarginFieldMask);
334     return _sfTextMargin.getValue();
337 //! Get the value of the SimpleStatisticsForeground::_sfTextMargin field.
338 inline
339 const Vec2f &SimpleStatisticsForegroundBase::getTextMargin(void) const
341     return _sfTextMargin.getValue();
344 //! Set the value of the SimpleStatisticsForeground::_sfTextMargin field.
345 inline
346 void SimpleStatisticsForegroundBase::setTextMargin(const Vec2f &value)
348     editSField(TextMarginFieldMask);
350     _sfTextMargin.setValue(value);
353 //! Get the value of the \a index element the SimpleStatisticsForeground::_mfFormats field.
354 inline
355 const std::string &SimpleStatisticsForegroundBase::getFormats(const UInt32 index) const
357     return _mfFormats[index];
360 inline
361 MFString           ::reference SimpleStatisticsForegroundBase::editFormats(const UInt32 index)
363     editMField(FormatsFieldMask, _mfFormats);
365     return _mfFormats[index];
369 #ifdef OSG_MT_CPTR_ASPECT
370 inline
371 void SimpleStatisticsForegroundBase::execSync (      SimpleStatisticsForegroundBase *pFrom,
372                                         ConstFieldMaskArg  whichField,
373                                         AspectOffsetStore &oOffsets,
374                                         ConstFieldMaskArg  syncMode,
375                                   const UInt32             uiSyncInfo)
377     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
379     if(FieldBits::NoField != (FormatsFieldMask & whichField))
380         _mfFormats.syncWith(pFrom->_mfFormats,
381                                 syncMode,
382                                 uiSyncInfo,
383                                 oOffsets);
385     if(FieldBits::NoField != (SizeFieldMask & whichField))
386         _sfSize.syncWith(pFrom->_sfSize);
388     if(FieldBits::NoField != (ColorFieldMask & whichField))
389         _sfColor.syncWith(pFrom->_sfColor);
391     if(FieldBits::NoField != (ShadowColorFieldMask & whichField))
392         _sfShadowColor.syncWith(pFrom->_sfShadowColor);
394     if(FieldBits::NoField != (BgColorFieldMask & whichField))
395         _sfBgColor.syncWith(pFrom->_sfBgColor);
397     if(FieldBits::NoField != (FamilyFieldMask & whichField))
398         _sfFamily.syncWith(pFrom->_sfFamily);
400     if(FieldBits::NoField != (ShadowOffsetFieldMask & whichField))
401         _sfShadowOffset.syncWith(pFrom->_sfShadowOffset);
403     if(FieldBits::NoField != (HorizontalAlignFieldMask & whichField))
404         _sfHorizontalAlign.syncWith(pFrom->_sfHorizontalAlign);
406     if(FieldBits::NoField != (VerticalAlignFieldMask & whichField))
407         _sfVerticalAlign.syncWith(pFrom->_sfVerticalAlign);
409     if(FieldBits::NoField != (BorderColorFieldMask & whichField))
410         _sfBorderColor.syncWith(pFrom->_sfBorderColor);
412     if(FieldBits::NoField != (BorderOffsetFieldMask & whichField))
413         _sfBorderOffset.syncWith(pFrom->_sfBorderOffset);
415     if(FieldBits::NoField != (TextMarginFieldMask & whichField))
416         _sfTextMargin.syncWith(pFrom->_sfTextMargin);
418 #endif
421 inline
422 const Char8 *SimpleStatisticsForegroundBase::getClassname(void)
424     return "SimpleStatisticsForeground";
426 OSG_GEN_CONTAINERPTR(SimpleStatisticsForeground);
428 OSG_END_NAMESPACE