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 &BlendChunkBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 BlendChunkBase::getClassTypeId(void)
70 OSG::UInt16 BlendChunkBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the BlendChunk::_sfSrcFactor field.
80 GLenum &BlendChunkBase::editSrcFactor(void)
82 editSField(SrcFactorFieldMask);
84 return _sfSrcFactor.getValue();
87 //! Get the value of the BlendChunk::_sfSrcFactor field.
89 const GLenum &BlendChunkBase::getSrcFactor(void) const
91 return _sfSrcFactor.getValue();
94 //! Set the value of the BlendChunk::_sfSrcFactor field.
96 void BlendChunkBase::setSrcFactor(const GLenum &value)
98 editSField(SrcFactorFieldMask);
100 _sfSrcFactor.setValue(value);
102 //! Get the value of the BlendChunk::_sfDestFactor field.
105 GLenum &BlendChunkBase::editDestFactor(void)
107 editSField(DestFactorFieldMask);
109 return _sfDestFactor.getValue();
112 //! Get the value of the BlendChunk::_sfDestFactor field.
114 const GLenum &BlendChunkBase::getDestFactor(void) const
116 return _sfDestFactor.getValue();
119 //! Set the value of the BlendChunk::_sfDestFactor field.
121 void BlendChunkBase::setDestFactor(const GLenum &value)
123 editSField(DestFactorFieldMask);
125 _sfDestFactor.setValue(value);
127 //! Get the value of the BlendChunk::_sfEquation field.
130 GLenum &BlendChunkBase::editEquation(void)
132 editSField(EquationFieldMask);
134 return _sfEquation.getValue();
137 //! Get the value of the BlendChunk::_sfEquation field.
139 const GLenum &BlendChunkBase::getEquation(void) const
141 return _sfEquation.getValue();
144 //! Set the value of the BlendChunk::_sfEquation field.
146 void BlendChunkBase::setEquation(const GLenum &value)
148 editSField(EquationFieldMask);
150 _sfEquation.setValue(value);
152 //! Get the value of the BlendChunk::_sfColor field.
155 Color4f &BlendChunkBase::editColor(void)
157 editSField(ColorFieldMask);
159 return _sfColor.getValue();
162 //! Get the value of the BlendChunk::_sfColor field.
164 const Color4f &BlendChunkBase::getColor(void) const
166 return _sfColor.getValue();
169 //! Set the value of the BlendChunk::_sfColor field.
171 void BlendChunkBase::setColor(const Color4f &value)
173 editSField(ColorFieldMask);
175 _sfColor.setValue(value);
177 //! Get the value of the BlendChunk::_sfAlphaFunc field.
180 GLenum &BlendChunkBase::editAlphaFunc(void)
182 editSField(AlphaFuncFieldMask);
184 return _sfAlphaFunc.getValue();
187 //! Get the value of the BlendChunk::_sfAlphaFunc field.
189 const GLenum &BlendChunkBase::getAlphaFunc(void) const
191 return _sfAlphaFunc.getValue();
194 //! Set the value of the BlendChunk::_sfAlphaFunc field.
196 void BlendChunkBase::setAlphaFunc(const GLenum &value)
198 editSField(AlphaFuncFieldMask);
200 _sfAlphaFunc.setValue(value);
202 //! Get the value of the BlendChunk::_sfAlphaValue field.
205 Real32 &BlendChunkBase::editAlphaValue(void)
207 editSField(AlphaValueFieldMask);
209 return _sfAlphaValue.getValue();
212 //! Get the value of the BlendChunk::_sfAlphaValue field.
214 Real32 BlendChunkBase::getAlphaValue(void) const
216 return _sfAlphaValue.getValue();
219 //! Set the value of the BlendChunk::_sfAlphaValue field.
221 void BlendChunkBase::setAlphaValue(const Real32 value)
223 editSField(AlphaValueFieldMask);
225 _sfAlphaValue.setValue(value);
227 //! Get the value of the BlendChunk::_sfAlphaSrcFactor field.
230 GLenum &BlendChunkBase::editAlphaSrcFactor(void)
232 editSField(AlphaSrcFactorFieldMask);
234 return _sfAlphaSrcFactor.getValue();
237 //! Get the value of the BlendChunk::_sfAlphaSrcFactor field.
239 const GLenum &BlendChunkBase::getAlphaSrcFactor(void) const
241 return _sfAlphaSrcFactor.getValue();
244 //! Set the value of the BlendChunk::_sfAlphaSrcFactor field.
246 void BlendChunkBase::setAlphaSrcFactor(const GLenum &value)
248 editSField(AlphaSrcFactorFieldMask);
250 _sfAlphaSrcFactor.setValue(value);
252 //! Get the value of the BlendChunk::_sfAlphaDestFactor field.
255 GLenum &BlendChunkBase::editAlphaDestFactor(void)
257 editSField(AlphaDestFactorFieldMask);
259 return _sfAlphaDestFactor.getValue();
262 //! Get the value of the BlendChunk::_sfAlphaDestFactor field.
264 const GLenum &BlendChunkBase::getAlphaDestFactor(void) const
266 return _sfAlphaDestFactor.getValue();
269 //! Set the value of the BlendChunk::_sfAlphaDestFactor field.
271 void BlendChunkBase::setAlphaDestFactor(const GLenum &value)
273 editSField(AlphaDestFactorFieldMask);
275 _sfAlphaDestFactor.setValue(value);
279 #ifdef OSG_MT_CPTR_ASPECT
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);
317 const Char8 *BlendChunkBase::getClassname(void)
321 OSG_GEN_CONTAINERPTR(BlendChunk);