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 **
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &ProxyGroupBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 ProxyGroupBase::getClassTypeId(void)
70 OSG::UInt16 ProxyGroupBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the ProxyGroup::_sfEnabled field.
80 bool &ProxyGroupBase::editEnabled(void)
82 editSField(EnabledFieldMask);
84 return _sfEnabled.getValue();
87 //! Get the value of the ProxyGroup::_sfEnabled field.
89 bool ProxyGroupBase::getEnabled(void) const
91 return _sfEnabled.getValue();
94 //! Set the value of the ProxyGroup::_sfEnabled field.
96 void ProxyGroupBase::setEnabled(const bool value)
98 editSField(EnabledFieldMask);
100 _sfEnabled.setValue(value);
102 //! Get the value of the ProxyGroup::_sfUrl field.
105 std::string &ProxyGroupBase::editUrl(void)
107 editSField(UrlFieldMask);
109 return _sfUrl.getValue();
112 //! Get the value of the ProxyGroup::_sfUrl field.
114 const std::string &ProxyGroupBase::getUrl(void) const
116 return _sfUrl.getValue();
119 //! Set the value of the ProxyGroup::_sfUrl field.
121 void ProxyGroupBase::setUrl(const std::string &value)
123 editSField(UrlFieldMask);
125 _sfUrl.setValue(value);
127 //! Get the value of the ProxyGroup::_sfState field.
130 UInt32 &ProxyGroupBase::editState(void)
132 editSField(StateFieldMask);
134 return _sfState.getValue();
137 //! Get the value of the ProxyGroup::_sfState field.
139 UInt32 ProxyGroupBase::getState(void) const
141 return _sfState.getValue();
144 //! Set the value of the ProxyGroup::_sfState field.
146 void ProxyGroupBase::setState(const UInt32 value)
148 editSField(StateFieldMask);
150 _sfState.setValue(value);
152 //! Get the value of the ProxyGroup::_sfConcurrentLoad field.
155 bool &ProxyGroupBase::editConcurrentLoad(void)
157 editSField(ConcurrentLoadFieldMask);
159 return _sfConcurrentLoad.getValue();
162 //! Get the value of the ProxyGroup::_sfConcurrentLoad field.
164 bool ProxyGroupBase::getConcurrentLoad(void) const
166 return _sfConcurrentLoad.getValue();
169 //! Set the value of the ProxyGroup::_sfConcurrentLoad field.
171 void ProxyGroupBase::setConcurrentLoad(const bool value)
173 editSField(ConcurrentLoadFieldMask);
175 _sfConcurrentLoad.setValue(value);
177 //! Get the value of the ProxyGroup::_sfVolume field.
180 BoxVolume &ProxyGroupBase::editVolume(void)
182 editSField(VolumeFieldMask);
184 return _sfVolume.getValue();
187 //! Get the value of the ProxyGroup::_sfVolume field.
189 const BoxVolume &ProxyGroupBase::getVolume(void) const
191 return _sfVolume.getValue();
194 //! Set the value of the ProxyGroup::_sfVolume field.
196 void ProxyGroupBase::setVolume(const BoxVolume &value)
198 editSField(VolumeFieldMask);
200 _sfVolume.setValue(value);
202 //! Get the value of the ProxyGroup::_sfIndices field.
205 UInt32 &ProxyGroupBase::editIndices(void)
207 editSField(IndicesFieldMask);
209 return _sfIndices.getValue();
212 //! Get the value of the ProxyGroup::_sfIndices field.
214 UInt32 ProxyGroupBase::getIndices(void) const
216 return _sfIndices.getValue();
219 //! Set the value of the ProxyGroup::_sfIndices field.
221 void ProxyGroupBase::setIndices(const UInt32 value)
223 editSField(IndicesFieldMask);
225 _sfIndices.setValue(value);
227 //! Get the value of the ProxyGroup::_sfTriangles field.
230 UInt32 &ProxyGroupBase::editTriangles(void)
232 editSField(TrianglesFieldMask);
234 return _sfTriangles.getValue();
237 //! Get the value of the ProxyGroup::_sfTriangles field.
239 UInt32 ProxyGroupBase::getTriangles(void) const
241 return _sfTriangles.getValue();
244 //! Set the value of the ProxyGroup::_sfTriangles field.
246 void ProxyGroupBase::setTriangles(const UInt32 value)
248 editSField(TrianglesFieldMask);
250 _sfTriangles.setValue(value);
252 //! Get the value of the ProxyGroup::_sfPositions field.
255 UInt32 &ProxyGroupBase::editPositions(void)
257 editSField(PositionsFieldMask);
259 return _sfPositions.getValue();
262 //! Get the value of the ProxyGroup::_sfPositions field.
264 UInt32 ProxyGroupBase::getPositions(void) const
266 return _sfPositions.getValue();
269 //! Set the value of the ProxyGroup::_sfPositions field.
271 void ProxyGroupBase::setPositions(const UInt32 value)
273 editSField(PositionsFieldMask);
275 _sfPositions.setValue(value);
277 //! Get the value of the ProxyGroup::_sfGeometries field.
280 UInt32 &ProxyGroupBase::editGeometries(void)
282 editSField(GeometriesFieldMask);
284 return _sfGeometries.getValue();
287 //! Get the value of the ProxyGroup::_sfGeometries field.
289 UInt32 ProxyGroupBase::getGeometries(void) const
291 return _sfGeometries.getValue();
294 //! Set the value of the ProxyGroup::_sfGeometries field.
296 void ProxyGroupBase::setGeometries(const UInt32 value)
298 editSField(GeometriesFieldMask);
300 _sfGeometries.setValue(value);
302 //! Get the value of the ProxyGroup::_sfAbsoluteUrl field.
305 std::string &ProxyGroupBase::editAbsoluteUrl(void)
307 editSField(AbsoluteUrlFieldMask);
309 return _sfAbsoluteUrl.getValue();
312 //! Get the value of the ProxyGroup::_sfAbsoluteUrl field.
314 const std::string &ProxyGroupBase::getAbsoluteUrl(void) const
316 return _sfAbsoluteUrl.getValue();
319 //! Set the value of the ProxyGroup::_sfAbsoluteUrl field.
321 void ProxyGroupBase::setAbsoluteUrl(const std::string &value)
323 editSField(AbsoluteUrlFieldMask);
325 _sfAbsoluteUrl.setValue(value);
328 //! Get the value of the \a index element the ProxyGroup::_mfInline field.
330 UInt8 ProxyGroupBase::getInline(const UInt32 index) const
332 return _mfInline[index];
336 MFUInt8 ::reference ProxyGroupBase::editInline(const UInt32 index)
338 editMField(InlineFieldMask, _mfInline);
340 return _mfInline[index];
344 #ifdef OSG_MT_CPTR_ASPECT
346 void ProxyGroupBase::execSync ( ProxyGroupBase *pFrom,
347 ConstFieldMaskArg whichField,
348 AspectOffsetStore &oOffsets,
349 ConstFieldMaskArg syncMode,
350 const UInt32 uiSyncInfo)
352 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
354 if(FieldBits::NoField != (EnabledFieldMask & whichField))
355 _sfEnabled.syncWith(pFrom->_sfEnabled);
357 if(FieldBits::NoField != (UrlFieldMask & whichField))
358 _sfUrl.syncWith(pFrom->_sfUrl);
360 if(FieldBits::NoField != (RootFieldMask & whichField))
361 _sfRoot.syncWith(pFrom->_sfRoot);
363 if(FieldBits::NoField != (StateFieldMask & whichField))
364 _sfState.syncWith(pFrom->_sfState);
366 if(FieldBits::NoField != (ConcurrentLoadFieldMask & whichField))
367 _sfConcurrentLoad.syncWith(pFrom->_sfConcurrentLoad);
369 if(FieldBits::NoField != (VolumeFieldMask & whichField))
370 _sfVolume.syncWith(pFrom->_sfVolume);
372 if(FieldBits::NoField != (IndicesFieldMask & whichField))
373 _sfIndices.syncWith(pFrom->_sfIndices);
375 if(FieldBits::NoField != (TrianglesFieldMask & whichField))
376 _sfTriangles.syncWith(pFrom->_sfTriangles);
378 if(FieldBits::NoField != (PositionsFieldMask & whichField))
379 _sfPositions.syncWith(pFrom->_sfPositions);
381 if(FieldBits::NoField != (GeometriesFieldMask & whichField))
382 _sfGeometries.syncWith(pFrom->_sfGeometries);
384 if(FieldBits::NoField != (AbsoluteUrlFieldMask & whichField))
385 _sfAbsoluteUrl.syncWith(pFrom->_sfAbsoluteUrl);
387 if(FieldBits::NoField != (InlineFieldMask & whichField))
388 _mfInline.syncWith(pFrom->_mfInline,
397 const Char8 *ProxyGroupBase::getClassname(void)
401 OSG_GEN_CONTAINERPTR(ProxyGroup);