fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Drawables / Geometry / Base / OSGGeometryBase.inl
blobb5eb1f211a879e9730492adb703b54dcbe076456
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 Geometry!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &GeometryBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 GeometryBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 GeometryBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the Geometry::_sfPatchVertices field.
79 inline
80 UInt32 &GeometryBase::editPatchVertices(void)
82     editSField(PatchVerticesFieldMask);
84     return _sfPatchVertices.getValue();
87 //! Get the value of the Geometry::_sfPatchVertices field.
88 inline
89       UInt32  GeometryBase::getPatchVertices(void) const
91     return _sfPatchVertices.getValue();
94 //! Set the value of the Geometry::_sfPatchVertices field.
95 inline
96 void GeometryBase::setPatchVertices(const UInt32 value)
98     editSField(PatchVerticesFieldMask);
100     _sfPatchVertices.setValue(value);
102 //! Get the value of the Geometry::_sfDlistCache field.
104 inline
105 bool &GeometryBase::editDlistCache(void)
107     editSField(DlistCacheFieldMask);
109     return _sfDlistCache.getValue();
112 //! Get the value of the Geometry::_sfDlistCache field.
113 inline
114       bool  GeometryBase::getDlistCache(void) const
116     return _sfDlistCache.getValue();
119 //! Set the value of the Geometry::_sfDlistCache field.
120 inline
121 void GeometryBase::setDlistCache(const bool value)
123     editSField(DlistCacheFieldMask);
125     _sfDlistCache.setValue(value);
127 //! Get the value of the Geometry::_sfUseVAO field.
129 inline
130 bool &GeometryBase::editUseVAO(void)
132     editSField(UseVAOFieldMask);
134     return _sfUseVAO.getValue();
137 //! Get the value of the Geometry::_sfUseVAO field.
138 inline
139       bool  GeometryBase::getUseVAO(void) const
141     return _sfUseVAO.getValue();
144 //! Set the value of the Geometry::_sfUseVAO field.
145 inline
146 void GeometryBase::setUseVAO(const bool value)
148     editSField(UseVAOFieldMask);
150     _sfUseVAO.setValue(value);
152 //! Get the value of the Geometry::_sfUseAttribCalls field.
154 inline
155 bool &GeometryBase::editUseAttribCalls(void)
157     editSField(UseAttribCallsFieldMask);
159     return _sfUseAttribCalls.getValue();
162 //! Get the value of the Geometry::_sfUseAttribCalls field.
163 inline
164       bool  GeometryBase::getUseAttribCalls(void) const
166     return _sfUseAttribCalls.getValue();
169 //! Set the value of the Geometry::_sfUseAttribCalls field.
170 inline
171 void GeometryBase::setUseAttribCalls(const bool value)
173     editSField(UseAttribCallsFieldMask);
175     _sfUseAttribCalls.setValue(value);
177 //! Get the value of the Geometry::_sfClassicGLId field.
179 inline
180 Int32 &GeometryBase::editClassicGLId(void)
182     editSField(ClassicGLIdFieldMask);
184     return _sfClassicGLId.getValue();
187 //! Get the value of the Geometry::_sfClassicGLId field.
188 inline
189       Int32  GeometryBase::getClassicGLId(void) const
191     return _sfClassicGLId.getValue();
194 //! Set the value of the Geometry::_sfClassicGLId field.
195 inline
196 void GeometryBase::setClassicGLId(const Int32 value)
198     editSField(ClassicGLIdFieldMask);
200     _sfClassicGLId.setValue(value);
202 //! Get the value of the Geometry::_sfAttGLId field.
204 inline
205 Int32 &GeometryBase::editAttGLId(void)
207     editSField(AttGLIdFieldMask);
209     return _sfAttGLId.getValue();
212 //! Get the value of the Geometry::_sfAttGLId field.
213 inline
214       Int32  GeometryBase::getAttGLId(void) const
216     return _sfAttGLId.getValue();
219 //! Set the value of the Geometry::_sfAttGLId field.
220 inline
221 void GeometryBase::setAttGLId(const Int32 value)
223     editSField(AttGLIdFieldMask);
225     _sfAttGLId.setValue(value);
227 //! Get the value of the Geometry::_sfClassicVaoGLId field.
229 inline
230 Int32 &GeometryBase::editClassicVaoGLId(void)
232     editSField(ClassicVaoGLIdFieldMask);
234     return _sfClassicVaoGLId.getValue();
237 //! Get the value of the Geometry::_sfClassicVaoGLId field.
238 inline
239       Int32  GeometryBase::getClassicVaoGLId(void) const
241     return _sfClassicVaoGLId.getValue();
244 //! Set the value of the Geometry::_sfClassicVaoGLId field.
245 inline
246 void GeometryBase::setClassicVaoGLId(const Int32 value)
248     editSField(ClassicVaoGLIdFieldMask);
250     _sfClassicVaoGLId.setValue(value);
252 //! Get the value of the Geometry::_sfAttribVaoGLId field.
254 inline
255 Int32 &GeometryBase::editAttribVaoGLId(void)
257     editSField(AttribVaoGLIdFieldMask);
259     return _sfAttribVaoGLId.getValue();
262 //! Get the value of the Geometry::_sfAttribVaoGLId field.
263 inline
264       Int32  GeometryBase::getAttribVaoGLId(void) const
266     return _sfAttribVaoGLId.getValue();
269 //! Set the value of the Geometry::_sfAttribVaoGLId field.
270 inline
271 void GeometryBase::setAttribVaoGLId(const Int32 value)
273     editSField(AttribVaoGLIdFieldMask);
275     _sfAttribVaoGLId.setValue(value);
281 #ifdef OSG_MT_CPTR_ASPECT
282 inline
283 void GeometryBase::execSync (      GeometryBase *pFrom,
284                                         ConstFieldMaskArg  whichField,
285                                         AspectOffsetStore &oOffsets,
286                                         ConstFieldMaskArg  syncMode,
287                                   const UInt32             uiSyncInfo)
289     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
291     if(FieldBits::NoField != (TypesFieldMask & whichField))
292         _sfTypes.syncWith(pFrom->_sfTypes);
294     if(FieldBits::NoField != (LengthsFieldMask & whichField))
295         _sfLengths.syncWith(pFrom->_sfLengths);
297     if(FieldBits::NoField != (PropertiesFieldMask & whichField))
298         _mfProperties.syncWith(pFrom->_mfProperties,
299                                 syncMode,
300                                 uiSyncInfo,
301                                 oOffsets);
303     if(FieldBits::NoField != (PropIndicesFieldMask & whichField))
304         _mfPropIndices.syncWith(pFrom->_mfPropIndices,
305                                 syncMode,
306                                 uiSyncInfo,
307                                 oOffsets);
309     if(FieldBits::NoField != (PatchVerticesFieldMask & whichField))
310         _sfPatchVertices.syncWith(pFrom->_sfPatchVertices);
312     if(FieldBits::NoField != (DlistCacheFieldMask & whichField))
313         _sfDlistCache.syncWith(pFrom->_sfDlistCache);
315     if(FieldBits::NoField != (UseVAOFieldMask & whichField))
316         _sfUseVAO.syncWith(pFrom->_sfUseVAO);
318     if(FieldBits::NoField != (UseAttribCallsFieldMask & whichField))
319         _sfUseAttribCalls.syncWith(pFrom->_sfUseAttribCalls);
321     if(FieldBits::NoField != (ClassicGLIdFieldMask & whichField))
322         _sfClassicGLId.syncWith(pFrom->_sfClassicGLId);
324     if(FieldBits::NoField != (AttGLIdFieldMask & whichField))
325         _sfAttGLId.syncWith(pFrom->_sfAttGLId);
327     if(FieldBits::NoField != (ClassicVaoGLIdFieldMask & whichField))
328         _sfClassicVaoGLId.syncWith(pFrom->_sfClassicVaoGLId);
330     if(FieldBits::NoField != (AttribVaoGLIdFieldMask & whichField))
331         _sfAttribVaoGLId.syncWith(pFrom->_sfAttribVaoGLId);
333 #endif
336 inline
337 const Char8 *GeometryBase::getClassname(void)
339     return "Geometry";
341 OSG_GEN_CONTAINERPTR(Geometry);
343 OSG_END_NAMESPACE