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 PerfMonitorForeground!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &PerfMonitorForegroundBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 PerfMonitorForegroundBase::getClassTypeId(void)
70 OSG::UInt16 PerfMonitorForegroundBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the PerfMonitorForeground::_sfMode field.
80 UInt32 &PerfMonitorForegroundBase::editMode(void)
82 editSField(ModeFieldMask);
84 return _sfMode.getValue();
87 //! Get the value of the PerfMonitorForeground::_sfMode field.
89 UInt32 PerfMonitorForegroundBase::getMode(void) const
91 return _sfMode.getValue();
94 //! Set the value of the PerfMonitorForeground::_sfMode field.
96 void PerfMonitorForegroundBase::setMode(const UInt32 value)
98 editSField(ModeFieldMask);
100 _sfMode.setValue(value);
102 //! Get the value of the PerfMonitorForeground::_sfMaxSize field.
105 Real32 &PerfMonitorForegroundBase::editMaxSize(void)
107 editSField(MaxSizeFieldMask);
109 return _sfMaxSize.getValue();
112 //! Get the value of the PerfMonitorForeground::_sfMaxSize field.
114 Real32 PerfMonitorForegroundBase::getMaxSize(void) const
116 return _sfMaxSize.getValue();
119 //! Set the value of the PerfMonitorForeground::_sfMaxSize field.
121 void PerfMonitorForegroundBase::setMaxSize(const Real32 value)
123 editSField(MaxSizeFieldMask);
125 _sfMaxSize.setValue(value);
127 //! Get the value of the PerfMonitorForeground::_sfColor field.
130 Color4f &PerfMonitorForegroundBase::editColor(void)
132 editSField(ColorFieldMask);
134 return _sfColor.getValue();
137 //! Get the value of the PerfMonitorForeground::_sfColor field.
139 const Color4f &PerfMonitorForegroundBase::getColor(void) const
141 return _sfColor.getValue();
144 //! Set the value of the PerfMonitorForeground::_sfColor field.
146 void PerfMonitorForegroundBase::setColor(const Color4f &value)
148 editSField(ColorFieldMask);
150 _sfColor.setValue(value);
152 //! Get the value of the PerfMonitorForeground::_sfBgColor field.
155 Color4f &PerfMonitorForegroundBase::editBgColor(void)
157 editSField(BgColorFieldMask);
159 return _sfBgColor.getValue();
162 //! Get the value of the PerfMonitorForeground::_sfBgColor field.
164 const Color4f &PerfMonitorForegroundBase::getBgColor(void) const
166 return _sfBgColor.getValue();
169 //! Set the value of the PerfMonitorForeground::_sfBgColor field.
171 void PerfMonitorForegroundBase::setBgColor(const Color4f &value)
173 editSField(BgColorFieldMask);
175 _sfBgColor.setValue(value);
177 //! Get the value of the PerfMonitorForeground::_sfFamily field.
180 std::string &PerfMonitorForegroundBase::editFamily(void)
182 editSField(FamilyFieldMask);
184 return _sfFamily.getValue();
187 //! Get the value of the PerfMonitorForeground::_sfFamily field.
189 const std::string &PerfMonitorForegroundBase::getFamily(void) const
191 return _sfFamily.getValue();
194 //! Set the value of the PerfMonitorForeground::_sfFamily field.
196 void PerfMonitorForegroundBase::setFamily(const std::string &value)
198 editSField(FamilyFieldMask);
200 _sfFamily.setValue(value);
202 //! Get the value of the PerfMonitorForeground::_sfBorderColor field.
205 Color4f &PerfMonitorForegroundBase::editBorderColor(void)
207 editSField(BorderColorFieldMask);
209 return _sfBorderColor.getValue();
212 //! Get the value of the PerfMonitorForeground::_sfBorderColor field.
214 const Color4f &PerfMonitorForegroundBase::getBorderColor(void) const
216 return _sfBorderColor.getValue();
219 //! Set the value of the PerfMonitorForeground::_sfBorderColor field.
221 void PerfMonitorForegroundBase::setBorderColor(const Color4f &value)
223 editSField(BorderColorFieldMask);
225 _sfBorderColor.setValue(value);
227 //! Get the value of the PerfMonitorForeground::_sfBorderOffset field.
230 Vec2f &PerfMonitorForegroundBase::editBorderOffset(void)
232 editSField(BorderOffsetFieldMask);
234 return _sfBorderOffset.getValue();
237 //! Get the value of the PerfMonitorForeground::_sfBorderOffset field.
239 const Vec2f &PerfMonitorForegroundBase::getBorderOffset(void) const
241 return _sfBorderOffset.getValue();
244 //! Set the value of the PerfMonitorForeground::_sfBorderOffset field.
246 void PerfMonitorForegroundBase::setBorderOffset(const Vec2f &value)
248 editSField(BorderOffsetFieldMask);
250 _sfBorderOffset.setValue(value);
252 //! Get the value of the PerfMonitorForeground::_sfTextMargin field.
255 Vec2f &PerfMonitorForegroundBase::editTextMargin(void)
257 editSField(TextMarginFieldMask);
259 return _sfTextMargin.getValue();
262 //! Get the value of the PerfMonitorForeground::_sfTextMargin field.
264 const Vec2f &PerfMonitorForegroundBase::getTextMargin(void) const
266 return _sfTextMargin.getValue();
269 //! Set the value of the PerfMonitorForeground::_sfTextMargin field.
271 void PerfMonitorForegroundBase::setTextMargin(const Vec2f &value)
273 editSField(TextMarginFieldMask);
275 _sfTextMargin.setValue(value);
279 #ifdef OSG_MT_CPTR_ASPECT
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);
317 const Char8 *PerfMonitorForegroundBase::getClassname(void)
319 return "PerfMonitorForeground";
321 OSG_GEN_CONTAINERPTR(PerfMonitorForeground);