fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Groups / Misc / OSGProxyGroupBase.inl
blob0393c4b5dc2bd388c95a18e8e783f2fdfcb0ce24
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 ProxyGroup!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &ProxyGroupBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 ProxyGroupBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 ProxyGroupBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the ProxyGroup::_sfEnabled field.
79 inline
80 bool &ProxyGroupBase::editEnabled(void)
82     editSField(EnabledFieldMask);
84     return _sfEnabled.getValue();
87 //! Get the value of the ProxyGroup::_sfEnabled field.
88 inline
89       bool  ProxyGroupBase::getEnabled(void) const
91     return _sfEnabled.getValue();
94 //! Set the value of the ProxyGroup::_sfEnabled field.
95 inline
96 void ProxyGroupBase::setEnabled(const bool value)
98     editSField(EnabledFieldMask);
100     _sfEnabled.setValue(value);
102 //! Get the value of the ProxyGroup::_sfUrl field.
104 inline
105 std::string &ProxyGroupBase::editUrl(void)
107     editSField(UrlFieldMask);
109     return _sfUrl.getValue();
112 //! Get the value of the ProxyGroup::_sfUrl field.
113 inline
114 const std::string &ProxyGroupBase::getUrl(void) const
116     return _sfUrl.getValue();
119 //! Set the value of the ProxyGroup::_sfUrl field.
120 inline
121 void ProxyGroupBase::setUrl(const std::string &value)
123     editSField(UrlFieldMask);
125     _sfUrl.setValue(value);
127 //! Get the value of the ProxyGroup::_sfState field.
129 inline
130 UInt32 &ProxyGroupBase::editState(void)
132     editSField(StateFieldMask);
134     return _sfState.getValue();
137 //! Get the value of the ProxyGroup::_sfState field.
138 inline
139       UInt32  ProxyGroupBase::getState(void) const
141     return _sfState.getValue();
144 //! Set the value of the ProxyGroup::_sfState field.
145 inline
146 void ProxyGroupBase::setState(const UInt32 value)
148     editSField(StateFieldMask);
150     _sfState.setValue(value);
152 //! Get the value of the ProxyGroup::_sfConcurrentLoad field.
154 inline
155 bool &ProxyGroupBase::editConcurrentLoad(void)
157     editSField(ConcurrentLoadFieldMask);
159     return _sfConcurrentLoad.getValue();
162 //! Get the value of the ProxyGroup::_sfConcurrentLoad field.
163 inline
164       bool  ProxyGroupBase::getConcurrentLoad(void) const
166     return _sfConcurrentLoad.getValue();
169 //! Set the value of the ProxyGroup::_sfConcurrentLoad field.
170 inline
171 void ProxyGroupBase::setConcurrentLoad(const bool value)
173     editSField(ConcurrentLoadFieldMask);
175     _sfConcurrentLoad.setValue(value);
177 //! Get the value of the ProxyGroup::_sfVolume field.
179 inline
180 BoxVolume &ProxyGroupBase::editVolume(void)
182     editSField(VolumeFieldMask);
184     return _sfVolume.getValue();
187 //! Get the value of the ProxyGroup::_sfVolume field.
188 inline
189 const BoxVolume &ProxyGroupBase::getVolume(void) const
191     return _sfVolume.getValue();
194 //! Set the value of the ProxyGroup::_sfVolume field.
195 inline
196 void ProxyGroupBase::setVolume(const BoxVolume &value)
198     editSField(VolumeFieldMask);
200     _sfVolume.setValue(value);
202 //! Get the value of the ProxyGroup::_sfIndices field.
204 inline
205 UInt32 &ProxyGroupBase::editIndices(void)
207     editSField(IndicesFieldMask);
209     return _sfIndices.getValue();
212 //! Get the value of the ProxyGroup::_sfIndices field.
213 inline
214       UInt32  ProxyGroupBase::getIndices(void) const
216     return _sfIndices.getValue();
219 //! Set the value of the ProxyGroup::_sfIndices field.
220 inline
221 void ProxyGroupBase::setIndices(const UInt32 value)
223     editSField(IndicesFieldMask);
225     _sfIndices.setValue(value);
227 //! Get the value of the ProxyGroup::_sfTriangles field.
229 inline
230 UInt32 &ProxyGroupBase::editTriangles(void)
232     editSField(TrianglesFieldMask);
234     return _sfTriangles.getValue();
237 //! Get the value of the ProxyGroup::_sfTriangles field.
238 inline
239       UInt32  ProxyGroupBase::getTriangles(void) const
241     return _sfTriangles.getValue();
244 //! Set the value of the ProxyGroup::_sfTriangles field.
245 inline
246 void ProxyGroupBase::setTriangles(const UInt32 value)
248     editSField(TrianglesFieldMask);
250     _sfTriangles.setValue(value);
252 //! Get the value of the ProxyGroup::_sfPositions field.
254 inline
255 UInt32 &ProxyGroupBase::editPositions(void)
257     editSField(PositionsFieldMask);
259     return _sfPositions.getValue();
262 //! Get the value of the ProxyGroup::_sfPositions field.
263 inline
264       UInt32  ProxyGroupBase::getPositions(void) const
266     return _sfPositions.getValue();
269 //! Set the value of the ProxyGroup::_sfPositions field.
270 inline
271 void ProxyGroupBase::setPositions(const UInt32 value)
273     editSField(PositionsFieldMask);
275     _sfPositions.setValue(value);
277 //! Get the value of the ProxyGroup::_sfGeometries field.
279 inline
280 UInt32 &ProxyGroupBase::editGeometries(void)
282     editSField(GeometriesFieldMask);
284     return _sfGeometries.getValue();
287 //! Get the value of the ProxyGroup::_sfGeometries field.
288 inline
289       UInt32  ProxyGroupBase::getGeometries(void) const
291     return _sfGeometries.getValue();
294 //! Set the value of the ProxyGroup::_sfGeometries field.
295 inline
296 void ProxyGroupBase::setGeometries(const UInt32 value)
298     editSField(GeometriesFieldMask);
300     _sfGeometries.setValue(value);
302 //! Get the value of the ProxyGroup::_sfAbsoluteUrl field.
304 inline
305 std::string &ProxyGroupBase::editAbsoluteUrl(void)
307     editSField(AbsoluteUrlFieldMask);
309     return _sfAbsoluteUrl.getValue();
312 //! Get the value of the ProxyGroup::_sfAbsoluteUrl field.
313 inline
314 const std::string &ProxyGroupBase::getAbsoluteUrl(void) const
316     return _sfAbsoluteUrl.getValue();
319 //! Set the value of the ProxyGroup::_sfAbsoluteUrl field.
320 inline
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.
329 inline
330       UInt8  ProxyGroupBase::getInline(const UInt32 index) const
332     return _mfInline[index];
335 inline
336 MFUInt8            ::reference ProxyGroupBase::editInline(const UInt32 index)
338     editMField(InlineFieldMask, _mfInline);
340     return _mfInline[index];
344 #ifdef OSG_MT_CPTR_ASPECT
345 inline
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,
389                                 syncMode,
390                                 uiSyncInfo,
391                                 oOffsets);
393 #endif
396 inline
397 const Char8 *ProxyGroupBase::getClassname(void)
399     return "ProxyGroup";
401 OSG_GEN_CONTAINERPTR(ProxyGroup);
403 OSG_END_NAMESPACE