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 &TexGenChunkBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 TexGenChunkBase::getClassTypeId(void)
70 OSG::UInt16 TexGenChunkBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TexGenChunk::_sfGenFuncS field.
80 GLenum &TexGenChunkBase::editGenFuncS(void)
82 editSField(GenFuncSFieldMask);
84 return _sfGenFuncS.getValue();
87 //! Get the value of the TexGenChunk::_sfGenFuncS field.
89 const GLenum &TexGenChunkBase::getGenFuncS(void) const
91 return _sfGenFuncS.getValue();
94 //! Set the value of the TexGenChunk::_sfGenFuncS field.
96 void TexGenChunkBase::setGenFuncS(const GLenum &value)
98 editSField(GenFuncSFieldMask);
100 _sfGenFuncS.setValue(value);
102 //! Get the value of the TexGenChunk::_sfGenFuncT field.
105 GLenum &TexGenChunkBase::editGenFuncT(void)
107 editSField(GenFuncTFieldMask);
109 return _sfGenFuncT.getValue();
112 //! Get the value of the TexGenChunk::_sfGenFuncT field.
114 const GLenum &TexGenChunkBase::getGenFuncT(void) const
116 return _sfGenFuncT.getValue();
119 //! Set the value of the TexGenChunk::_sfGenFuncT field.
121 void TexGenChunkBase::setGenFuncT(const GLenum &value)
123 editSField(GenFuncTFieldMask);
125 _sfGenFuncT.setValue(value);
127 //! Get the value of the TexGenChunk::_sfGenFuncR field.
130 GLenum &TexGenChunkBase::editGenFuncR(void)
132 editSField(GenFuncRFieldMask);
134 return _sfGenFuncR.getValue();
137 //! Get the value of the TexGenChunk::_sfGenFuncR field.
139 const GLenum &TexGenChunkBase::getGenFuncR(void) const
141 return _sfGenFuncR.getValue();
144 //! Set the value of the TexGenChunk::_sfGenFuncR field.
146 void TexGenChunkBase::setGenFuncR(const GLenum &value)
148 editSField(GenFuncRFieldMask);
150 _sfGenFuncR.setValue(value);
152 //! Get the value of the TexGenChunk::_sfGenFuncQ field.
155 GLenum &TexGenChunkBase::editGenFuncQ(void)
157 editSField(GenFuncQFieldMask);
159 return _sfGenFuncQ.getValue();
162 //! Get the value of the TexGenChunk::_sfGenFuncQ field.
164 const GLenum &TexGenChunkBase::getGenFuncQ(void) const
166 return _sfGenFuncQ.getValue();
169 //! Set the value of the TexGenChunk::_sfGenFuncQ field.
171 void TexGenChunkBase::setGenFuncQ(const GLenum &value)
173 editSField(GenFuncQFieldMask);
175 _sfGenFuncQ.setValue(value);
177 //! Get the value of the TexGenChunk::_sfGenFuncSPlane field.
180 Vec4f &TexGenChunkBase::editGenFuncSPlane(void)
182 editSField(GenFuncSPlaneFieldMask);
184 return _sfGenFuncSPlane.getValue();
187 //! Get the value of the TexGenChunk::_sfGenFuncSPlane field.
189 const Vec4f &TexGenChunkBase::getGenFuncSPlane(void) const
191 return _sfGenFuncSPlane.getValue();
194 //! Set the value of the TexGenChunk::_sfGenFuncSPlane field.
196 void TexGenChunkBase::setGenFuncSPlane(const Vec4f &value)
198 editSField(GenFuncSPlaneFieldMask);
200 _sfGenFuncSPlane.setValue(value);
202 //! Get the value of the TexGenChunk::_sfGenFuncTPlane field.
205 Vec4f &TexGenChunkBase::editGenFuncTPlane(void)
207 editSField(GenFuncTPlaneFieldMask);
209 return _sfGenFuncTPlane.getValue();
212 //! Get the value of the TexGenChunk::_sfGenFuncTPlane field.
214 const Vec4f &TexGenChunkBase::getGenFuncTPlane(void) const
216 return _sfGenFuncTPlane.getValue();
219 //! Set the value of the TexGenChunk::_sfGenFuncTPlane field.
221 void TexGenChunkBase::setGenFuncTPlane(const Vec4f &value)
223 editSField(GenFuncTPlaneFieldMask);
225 _sfGenFuncTPlane.setValue(value);
227 //! Get the value of the TexGenChunk::_sfGenFuncRPlane field.
230 Vec4f &TexGenChunkBase::editGenFuncRPlane(void)
232 editSField(GenFuncRPlaneFieldMask);
234 return _sfGenFuncRPlane.getValue();
237 //! Get the value of the TexGenChunk::_sfGenFuncRPlane field.
239 const Vec4f &TexGenChunkBase::getGenFuncRPlane(void) const
241 return _sfGenFuncRPlane.getValue();
244 //! Set the value of the TexGenChunk::_sfGenFuncRPlane field.
246 void TexGenChunkBase::setGenFuncRPlane(const Vec4f &value)
248 editSField(GenFuncRPlaneFieldMask);
250 _sfGenFuncRPlane.setValue(value);
252 //! Get the value of the TexGenChunk::_sfGenFuncQPlane field.
255 Vec4f &TexGenChunkBase::editGenFuncQPlane(void)
257 editSField(GenFuncQPlaneFieldMask);
259 return _sfGenFuncQPlane.getValue();
262 //! Get the value of the TexGenChunk::_sfGenFuncQPlane field.
264 const Vec4f &TexGenChunkBase::getGenFuncQPlane(void) const
266 return _sfGenFuncQPlane.getValue();
269 //! Set the value of the TexGenChunk::_sfGenFuncQPlane field.
271 void TexGenChunkBase::setGenFuncQPlane(const Vec4f &value)
273 editSField(GenFuncQPlaneFieldMask);
275 _sfGenFuncQPlane.setValue(value);
277 //! Get the value of the TexGenChunk::_sfEyeModelViewMatrix field.
280 Matrix &TexGenChunkBase::editEyeModelViewMatrix(void)
282 editSField(EyeModelViewMatrixFieldMask);
284 return _sfEyeModelViewMatrix.getValue();
287 //! Get the value of the TexGenChunk::_sfEyeModelViewMatrix field.
289 const Matrix &TexGenChunkBase::getEyeModelViewMatrix(void) const
291 return _sfEyeModelViewMatrix.getValue();
294 //! Set the value of the TexGenChunk::_sfEyeModelViewMatrix field.
296 void TexGenChunkBase::setEyeModelViewMatrix(const Matrix &value)
298 editSField(EyeModelViewMatrixFieldMask);
300 _sfEyeModelViewMatrix.setValue(value);
302 //! Get the value of the TexGenChunk::_sfEyeModelViewMode field.
305 UInt32 &TexGenChunkBase::editEyeModelViewMode(void)
307 editSField(EyeModelViewModeFieldMask);
309 return _sfEyeModelViewMode.getValue();
312 //! Get the value of the TexGenChunk::_sfEyeModelViewMode field.
314 UInt32 TexGenChunkBase::getEyeModelViewMode(void) const
316 return _sfEyeModelViewMode.getValue();
319 //! Set the value of the TexGenChunk::_sfEyeModelViewMode field.
321 void TexGenChunkBase::setEyeModelViewMode(const UInt32 value)
323 editSField(EyeModelViewModeFieldMask);
325 _sfEyeModelViewMode.setValue(value);
329 #ifdef OSG_MT_CPTR_ASPECT
331 void TexGenChunkBase::execSync ( TexGenChunkBase *pFrom,
332 ConstFieldMaskArg whichField,
333 AspectOffsetStore &oOffsets,
334 ConstFieldMaskArg syncMode,
335 const UInt32 uiSyncInfo)
337 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
339 if(FieldBits::NoField != (GenFuncSFieldMask & whichField))
340 _sfGenFuncS.syncWith(pFrom->_sfGenFuncS);
342 if(FieldBits::NoField != (GenFuncTFieldMask & whichField))
343 _sfGenFuncT.syncWith(pFrom->_sfGenFuncT);
345 if(FieldBits::NoField != (GenFuncRFieldMask & whichField))
346 _sfGenFuncR.syncWith(pFrom->_sfGenFuncR);
348 if(FieldBits::NoField != (GenFuncQFieldMask & whichField))
349 _sfGenFuncQ.syncWith(pFrom->_sfGenFuncQ);
351 if(FieldBits::NoField != (GenFuncSPlaneFieldMask & whichField))
352 _sfGenFuncSPlane.syncWith(pFrom->_sfGenFuncSPlane);
354 if(FieldBits::NoField != (GenFuncTPlaneFieldMask & whichField))
355 _sfGenFuncTPlane.syncWith(pFrom->_sfGenFuncTPlane);
357 if(FieldBits::NoField != (GenFuncRPlaneFieldMask & whichField))
358 _sfGenFuncRPlane.syncWith(pFrom->_sfGenFuncRPlane);
360 if(FieldBits::NoField != (GenFuncQPlaneFieldMask & whichField))
361 _sfGenFuncQPlane.syncWith(pFrom->_sfGenFuncQPlane);
363 if(FieldBits::NoField != (SBeaconFieldMask & whichField))
364 _sfSBeacon.syncWith(pFrom->_sfSBeacon);
366 if(FieldBits::NoField != (TBeaconFieldMask & whichField))
367 _sfTBeacon.syncWith(pFrom->_sfTBeacon);
369 if(FieldBits::NoField != (RBeaconFieldMask & whichField))
370 _sfRBeacon.syncWith(pFrom->_sfRBeacon);
372 if(FieldBits::NoField != (QBeaconFieldMask & whichField))
373 _sfQBeacon.syncWith(pFrom->_sfQBeacon);
375 if(FieldBits::NoField != (EyeModelViewMatrixFieldMask & whichField))
376 _sfEyeModelViewMatrix.syncWith(pFrom->_sfEyeModelViewMatrix);
378 if(FieldBits::NoField != (EyeModelViewModeFieldMask & whichField))
379 _sfEyeModelViewMode.syncWith(pFrom->_sfEyeModelViewMode);
385 const Char8 *TexGenChunkBase::getClassname(void)
387 return "TexGenChunk";
389 OSG_GEN_CONTAINERPTR(TexGenChunk);