fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / State / OpenGL / OSGTexGenChunkBase.inl
blob822f9104d7b7dc3409c139f92f64015161e7dbd3
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 TexGenChunk!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &TexGenChunkBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 TexGenChunkBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 TexGenChunkBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TexGenChunk::_sfGenFuncS field.
79 inline
80 GLenum &TexGenChunkBase::editGenFuncS(void)
82     editSField(GenFuncSFieldMask);
84     return _sfGenFuncS.getValue();
87 //! Get the value of the TexGenChunk::_sfGenFuncS field.
88 inline
89 const GLenum &TexGenChunkBase::getGenFuncS(void) const
91     return _sfGenFuncS.getValue();
94 //! Set the value of the TexGenChunk::_sfGenFuncS field.
95 inline
96 void TexGenChunkBase::setGenFuncS(const GLenum &value)
98     editSField(GenFuncSFieldMask);
100     _sfGenFuncS.setValue(value);
102 //! Get the value of the TexGenChunk::_sfGenFuncT field.
104 inline
105 GLenum &TexGenChunkBase::editGenFuncT(void)
107     editSField(GenFuncTFieldMask);
109     return _sfGenFuncT.getValue();
112 //! Get the value of the TexGenChunk::_sfGenFuncT field.
113 inline
114 const GLenum &TexGenChunkBase::getGenFuncT(void) const
116     return _sfGenFuncT.getValue();
119 //! Set the value of the TexGenChunk::_sfGenFuncT field.
120 inline
121 void TexGenChunkBase::setGenFuncT(const GLenum &value)
123     editSField(GenFuncTFieldMask);
125     _sfGenFuncT.setValue(value);
127 //! Get the value of the TexGenChunk::_sfGenFuncR field.
129 inline
130 GLenum &TexGenChunkBase::editGenFuncR(void)
132     editSField(GenFuncRFieldMask);
134     return _sfGenFuncR.getValue();
137 //! Get the value of the TexGenChunk::_sfGenFuncR field.
138 inline
139 const GLenum &TexGenChunkBase::getGenFuncR(void) const
141     return _sfGenFuncR.getValue();
144 //! Set the value of the TexGenChunk::_sfGenFuncR field.
145 inline
146 void TexGenChunkBase::setGenFuncR(const GLenum &value)
148     editSField(GenFuncRFieldMask);
150     _sfGenFuncR.setValue(value);
152 //! Get the value of the TexGenChunk::_sfGenFuncQ field.
154 inline
155 GLenum &TexGenChunkBase::editGenFuncQ(void)
157     editSField(GenFuncQFieldMask);
159     return _sfGenFuncQ.getValue();
162 //! Get the value of the TexGenChunk::_sfGenFuncQ field.
163 inline
164 const GLenum &TexGenChunkBase::getGenFuncQ(void) const
166     return _sfGenFuncQ.getValue();
169 //! Set the value of the TexGenChunk::_sfGenFuncQ field.
170 inline
171 void TexGenChunkBase::setGenFuncQ(const GLenum &value)
173     editSField(GenFuncQFieldMask);
175     _sfGenFuncQ.setValue(value);
177 //! Get the value of the TexGenChunk::_sfGenFuncSPlane field.
179 inline
180 Vec4f &TexGenChunkBase::editGenFuncSPlane(void)
182     editSField(GenFuncSPlaneFieldMask);
184     return _sfGenFuncSPlane.getValue();
187 //! Get the value of the TexGenChunk::_sfGenFuncSPlane field.
188 inline
189 const Vec4f &TexGenChunkBase::getGenFuncSPlane(void) const
191     return _sfGenFuncSPlane.getValue();
194 //! Set the value of the TexGenChunk::_sfGenFuncSPlane field.
195 inline
196 void TexGenChunkBase::setGenFuncSPlane(const Vec4f &value)
198     editSField(GenFuncSPlaneFieldMask);
200     _sfGenFuncSPlane.setValue(value);
202 //! Get the value of the TexGenChunk::_sfGenFuncTPlane field.
204 inline
205 Vec4f &TexGenChunkBase::editGenFuncTPlane(void)
207     editSField(GenFuncTPlaneFieldMask);
209     return _sfGenFuncTPlane.getValue();
212 //! Get the value of the TexGenChunk::_sfGenFuncTPlane field.
213 inline
214 const Vec4f &TexGenChunkBase::getGenFuncTPlane(void) const
216     return _sfGenFuncTPlane.getValue();
219 //! Set the value of the TexGenChunk::_sfGenFuncTPlane field.
220 inline
221 void TexGenChunkBase::setGenFuncTPlane(const Vec4f &value)
223     editSField(GenFuncTPlaneFieldMask);
225     _sfGenFuncTPlane.setValue(value);
227 //! Get the value of the TexGenChunk::_sfGenFuncRPlane field.
229 inline
230 Vec4f &TexGenChunkBase::editGenFuncRPlane(void)
232     editSField(GenFuncRPlaneFieldMask);
234     return _sfGenFuncRPlane.getValue();
237 //! Get the value of the TexGenChunk::_sfGenFuncRPlane field.
238 inline
239 const Vec4f &TexGenChunkBase::getGenFuncRPlane(void) const
241     return _sfGenFuncRPlane.getValue();
244 //! Set the value of the TexGenChunk::_sfGenFuncRPlane field.
245 inline
246 void TexGenChunkBase::setGenFuncRPlane(const Vec4f &value)
248     editSField(GenFuncRPlaneFieldMask);
250     _sfGenFuncRPlane.setValue(value);
252 //! Get the value of the TexGenChunk::_sfGenFuncQPlane field.
254 inline
255 Vec4f &TexGenChunkBase::editGenFuncQPlane(void)
257     editSField(GenFuncQPlaneFieldMask);
259     return _sfGenFuncQPlane.getValue();
262 //! Get the value of the TexGenChunk::_sfGenFuncQPlane field.
263 inline
264 const Vec4f &TexGenChunkBase::getGenFuncQPlane(void) const
266     return _sfGenFuncQPlane.getValue();
269 //! Set the value of the TexGenChunk::_sfGenFuncQPlane field.
270 inline
271 void TexGenChunkBase::setGenFuncQPlane(const Vec4f &value)
273     editSField(GenFuncQPlaneFieldMask);
275     _sfGenFuncQPlane.setValue(value);
277 //! Get the value of the TexGenChunk::_sfEyeModelViewMatrix field.
279 inline
280 Matrix &TexGenChunkBase::editEyeModelViewMatrix(void)
282     editSField(EyeModelViewMatrixFieldMask);
284     return _sfEyeModelViewMatrix.getValue();
287 //! Get the value of the TexGenChunk::_sfEyeModelViewMatrix field.
288 inline
289 const Matrix &TexGenChunkBase::getEyeModelViewMatrix(void) const
291     return _sfEyeModelViewMatrix.getValue();
294 //! Set the value of the TexGenChunk::_sfEyeModelViewMatrix field.
295 inline
296 void TexGenChunkBase::setEyeModelViewMatrix(const Matrix &value)
298     editSField(EyeModelViewMatrixFieldMask);
300     _sfEyeModelViewMatrix.setValue(value);
302 //! Get the value of the TexGenChunk::_sfEyeModelViewMode field.
304 inline
305 UInt32 &TexGenChunkBase::editEyeModelViewMode(void)
307     editSField(EyeModelViewModeFieldMask);
309     return _sfEyeModelViewMode.getValue();
312 //! Get the value of the TexGenChunk::_sfEyeModelViewMode field.
313 inline
314       UInt32  TexGenChunkBase::getEyeModelViewMode(void) const
316     return _sfEyeModelViewMode.getValue();
319 //! Set the value of the TexGenChunk::_sfEyeModelViewMode field.
320 inline
321 void TexGenChunkBase::setEyeModelViewMode(const UInt32 value)
323     editSField(EyeModelViewModeFieldMask);
325     _sfEyeModelViewMode.setValue(value);
329 #ifdef OSG_MT_CPTR_ASPECT
330 inline
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);
381 #endif
384 inline
385 const Char8 *TexGenChunkBase::getClassname(void)
387     return "TexGenChunk";
389 OSG_GEN_CONTAINERPTR(TexGenChunk);
391 OSG_END_NAMESPACE