changed: gcc8 base update
[opensg.git] / Source / System / State / Base / OSGBlendChunkBase.inl
blob1e1fc7837c54058175b7841c5629b84eb734ebf2
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 BlendChunk!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &BlendChunkBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 BlendChunkBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 BlendChunkBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the BlendChunk::_sfSrcFactor field.
79 inline
80 GLenum &BlendChunkBase::editSrcFactor(void)
82     editSField(SrcFactorFieldMask);
84     return _sfSrcFactor.getValue();
87 //! Get the value of the BlendChunk::_sfSrcFactor field.
88 inline
89 const GLenum &BlendChunkBase::getSrcFactor(void) const
91     return _sfSrcFactor.getValue();
94 //! Set the value of the BlendChunk::_sfSrcFactor field.
95 inline
96 void BlendChunkBase::setSrcFactor(const GLenum &value)
98     editSField(SrcFactorFieldMask);
100     _sfSrcFactor.setValue(value);
102 //! Get the value of the BlendChunk::_sfDestFactor field.
104 inline
105 GLenum &BlendChunkBase::editDestFactor(void)
107     editSField(DestFactorFieldMask);
109     return _sfDestFactor.getValue();
112 //! Get the value of the BlendChunk::_sfDestFactor field.
113 inline
114 const GLenum &BlendChunkBase::getDestFactor(void) const
116     return _sfDestFactor.getValue();
119 //! Set the value of the BlendChunk::_sfDestFactor field.
120 inline
121 void BlendChunkBase::setDestFactor(const GLenum &value)
123     editSField(DestFactorFieldMask);
125     _sfDestFactor.setValue(value);
127 //! Get the value of the BlendChunk::_sfEquation field.
129 inline
130 GLenum &BlendChunkBase::editEquation(void)
132     editSField(EquationFieldMask);
134     return _sfEquation.getValue();
137 //! Get the value of the BlendChunk::_sfEquation field.
138 inline
139 const GLenum &BlendChunkBase::getEquation(void) const
141     return _sfEquation.getValue();
144 //! Set the value of the BlendChunk::_sfEquation field.
145 inline
146 void BlendChunkBase::setEquation(const GLenum &value)
148     editSField(EquationFieldMask);
150     _sfEquation.setValue(value);
152 //! Get the value of the BlendChunk::_sfColor field.
154 inline
155 Color4f &BlendChunkBase::editColor(void)
157     editSField(ColorFieldMask);
159     return _sfColor.getValue();
162 //! Get the value of the BlendChunk::_sfColor field.
163 inline
164 const Color4f &BlendChunkBase::getColor(void) const
166     return _sfColor.getValue();
169 //! Set the value of the BlendChunk::_sfColor field.
170 inline
171 void BlendChunkBase::setColor(const Color4f &value)
173     editSField(ColorFieldMask);
175     _sfColor.setValue(value);
177 //! Get the value of the BlendChunk::_sfAlphaFunc field.
179 inline
180 GLenum &BlendChunkBase::editAlphaFunc(void)
182     editSField(AlphaFuncFieldMask);
184     return _sfAlphaFunc.getValue();
187 //! Get the value of the BlendChunk::_sfAlphaFunc field.
188 inline
189 const GLenum &BlendChunkBase::getAlphaFunc(void) const
191     return _sfAlphaFunc.getValue();
194 //! Set the value of the BlendChunk::_sfAlphaFunc field.
195 inline
196 void BlendChunkBase::setAlphaFunc(const GLenum &value)
198     editSField(AlphaFuncFieldMask);
200     _sfAlphaFunc.setValue(value);
202 //! Get the value of the BlendChunk::_sfAlphaValue field.
204 inline
205 Real32 &BlendChunkBase::editAlphaValue(void)
207     editSField(AlphaValueFieldMask);
209     return _sfAlphaValue.getValue();
212 //! Get the value of the BlendChunk::_sfAlphaValue field.
213 inline
214       Real32  BlendChunkBase::getAlphaValue(void) const
216     return _sfAlphaValue.getValue();
219 //! Set the value of the BlendChunk::_sfAlphaValue field.
220 inline
221 void BlendChunkBase::setAlphaValue(const Real32 value)
223     editSField(AlphaValueFieldMask);
225     _sfAlphaValue.setValue(value);
227 //! Get the value of the BlendChunk::_sfAlphaSrcFactor field.
229 inline
230 GLenum &BlendChunkBase::editAlphaSrcFactor(void)
232     editSField(AlphaSrcFactorFieldMask);
234     return _sfAlphaSrcFactor.getValue();
237 //! Get the value of the BlendChunk::_sfAlphaSrcFactor field.
238 inline
239 const GLenum &BlendChunkBase::getAlphaSrcFactor(void) const
241     return _sfAlphaSrcFactor.getValue();
244 //! Set the value of the BlendChunk::_sfAlphaSrcFactor field.
245 inline
246 void BlendChunkBase::setAlphaSrcFactor(const GLenum &value)
248     editSField(AlphaSrcFactorFieldMask);
250     _sfAlphaSrcFactor.setValue(value);
252 //! Get the value of the BlendChunk::_sfAlphaDestFactor field.
254 inline
255 GLenum &BlendChunkBase::editAlphaDestFactor(void)
257     editSField(AlphaDestFactorFieldMask);
259     return _sfAlphaDestFactor.getValue();
262 //! Get the value of the BlendChunk::_sfAlphaDestFactor field.
263 inline
264 const GLenum &BlendChunkBase::getAlphaDestFactor(void) const
266     return _sfAlphaDestFactor.getValue();
269 //! Set the value of the BlendChunk::_sfAlphaDestFactor field.
270 inline
271 void BlendChunkBase::setAlphaDestFactor(const GLenum &value)
273     editSField(AlphaDestFactorFieldMask);
275     _sfAlphaDestFactor.setValue(value);
279 #ifdef OSG_MT_CPTR_ASPECT
280 inline
281 void BlendChunkBase::execSync (      BlendChunkBase *pFrom,
282                                         ConstFieldMaskArg  whichField,
283                                         AspectOffsetStore &oOffsets,
284                                         ConstFieldMaskArg  syncMode,
285                                   const UInt32             uiSyncInfo)
287     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
289     if(FieldBits::NoField != (SrcFactorFieldMask & whichField))
290         _sfSrcFactor.syncWith(pFrom->_sfSrcFactor);
292     if(FieldBits::NoField != (DestFactorFieldMask & whichField))
293         _sfDestFactor.syncWith(pFrom->_sfDestFactor);
295     if(FieldBits::NoField != (EquationFieldMask & whichField))
296         _sfEquation.syncWith(pFrom->_sfEquation);
298     if(FieldBits::NoField != (ColorFieldMask & whichField))
299         _sfColor.syncWith(pFrom->_sfColor);
301     if(FieldBits::NoField != (AlphaFuncFieldMask & whichField))
302         _sfAlphaFunc.syncWith(pFrom->_sfAlphaFunc);
304     if(FieldBits::NoField != (AlphaValueFieldMask & whichField))
305         _sfAlphaValue.syncWith(pFrom->_sfAlphaValue);
307     if(FieldBits::NoField != (AlphaSrcFactorFieldMask & whichField))
308         _sfAlphaSrcFactor.syncWith(pFrom->_sfAlphaSrcFactor);
310     if(FieldBits::NoField != (AlphaDestFactorFieldMask & whichField))
311         _sfAlphaDestFactor.syncWith(pFrom->_sfAlphaDestFactor);
313 #endif
316 inline
317 const Char8 *BlendChunkBase::getClassname(void)
319     return "BlendChunk";
321 OSG_GEN_CONTAINERPTR(BlendChunk);
323 OSG_END_NAMESPACE