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 &GeometryBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 GeometryBase::getClassTypeId(void)
70 OSG::UInt16 GeometryBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the Geometry::_sfPatchVertices field.
80 UInt32 &GeometryBase::editPatchVertices(void)
82 editSField(PatchVerticesFieldMask);
84 return _sfPatchVertices.getValue();
87 //! Get the value of the Geometry::_sfPatchVertices field.
89 UInt32 GeometryBase::getPatchVertices(void) const
91 return _sfPatchVertices.getValue();
94 //! Set the value of the Geometry::_sfPatchVertices field.
96 void GeometryBase::setPatchVertices(const UInt32 value)
98 editSField(PatchVerticesFieldMask);
100 _sfPatchVertices.setValue(value);
102 //! Get the value of the Geometry::_sfDlistCache field.
105 bool &GeometryBase::editDlistCache(void)
107 editSField(DlistCacheFieldMask);
109 return _sfDlistCache.getValue();
112 //! Get the value of the Geometry::_sfDlistCache field.
114 bool GeometryBase::getDlistCache(void) const
116 return _sfDlistCache.getValue();
119 //! Set the value of the Geometry::_sfDlistCache field.
121 void GeometryBase::setDlistCache(const bool value)
123 editSField(DlistCacheFieldMask);
125 _sfDlistCache.setValue(value);
127 //! Get the value of the Geometry::_sfUseVAO field.
130 bool &GeometryBase::editUseVAO(void)
132 editSField(UseVAOFieldMask);
134 return _sfUseVAO.getValue();
137 //! Get the value of the Geometry::_sfUseVAO field.
139 bool GeometryBase::getUseVAO(void) const
141 return _sfUseVAO.getValue();
144 //! Set the value of the Geometry::_sfUseVAO field.
146 void GeometryBase::setUseVAO(const bool value)
148 editSField(UseVAOFieldMask);
150 _sfUseVAO.setValue(value);
152 //! Get the value of the Geometry::_sfUseAttribCalls field.
155 bool &GeometryBase::editUseAttribCalls(void)
157 editSField(UseAttribCallsFieldMask);
159 return _sfUseAttribCalls.getValue();
162 //! Get the value of the Geometry::_sfUseAttribCalls field.
164 bool GeometryBase::getUseAttribCalls(void) const
166 return _sfUseAttribCalls.getValue();
169 //! Set the value of the Geometry::_sfUseAttribCalls field.
171 void GeometryBase::setUseAttribCalls(const bool value)
173 editSField(UseAttribCallsFieldMask);
175 _sfUseAttribCalls.setValue(value);
177 //! Get the value of the Geometry::_sfClassicGLId field.
180 Int32 &GeometryBase::editClassicGLId(void)
182 editSField(ClassicGLIdFieldMask);
184 return _sfClassicGLId.getValue();
187 //! Get the value of the Geometry::_sfClassicGLId field.
189 Int32 GeometryBase::getClassicGLId(void) const
191 return _sfClassicGLId.getValue();
194 //! Set the value of the Geometry::_sfClassicGLId field.
196 void GeometryBase::setClassicGLId(const Int32 value)
198 editSField(ClassicGLIdFieldMask);
200 _sfClassicGLId.setValue(value);
202 //! Get the value of the Geometry::_sfAttGLId field.
205 Int32 &GeometryBase::editAttGLId(void)
207 editSField(AttGLIdFieldMask);
209 return _sfAttGLId.getValue();
212 //! Get the value of the Geometry::_sfAttGLId field.
214 Int32 GeometryBase::getAttGLId(void) const
216 return _sfAttGLId.getValue();
219 //! Set the value of the Geometry::_sfAttGLId field.
221 void GeometryBase::setAttGLId(const Int32 value)
223 editSField(AttGLIdFieldMask);
225 _sfAttGLId.setValue(value);
227 //! Get the value of the Geometry::_sfClassicVaoGLId field.
230 Int32 &GeometryBase::editClassicVaoGLId(void)
232 editSField(ClassicVaoGLIdFieldMask);
234 return _sfClassicVaoGLId.getValue();
237 //! Get the value of the Geometry::_sfClassicVaoGLId field.
239 Int32 GeometryBase::getClassicVaoGLId(void) const
241 return _sfClassicVaoGLId.getValue();
244 //! Set the value of the Geometry::_sfClassicVaoGLId field.
246 void GeometryBase::setClassicVaoGLId(const Int32 value)
248 editSField(ClassicVaoGLIdFieldMask);
250 _sfClassicVaoGLId.setValue(value);
252 //! Get the value of the Geometry::_sfAttribVaoGLId field.
255 Int32 &GeometryBase::editAttribVaoGLId(void)
257 editSField(AttribVaoGLIdFieldMask);
259 return _sfAttribVaoGLId.getValue();
262 //! Get the value of the Geometry::_sfAttribVaoGLId field.
264 Int32 GeometryBase::getAttribVaoGLId(void) const
266 return _sfAttribVaoGLId.getValue();
269 //! Set the value of the Geometry::_sfAttribVaoGLId field.
271 void GeometryBase::setAttribVaoGLId(const Int32 value)
273 editSField(AttribVaoGLIdFieldMask);
275 _sfAttribVaoGLId.setValue(value);
281 #ifdef OSG_MT_CPTR_ASPECT
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,
303 if(FieldBits::NoField != (PropIndicesFieldMask & whichField))
304 _mfPropIndices.syncWith(pFrom->_mfPropIndices,
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);
337 const Char8 *GeometryBase::getClassname(void)
341 OSG_GEN_CONTAINERPTR(Geometry);