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 **
46 ** class RegisterCombinersChunk!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &RegisterCombinersChunkBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 RegisterCombinersChunkBase::getClassTypeId(void)
70 OSG::UInt16 RegisterCombinersChunkBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the RegisterCombinersChunk::_sfColor0 field.
80 Color4f &RegisterCombinersChunkBase::editColor0(void)
82 editSField(Color0FieldMask);
84 return _sfColor0.getValue();
87 //! Get the value of the RegisterCombinersChunk::_sfColor0 field.
89 const Color4f &RegisterCombinersChunkBase::getColor0(void) const
91 return _sfColor0.getValue();
94 //! Set the value of the RegisterCombinersChunk::_sfColor0 field.
96 void RegisterCombinersChunkBase::setColor0(const Color4f &value)
98 editSField(Color0FieldMask);
100 _sfColor0.setValue(value);
102 //! Get the value of the RegisterCombinersChunk::_sfColor1 field.
105 Color4f &RegisterCombinersChunkBase::editColor1(void)
107 editSField(Color1FieldMask);
109 return _sfColor1.getValue();
112 //! Get the value of the RegisterCombinersChunk::_sfColor1 field.
114 const Color4f &RegisterCombinersChunkBase::getColor1(void) const
116 return _sfColor1.getValue();
119 //! Set the value of the RegisterCombinersChunk::_sfColor1 field.
121 void RegisterCombinersChunkBase::setColor1(const Color4f &value)
123 editSField(Color1FieldMask);
125 _sfColor1.setValue(value);
127 //! Get the value of the RegisterCombinersChunk::_sfColorSumClamp field.
130 bool &RegisterCombinersChunkBase::editColorSumClamp(void)
132 editSField(ColorSumClampFieldMask);
134 return _sfColorSumClamp.getValue();
137 //! Get the value of the RegisterCombinersChunk::_sfColorSumClamp field.
139 bool RegisterCombinersChunkBase::getColorSumClamp(void) const
141 return _sfColorSumClamp.getValue();
144 //! Set the value of the RegisterCombinersChunk::_sfColorSumClamp field.
146 void RegisterCombinersChunkBase::setColorSumClamp(const bool value)
148 editSField(ColorSumClampFieldMask);
150 _sfColorSumClamp.setValue(value);
152 //! Get the value of the RegisterCombinersChunk::_sfPerStageConstants field.
155 UInt8 &RegisterCombinersChunkBase::editPerStageConstants(void)
157 editSField(PerStageConstantsFieldMask);
159 return _sfPerStageConstants.getValue();
162 //! Get the value of the RegisterCombinersChunk::_sfPerStageConstants field.
164 UInt8 RegisterCombinersChunkBase::getPerStageConstants(void) const
166 return _sfPerStageConstants.getValue();
169 //! Set the value of the RegisterCombinersChunk::_sfPerStageConstants field.
171 void RegisterCombinersChunkBase::setPerStageConstants(const UInt8 value)
173 editSField(PerStageConstantsFieldMask);
175 _sfPerStageConstants.setValue(value);
178 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableArgb field.
180 const GLenum &RegisterCombinersChunkBase::getVariableArgb(const UInt32 index) const
182 return _mfVariableArgb[index];
186 MFGLenum ::reference RegisterCombinersChunkBase::editVariableArgb(const UInt32 index)
188 editMField(VariableArgbFieldMask, _mfVariableArgb);
190 return _mfVariableArgb[index];
193 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableBrgb field.
195 const GLenum &RegisterCombinersChunkBase::getVariableBrgb(const UInt32 index) const
197 return _mfVariableBrgb[index];
201 MFGLenum ::reference RegisterCombinersChunkBase::editVariableBrgb(const UInt32 index)
203 editMField(VariableBrgbFieldMask, _mfVariableBrgb);
205 return _mfVariableBrgb[index];
208 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableCrgb field.
210 const GLenum &RegisterCombinersChunkBase::getVariableCrgb(const UInt32 index) const
212 return _mfVariableCrgb[index];
216 MFGLenum ::reference RegisterCombinersChunkBase::editVariableCrgb(const UInt32 index)
218 editMField(VariableCrgbFieldMask, _mfVariableCrgb);
220 return _mfVariableCrgb[index];
223 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableDrgb field.
225 const GLenum &RegisterCombinersChunkBase::getVariableDrgb(const UInt32 index) const
227 return _mfVariableDrgb[index];
231 MFGLenum ::reference RegisterCombinersChunkBase::editVariableDrgb(const UInt32 index)
233 editMField(VariableDrgbFieldMask, _mfVariableDrgb);
235 return _mfVariableDrgb[index];
238 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableAalpha field.
240 const GLenum &RegisterCombinersChunkBase::getVariableAalpha(const UInt32 index) const
242 return _mfVariableAalpha[index];
246 MFGLenum ::reference RegisterCombinersChunkBase::editVariableAalpha(const UInt32 index)
248 editMField(VariableAalphaFieldMask, _mfVariableAalpha);
250 return _mfVariableAalpha[index];
253 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableBalpha field.
255 const GLenum &RegisterCombinersChunkBase::getVariableBalpha(const UInt32 index) const
257 return _mfVariableBalpha[index];
261 MFGLenum ::reference RegisterCombinersChunkBase::editVariableBalpha(const UInt32 index)
263 editMField(VariableBalphaFieldMask, _mfVariableBalpha);
265 return _mfVariableBalpha[index];
268 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableCalpha field.
270 const GLenum &RegisterCombinersChunkBase::getVariableCalpha(const UInt32 index) const
272 return _mfVariableCalpha[index];
276 MFGLenum ::reference RegisterCombinersChunkBase::editVariableCalpha(const UInt32 index)
278 editMField(VariableCalphaFieldMask, _mfVariableCalpha);
280 return _mfVariableCalpha[index];
283 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableDalpha field.
285 const GLenum &RegisterCombinersChunkBase::getVariableDalpha(const UInt32 index) const
287 return _mfVariableDalpha[index];
291 MFGLenum ::reference RegisterCombinersChunkBase::editVariableDalpha(const UInt32 index)
293 editMField(VariableDalphaFieldMask, _mfVariableDalpha);
295 return _mfVariableDalpha[index];
298 //! Get the value of the \a index element the RegisterCombinersChunk::_mfOutputABrgb field.
300 const GLenum &RegisterCombinersChunkBase::getOutputABrgb(const UInt32 index) const
302 return _mfOutputABrgb[index];
306 MFGLenum ::reference RegisterCombinersChunkBase::editOutputABrgb(const UInt32 index)
308 editMField(OutputABrgbFieldMask, _mfOutputABrgb);
310 return _mfOutputABrgb[index];
313 //! Get the value of the \a index element the RegisterCombinersChunk::_mfOutputCDrgb field.
315 const GLenum &RegisterCombinersChunkBase::getOutputCDrgb(const UInt32 index) const
317 return _mfOutputCDrgb[index];
321 MFGLenum ::reference RegisterCombinersChunkBase::editOutputCDrgb(const UInt32 index)
323 editMField(OutputCDrgbFieldMask, _mfOutputCDrgb);
325 return _mfOutputCDrgb[index];
328 //! Get the value of the \a index element the RegisterCombinersChunk::_mfOutputSumrgb field.
330 const GLenum &RegisterCombinersChunkBase::getOutputSumrgb(const UInt32 index) const
332 return _mfOutputSumrgb[index];
336 MFGLenum ::reference RegisterCombinersChunkBase::editOutputSumrgb(const UInt32 index)
338 editMField(OutputSumrgbFieldMask, _mfOutputSumrgb);
340 return _mfOutputSumrgb[index];
343 //! Get the value of the \a index element the RegisterCombinersChunk::_mfScalergb field.
345 const GLenum &RegisterCombinersChunkBase::getScalergb(const UInt32 index) const
347 return _mfScalergb[index];
351 MFGLenum ::reference RegisterCombinersChunkBase::editScalergb(const UInt32 index)
353 editMField(ScalergbFieldMask, _mfScalergb);
355 return _mfScalergb[index];
358 //! Get the value of the \a index element the RegisterCombinersChunk::_mfBiasrgb field.
360 const GLenum &RegisterCombinersChunkBase::getBiasrgb(const UInt32 index) const
362 return _mfBiasrgb[index];
366 MFGLenum ::reference RegisterCombinersChunkBase::editBiasrgb(const UInt32 index)
368 editMField(BiasrgbFieldMask, _mfBiasrgb);
370 return _mfBiasrgb[index];
373 //! Get the value of the \a index element the RegisterCombinersChunk::_mfOutputABalpha field.
375 const GLenum &RegisterCombinersChunkBase::getOutputABalpha(const UInt32 index) const
377 return _mfOutputABalpha[index];
381 MFGLenum ::reference RegisterCombinersChunkBase::editOutputABalpha(const UInt32 index)
383 editMField(OutputABalphaFieldMask, _mfOutputABalpha);
385 return _mfOutputABalpha[index];
388 //! Get the value of the \a index element the RegisterCombinersChunk::_mfOutputCDalpha field.
390 const GLenum &RegisterCombinersChunkBase::getOutputCDalpha(const UInt32 index) const
392 return _mfOutputCDalpha[index];
396 MFGLenum ::reference RegisterCombinersChunkBase::editOutputCDalpha(const UInt32 index)
398 editMField(OutputCDalphaFieldMask, _mfOutputCDalpha);
400 return _mfOutputCDalpha[index];
403 //! Get the value of the \a index element the RegisterCombinersChunk::_mfOutputSumalpha field.
405 const GLenum &RegisterCombinersChunkBase::getOutputSumalpha(const UInt32 index) const
407 return _mfOutputSumalpha[index];
411 MFGLenum ::reference RegisterCombinersChunkBase::editOutputSumalpha(const UInt32 index)
413 editMField(OutputSumalphaFieldMask, _mfOutputSumalpha);
415 return _mfOutputSumalpha[index];
418 //! Get the value of the \a index element the RegisterCombinersChunk::_mfDotABrgb field.
420 UInt8 RegisterCombinersChunkBase::getDotABrgb(const UInt32 index) const
422 return _mfDotABrgb[index];
426 MFUInt8 ::reference RegisterCombinersChunkBase::editDotABrgb(const UInt32 index)
428 editMField(DotABrgbFieldMask, _mfDotABrgb);
430 return _mfDotABrgb[index];
433 //! Get the value of the \a index element the RegisterCombinersChunk::_mfDotCDrgb field.
435 UInt8 RegisterCombinersChunkBase::getDotCDrgb(const UInt32 index) const
437 return _mfDotCDrgb[index];
441 MFUInt8 ::reference RegisterCombinersChunkBase::editDotCDrgb(const UInt32 index)
443 editMField(DotCDrgbFieldMask, _mfDotCDrgb);
445 return _mfDotCDrgb[index];
448 //! Get the value of the \a index element the RegisterCombinersChunk::_mfMuxSumrgb field.
450 UInt8 RegisterCombinersChunkBase::getMuxSumrgb(const UInt32 index) const
452 return _mfMuxSumrgb[index];
456 MFUInt8 ::reference RegisterCombinersChunkBase::editMuxSumrgb(const UInt32 index)
458 editMField(MuxSumrgbFieldMask, _mfMuxSumrgb);
460 return _mfMuxSumrgb[index];
463 //! Get the value of the \a index element the RegisterCombinersChunk::_mfScalealpha field.
465 const GLenum &RegisterCombinersChunkBase::getScalealpha(const UInt32 index) const
467 return _mfScalealpha[index];
471 MFGLenum ::reference RegisterCombinersChunkBase::editScalealpha(const UInt32 index)
473 editMField(ScalealphaFieldMask, _mfScalealpha);
475 return _mfScalealpha[index];
478 //! Get the value of the \a index element the RegisterCombinersChunk::_mfBiasalpha field.
480 const GLenum &RegisterCombinersChunkBase::getBiasalpha(const UInt32 index) const
482 return _mfBiasalpha[index];
486 MFGLenum ::reference RegisterCombinersChunkBase::editBiasalpha(const UInt32 index)
488 editMField(BiasalphaFieldMask, _mfBiasalpha);
490 return _mfBiasalpha[index];
493 //! Get the value of the \a index element the RegisterCombinersChunk::_mfMuxSumalpha field.
495 UInt8 RegisterCombinersChunkBase::getMuxSumalpha(const UInt32 index) const
497 return _mfMuxSumalpha[index];
501 MFUInt8 ::reference RegisterCombinersChunkBase::editMuxSumalpha(const UInt32 index)
503 editMField(MuxSumalphaFieldMask, _mfMuxSumalpha);
505 return _mfMuxSumalpha[index];
508 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableE field.
510 const GLenum &RegisterCombinersChunkBase::getVariableE(const UInt32 index) const
512 return _mfVariableE[index];
516 MFGLenum ::reference RegisterCombinersChunkBase::editVariableE(const UInt32 index)
518 editMField(VariableEFieldMask, _mfVariableE);
520 return _mfVariableE[index];
523 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableF field.
525 const GLenum &RegisterCombinersChunkBase::getVariableF(const UInt32 index) const
527 return _mfVariableF[index];
531 MFGLenum ::reference RegisterCombinersChunkBase::editVariableF(const UInt32 index)
533 editMField(VariableFFieldMask, _mfVariableF);
535 return _mfVariableF[index];
538 //! Get the value of the \a index element the RegisterCombinersChunk::_mfVariableG field.
540 const GLenum &RegisterCombinersChunkBase::getVariableG(const UInt32 index) const
542 return _mfVariableG[index];
546 MFGLenum ::reference RegisterCombinersChunkBase::editVariableG(const UInt32 index)
548 editMField(VariableGFieldMask, _mfVariableG);
550 return _mfVariableG[index];
553 //! Get the value of the \a index element the RegisterCombinersChunk::_mfCombinerColor0 field.
555 const Color4f &RegisterCombinersChunkBase::getCombinerColor0(const UInt32 index) const
557 return _mfCombinerColor0[index];
561 MFColor4f ::reference RegisterCombinersChunkBase::editCombinerColor0(const UInt32 index)
563 editMField(CombinerColor0FieldMask, _mfCombinerColor0);
565 return _mfCombinerColor0[index];
568 //! Get the value of the \a index element the RegisterCombinersChunk::_mfCombinerColor1 field.
570 const Color4f &RegisterCombinersChunkBase::getCombinerColor1(const UInt32 index) const
572 return _mfCombinerColor1[index];
576 MFColor4f ::reference RegisterCombinersChunkBase::editCombinerColor1(const UInt32 index)
578 editMField(CombinerColor1FieldMask, _mfCombinerColor1);
580 return _mfCombinerColor1[index];
584 #ifdef OSG_MT_CPTR_ASPECT
586 void RegisterCombinersChunkBase::execSync ( RegisterCombinersChunkBase *pFrom,
587 ConstFieldMaskArg whichField,
588 AspectOffsetStore &oOffsets,
589 ConstFieldMaskArg syncMode,
590 const UInt32 uiSyncInfo)
592 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
594 if(FieldBits::NoField != (Color0FieldMask & whichField))
595 _sfColor0.syncWith(pFrom->_sfColor0);
597 if(FieldBits::NoField != (Color1FieldMask & whichField))
598 _sfColor1.syncWith(pFrom->_sfColor1);
600 if(FieldBits::NoField != (ColorSumClampFieldMask & whichField))
601 _sfColorSumClamp.syncWith(pFrom->_sfColorSumClamp);
603 if(FieldBits::NoField != (VariableArgbFieldMask & whichField))
604 _mfVariableArgb.syncWith(pFrom->_mfVariableArgb,
609 if(FieldBits::NoField != (VariableBrgbFieldMask & whichField))
610 _mfVariableBrgb.syncWith(pFrom->_mfVariableBrgb,
615 if(FieldBits::NoField != (VariableCrgbFieldMask & whichField))
616 _mfVariableCrgb.syncWith(pFrom->_mfVariableCrgb,
621 if(FieldBits::NoField != (VariableDrgbFieldMask & whichField))
622 _mfVariableDrgb.syncWith(pFrom->_mfVariableDrgb,
627 if(FieldBits::NoField != (VariableAalphaFieldMask & whichField))
628 _mfVariableAalpha.syncWith(pFrom->_mfVariableAalpha,
633 if(FieldBits::NoField != (VariableBalphaFieldMask & whichField))
634 _mfVariableBalpha.syncWith(pFrom->_mfVariableBalpha,
639 if(FieldBits::NoField != (VariableCalphaFieldMask & whichField))
640 _mfVariableCalpha.syncWith(pFrom->_mfVariableCalpha,
645 if(FieldBits::NoField != (VariableDalphaFieldMask & whichField))
646 _mfVariableDalpha.syncWith(pFrom->_mfVariableDalpha,
651 if(FieldBits::NoField != (OutputABrgbFieldMask & whichField))
652 _mfOutputABrgb.syncWith(pFrom->_mfOutputABrgb,
657 if(FieldBits::NoField != (OutputCDrgbFieldMask & whichField))
658 _mfOutputCDrgb.syncWith(pFrom->_mfOutputCDrgb,
663 if(FieldBits::NoField != (OutputSumrgbFieldMask & whichField))
664 _mfOutputSumrgb.syncWith(pFrom->_mfOutputSumrgb,
669 if(FieldBits::NoField != (ScalergbFieldMask & whichField))
670 _mfScalergb.syncWith(pFrom->_mfScalergb,
675 if(FieldBits::NoField != (BiasrgbFieldMask & whichField))
676 _mfBiasrgb.syncWith(pFrom->_mfBiasrgb,
681 if(FieldBits::NoField != (OutputABalphaFieldMask & whichField))
682 _mfOutputABalpha.syncWith(pFrom->_mfOutputABalpha,
687 if(FieldBits::NoField != (OutputCDalphaFieldMask & whichField))
688 _mfOutputCDalpha.syncWith(pFrom->_mfOutputCDalpha,
693 if(FieldBits::NoField != (OutputSumalphaFieldMask & whichField))
694 _mfOutputSumalpha.syncWith(pFrom->_mfOutputSumalpha,
699 if(FieldBits::NoField != (DotABrgbFieldMask & whichField))
700 _mfDotABrgb.syncWith(pFrom->_mfDotABrgb,
705 if(FieldBits::NoField != (DotCDrgbFieldMask & whichField))
706 _mfDotCDrgb.syncWith(pFrom->_mfDotCDrgb,
711 if(FieldBits::NoField != (MuxSumrgbFieldMask & whichField))
712 _mfMuxSumrgb.syncWith(pFrom->_mfMuxSumrgb,
717 if(FieldBits::NoField != (ScalealphaFieldMask & whichField))
718 _mfScalealpha.syncWith(pFrom->_mfScalealpha,
723 if(FieldBits::NoField != (BiasalphaFieldMask & whichField))
724 _mfBiasalpha.syncWith(pFrom->_mfBiasalpha,
729 if(FieldBits::NoField != (MuxSumalphaFieldMask & whichField))
730 _mfMuxSumalpha.syncWith(pFrom->_mfMuxSumalpha,
735 if(FieldBits::NoField != (VariableEFieldMask & whichField))
736 _mfVariableE.syncWith(pFrom->_mfVariableE,
741 if(FieldBits::NoField != (VariableFFieldMask & whichField))
742 _mfVariableF.syncWith(pFrom->_mfVariableF,
747 if(FieldBits::NoField != (VariableGFieldMask & whichField))
748 _mfVariableG.syncWith(pFrom->_mfVariableG,
753 if(FieldBits::NoField != (CombinerColor0FieldMask & whichField))
754 _mfCombinerColor0.syncWith(pFrom->_mfCombinerColor0,
759 if(FieldBits::NoField != (CombinerColor1FieldMask & whichField))
760 _mfCombinerColor1.syncWith(pFrom->_mfCombinerColor1,
765 if(FieldBits::NoField != (PerStageConstantsFieldMask & whichField))
766 _sfPerStageConstants.syncWith(pFrom->_sfPerStageConstants);
772 const Char8 *RegisterCombinersChunkBase::getClassname(void)
774 return "RegisterCombinersChunk";
776 OSG_GEN_CONTAINERPTR(RegisterCombinersChunk);