1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38 *****************************************************************************
40 ** This file is automatically generated. **
42 ** Any changes made to this file WILL be lost when it is **
43 ** regenerated, which can become necessary at any time. **
45 ** Do not change this file, changes should be done in the derived **
46 ** class SimpleStatisticsForeground!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &SimpleStatisticsForegroundBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 SimpleStatisticsForegroundBase::getClassTypeId(void)
70 OSG::UInt16 SimpleStatisticsForegroundBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the SimpleStatisticsForeground::_sfSize field.
80 Real32 &SimpleStatisticsForegroundBase::editSize(void)
82 editSField(SizeFieldMask);
84 return _sfSize.getValue();
87 //! Get the value of the SimpleStatisticsForeground::_sfSize field.
89 Real32 SimpleStatisticsForegroundBase::getSize(void) const
91 return _sfSize.getValue();
94 //! Set the value of the SimpleStatisticsForeground::_sfSize field.
96 void SimpleStatisticsForegroundBase::setSize(const Real32 value)
98 editSField(SizeFieldMask);
100 _sfSize.setValue(value);
102 //! Get the value of the SimpleStatisticsForeground::_sfColor field.
105 Color4f &SimpleStatisticsForegroundBase::editColor(void)
107 editSField(ColorFieldMask);
109 return _sfColor.getValue();
112 //! Get the value of the SimpleStatisticsForeground::_sfColor field.
114 const Color4f &SimpleStatisticsForegroundBase::getColor(void) const
116 return _sfColor.getValue();
119 //! Set the value of the SimpleStatisticsForeground::_sfColor field.
121 void SimpleStatisticsForegroundBase::setColor(const Color4f &value)
123 editSField(ColorFieldMask);
125 _sfColor.setValue(value);
127 //! Get the value of the SimpleStatisticsForeground::_sfShadowColor field.
130 Color4f &SimpleStatisticsForegroundBase::editShadowColor(void)
132 editSField(ShadowColorFieldMask);
134 return _sfShadowColor.getValue();
137 //! Get the value of the SimpleStatisticsForeground::_sfShadowColor field.
139 const Color4f &SimpleStatisticsForegroundBase::getShadowColor(void) const
141 return _sfShadowColor.getValue();
144 //! Set the value of the SimpleStatisticsForeground::_sfShadowColor field.
146 void SimpleStatisticsForegroundBase::setShadowColor(const Color4f &value)
148 editSField(ShadowColorFieldMask);
150 _sfShadowColor.setValue(value);
152 //! Get the value of the SimpleStatisticsForeground::_sfBgColor field.
155 Color4f &SimpleStatisticsForegroundBase::editBgColor(void)
157 editSField(BgColorFieldMask);
159 return _sfBgColor.getValue();
162 //! Get the value of the SimpleStatisticsForeground::_sfBgColor field.
164 const Color4f &SimpleStatisticsForegroundBase::getBgColor(void) const
166 return _sfBgColor.getValue();
169 //! Set the value of the SimpleStatisticsForeground::_sfBgColor field.
171 void SimpleStatisticsForegroundBase::setBgColor(const Color4f &value)
173 editSField(BgColorFieldMask);
175 _sfBgColor.setValue(value);
177 //! Get the value of the SimpleStatisticsForeground::_sfFamily field.
180 std::string &SimpleStatisticsForegroundBase::editFamily(void)
182 editSField(FamilyFieldMask);
184 return _sfFamily.getValue();
187 //! Get the value of the SimpleStatisticsForeground::_sfFamily field.
189 const std::string &SimpleStatisticsForegroundBase::getFamily(void) const
191 return _sfFamily.getValue();
194 //! Set the value of the SimpleStatisticsForeground::_sfFamily field.
196 void SimpleStatisticsForegroundBase::setFamily(const std::string &value)
198 editSField(FamilyFieldMask);
200 _sfFamily.setValue(value);
202 //! Get the value of the SimpleStatisticsForeground::_sfShadowOffset field.
205 Vec2f &SimpleStatisticsForegroundBase::editShadowOffset(void)
207 editSField(ShadowOffsetFieldMask);
209 return _sfShadowOffset.getValue();
212 //! Get the value of the SimpleStatisticsForeground::_sfShadowOffset field.
214 const Vec2f &SimpleStatisticsForegroundBase::getShadowOffset(void) const
216 return _sfShadowOffset.getValue();
219 //! Set the value of the SimpleStatisticsForeground::_sfShadowOffset field.
221 void SimpleStatisticsForegroundBase::setShadowOffset(const Vec2f &value)
223 editSField(ShadowOffsetFieldMask);
225 _sfShadowOffset.setValue(value);
227 //! Get the value of the SimpleStatisticsForeground::_sfHorizontalAlign field.
230 UInt8 &SimpleStatisticsForegroundBase::editHorizontalAlign(void)
232 editSField(HorizontalAlignFieldMask);
234 return _sfHorizontalAlign.getValue();
237 //! Get the value of the SimpleStatisticsForeground::_sfHorizontalAlign field.
239 UInt8 SimpleStatisticsForegroundBase::getHorizontalAlign(void) const
241 return _sfHorizontalAlign.getValue();
244 //! Set the value of the SimpleStatisticsForeground::_sfHorizontalAlign field.
246 void SimpleStatisticsForegroundBase::setHorizontalAlign(const UInt8 value)
248 editSField(HorizontalAlignFieldMask);
250 _sfHorizontalAlign.setValue(value);
252 //! Get the value of the SimpleStatisticsForeground::_sfVerticalAlign field.
255 UInt8 &SimpleStatisticsForegroundBase::editVerticalAlign(void)
257 editSField(VerticalAlignFieldMask);
259 return _sfVerticalAlign.getValue();
262 //! Get the value of the SimpleStatisticsForeground::_sfVerticalAlign field.
264 UInt8 SimpleStatisticsForegroundBase::getVerticalAlign(void) const
266 return _sfVerticalAlign.getValue();
269 //! Set the value of the SimpleStatisticsForeground::_sfVerticalAlign field.
271 void SimpleStatisticsForegroundBase::setVerticalAlign(const UInt8 value)
273 editSField(VerticalAlignFieldMask);
275 _sfVerticalAlign.setValue(value);
277 //! Get the value of the SimpleStatisticsForeground::_sfBorderColor field.
280 Color4f &SimpleStatisticsForegroundBase::editBorderColor(void)
282 editSField(BorderColorFieldMask);
284 return _sfBorderColor.getValue();
287 //! Get the value of the SimpleStatisticsForeground::_sfBorderColor field.
289 const Color4f &SimpleStatisticsForegroundBase::getBorderColor(void) const
291 return _sfBorderColor.getValue();
294 //! Set the value of the SimpleStatisticsForeground::_sfBorderColor field.
296 void SimpleStatisticsForegroundBase::setBorderColor(const Color4f &value)
298 editSField(BorderColorFieldMask);
300 _sfBorderColor.setValue(value);
302 //! Get the value of the SimpleStatisticsForeground::_sfBorderOffset field.
305 Vec2f &SimpleStatisticsForegroundBase::editBorderOffset(void)
307 editSField(BorderOffsetFieldMask);
309 return _sfBorderOffset.getValue();
312 //! Get the value of the SimpleStatisticsForeground::_sfBorderOffset field.
314 const Vec2f &SimpleStatisticsForegroundBase::getBorderOffset(void) const
316 return _sfBorderOffset.getValue();
319 //! Set the value of the SimpleStatisticsForeground::_sfBorderOffset field.
321 void SimpleStatisticsForegroundBase::setBorderOffset(const Vec2f &value)
323 editSField(BorderOffsetFieldMask);
325 _sfBorderOffset.setValue(value);
327 //! Get the value of the SimpleStatisticsForeground::_sfTextMargin field.
330 Vec2f &SimpleStatisticsForegroundBase::editTextMargin(void)
332 editSField(TextMarginFieldMask);
334 return _sfTextMargin.getValue();
337 //! Get the value of the SimpleStatisticsForeground::_sfTextMargin field.
339 const Vec2f &SimpleStatisticsForegroundBase::getTextMargin(void) const
341 return _sfTextMargin.getValue();
344 //! Set the value of the SimpleStatisticsForeground::_sfTextMargin field.
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.
355 const std::string &SimpleStatisticsForegroundBase::getFormats(const UInt32 index) const
357 return _mfFormats[index];
361 MFString ::reference SimpleStatisticsForegroundBase::editFormats(const UInt32 index)
363 editMField(FormatsFieldMask, _mfFormats);
365 return _mfFormats[index];
369 #ifdef OSG_MT_CPTR_ASPECT
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,
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);
422 const Char8 *SimpleStatisticsForegroundBase::getClassname(void)
424 return "SimpleStatisticsForeground";
426 OSG_GEN_CONTAINERPTR(SimpleStatisticsForeground);