00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #define OSG_COMPILEREGISTERCOMBINERSCHUNKINST
00055
00056 #include <stdlib.h>
00057 #include <stdio.h>
00058
00059 #include <OSGConfig.h>
00060
00061 #include "OSGRegisterCombinersChunkBase.h"
00062 #include "OSGRegisterCombinersChunk.h"
00063
00064
00065 OSG_USING_NAMESPACE
00066
00067 const OSG::BitVector RegisterCombinersChunkBase::Color0FieldMask =
00068 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::Color0FieldId);
00069
00070 const OSG::BitVector RegisterCombinersChunkBase::Color1FieldMask =
00071 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::Color1FieldId);
00072
00073 const OSG::BitVector RegisterCombinersChunkBase::ColorSumClampFieldMask =
00074 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::ColorSumClampFieldId);
00075
00076 const OSG::BitVector RegisterCombinersChunkBase::VariableArgbFieldMask =
00077 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableArgbFieldId);
00078
00079 const OSG::BitVector RegisterCombinersChunkBase::VariableBrgbFieldMask =
00080 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableBrgbFieldId);
00081
00082 const OSG::BitVector RegisterCombinersChunkBase::VariableCrgbFieldMask =
00083 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableCrgbFieldId);
00084
00085 const OSG::BitVector RegisterCombinersChunkBase::VariableDrgbFieldMask =
00086 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableDrgbFieldId);
00087
00088 const OSG::BitVector RegisterCombinersChunkBase::VariableAalphaFieldMask =
00089 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableAalphaFieldId);
00090
00091 const OSG::BitVector RegisterCombinersChunkBase::VariableBalphaFieldMask =
00092 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableBalphaFieldId);
00093
00094 const OSG::BitVector RegisterCombinersChunkBase::VariableCalphaFieldMask =
00095 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableCalphaFieldId);
00096
00097 const OSG::BitVector RegisterCombinersChunkBase::VariableDalphaFieldMask =
00098 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableDalphaFieldId);
00099
00100 const OSG::BitVector RegisterCombinersChunkBase::OutputABrgbFieldMask =
00101 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::OutputABrgbFieldId);
00102
00103 const OSG::BitVector RegisterCombinersChunkBase::OutputCDrgbFieldMask =
00104 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::OutputCDrgbFieldId);
00105
00106 const OSG::BitVector RegisterCombinersChunkBase::OutputSumrgbFieldMask =
00107 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::OutputSumrgbFieldId);
00108
00109 const OSG::BitVector RegisterCombinersChunkBase::ScalergbFieldMask =
00110 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::ScalergbFieldId);
00111
00112 const OSG::BitVector RegisterCombinersChunkBase::BiasrgbFieldMask =
00113 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::BiasrgbFieldId);
00114
00115 const OSG::BitVector RegisterCombinersChunkBase::OutputABalphaFieldMask =
00116 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::OutputABalphaFieldId);
00117
00118 const OSG::BitVector RegisterCombinersChunkBase::OutputCDalphaFieldMask =
00119 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::OutputCDalphaFieldId);
00120
00121 const OSG::BitVector RegisterCombinersChunkBase::OutputSumalphaFieldMask =
00122 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::OutputSumalphaFieldId);
00123
00124 const OSG::BitVector RegisterCombinersChunkBase::DotABrgbFieldMask =
00125 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::DotABrgbFieldId);
00126
00127 const OSG::BitVector RegisterCombinersChunkBase::DotCDrgbFieldMask =
00128 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::DotCDrgbFieldId);
00129
00130 const OSG::BitVector RegisterCombinersChunkBase::MuxSumrgbFieldMask =
00131 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::MuxSumrgbFieldId);
00132
00133 const OSG::BitVector RegisterCombinersChunkBase::ScalealphaFieldMask =
00134 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::ScalealphaFieldId);
00135
00136 const OSG::BitVector RegisterCombinersChunkBase::BiasalphaFieldMask =
00137 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::BiasalphaFieldId);
00138
00139 const OSG::BitVector RegisterCombinersChunkBase::MuxSumalphaFieldMask =
00140 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::MuxSumalphaFieldId);
00141
00142 const OSG::BitVector RegisterCombinersChunkBase::VariableEFieldMask =
00143 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableEFieldId);
00144
00145 const OSG::BitVector RegisterCombinersChunkBase::VariableFFieldMask =
00146 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableFFieldId);
00147
00148 const OSG::BitVector RegisterCombinersChunkBase::VariableGFieldMask =
00149 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::VariableGFieldId);
00150
00151 const OSG::BitVector RegisterCombinersChunkBase::CombinerColor0FieldMask =
00152 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::CombinerColor0FieldId);
00153
00154 const OSG::BitVector RegisterCombinersChunkBase::CombinerColor1FieldMask =
00155 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::CombinerColor1FieldId);
00156
00157 const OSG::BitVector RegisterCombinersChunkBase::PerStageConstantsFieldMask =
00158 (TypeTraits<BitVector>::One << RegisterCombinersChunkBase::PerStageConstantsFieldId);
00159
00160 const OSG::BitVector RegisterCombinersChunkBase::MTInfluenceMask =
00161 (Inherited::MTInfluenceMask) |
00162 (static_cast<BitVector>(0x0) << Inherited::NextFieldId);
00163
00164
00165
00166
00261
00262
00263 FieldDescription *RegisterCombinersChunkBase::_desc[] =
00264 {
00265 new FieldDescription(SFColor4f::getClassType(),
00266 "color0",
00267 Color0FieldId, Color0FieldMask,
00268 false,
00269 (FieldAccessMethod) &RegisterCombinersChunkBase::getSFColor0),
00270 new FieldDescription(SFColor4f::getClassType(),
00271 "color1",
00272 Color1FieldId, Color1FieldMask,
00273 false,
00274 (FieldAccessMethod) &RegisterCombinersChunkBase::getSFColor1),
00275 new FieldDescription(SFBool::getClassType(),
00276 "colorSumClamp",
00277 ColorSumClampFieldId, ColorSumClampFieldMask,
00278 false,
00279 (FieldAccessMethod) &RegisterCombinersChunkBase::getSFColorSumClamp),
00280 new FieldDescription(MFGLenum::getClassType(),
00281 "variableArgb",
00282 VariableArgbFieldId, VariableArgbFieldMask,
00283 false,
00284 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableArgb),
00285 new FieldDescription(MFGLenum::getClassType(),
00286 "variableBrgb",
00287 VariableBrgbFieldId, VariableBrgbFieldMask,
00288 false,
00289 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableBrgb),
00290 new FieldDescription(MFGLenum::getClassType(),
00291 "variableCrgb",
00292 VariableCrgbFieldId, VariableCrgbFieldMask,
00293 false,
00294 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableCrgb),
00295 new FieldDescription(MFGLenum::getClassType(),
00296 "variableDrgb",
00297 VariableDrgbFieldId, VariableDrgbFieldMask,
00298 false,
00299 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableDrgb),
00300 new FieldDescription(MFGLenum::getClassType(),
00301 "variableAalpha",
00302 VariableAalphaFieldId, VariableAalphaFieldMask,
00303 false,
00304 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableAalpha),
00305 new FieldDescription(MFGLenum::getClassType(),
00306 "variableBalpha",
00307 VariableBalphaFieldId, VariableBalphaFieldMask,
00308 false,
00309 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableBalpha),
00310 new FieldDescription(MFGLenum::getClassType(),
00311 "variableCalpha",
00312 VariableCalphaFieldId, VariableCalphaFieldMask,
00313 false,
00314 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableCalpha),
00315 new FieldDescription(MFGLenum::getClassType(),
00316 "variableDalpha",
00317 VariableDalphaFieldId, VariableDalphaFieldMask,
00318 false,
00319 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableDalpha),
00320 new FieldDescription(MFGLenum::getClassType(),
00321 "outputABrgb",
00322 OutputABrgbFieldId, OutputABrgbFieldMask,
00323 false,
00324 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFOutputABrgb),
00325 new FieldDescription(MFGLenum::getClassType(),
00326 "outputCDrgb",
00327 OutputCDrgbFieldId, OutputCDrgbFieldMask,
00328 false,
00329 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFOutputCDrgb),
00330 new FieldDescription(MFGLenum::getClassType(),
00331 "outputSumrgb",
00332 OutputSumrgbFieldId, OutputSumrgbFieldMask,
00333 false,
00334 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFOutputSumrgb),
00335 new FieldDescription(MFGLenum::getClassType(),
00336 "scalergb",
00337 ScalergbFieldId, ScalergbFieldMask,
00338 false,
00339 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFScalergb),
00340 new FieldDescription(MFGLenum::getClassType(),
00341 "biasrgb",
00342 BiasrgbFieldId, BiasrgbFieldMask,
00343 false,
00344 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFBiasrgb),
00345 new FieldDescription(MFGLenum::getClassType(),
00346 "outputABalpha",
00347 OutputABalphaFieldId, OutputABalphaFieldMask,
00348 false,
00349 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFOutputABalpha),
00350 new FieldDescription(MFGLenum::getClassType(),
00351 "outputCDalpha",
00352 OutputCDalphaFieldId, OutputCDalphaFieldMask,
00353 false,
00354 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFOutputCDalpha),
00355 new FieldDescription(MFGLenum::getClassType(),
00356 "outputSumalpha",
00357 OutputSumalphaFieldId, OutputSumalphaFieldMask,
00358 false,
00359 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFOutputSumalpha),
00360 new FieldDescription(MFUInt8::getClassType(),
00361 "dotABrgb",
00362 DotABrgbFieldId, DotABrgbFieldMask,
00363 false,
00364 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFDotABrgb),
00365 new FieldDescription(MFUInt8::getClassType(),
00366 "dotCDrgb",
00367 DotCDrgbFieldId, DotCDrgbFieldMask,
00368 false,
00369 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFDotCDrgb),
00370 new FieldDescription(MFUInt8::getClassType(),
00371 "muxSumrgb",
00372 MuxSumrgbFieldId, MuxSumrgbFieldMask,
00373 false,
00374 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFMuxSumrgb),
00375 new FieldDescription(MFGLenum::getClassType(),
00376 "scalealpha",
00377 ScalealphaFieldId, ScalealphaFieldMask,
00378 false,
00379 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFScalealpha),
00380 new FieldDescription(MFGLenum::getClassType(),
00381 "biasalpha",
00382 BiasalphaFieldId, BiasalphaFieldMask,
00383 false,
00384 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFBiasalpha),
00385 new FieldDescription(MFUInt8::getClassType(),
00386 "muxSumalpha",
00387 MuxSumalphaFieldId, MuxSumalphaFieldMask,
00388 false,
00389 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFMuxSumalpha),
00390 new FieldDescription(MFGLenum::getClassType(),
00391 "variableE",
00392 VariableEFieldId, VariableEFieldMask,
00393 false,
00394 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableE),
00395 new FieldDescription(MFGLenum::getClassType(),
00396 "variableF",
00397 VariableFFieldId, VariableFFieldMask,
00398 false,
00399 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableF),
00400 new FieldDescription(MFGLenum::getClassType(),
00401 "variableG",
00402 VariableGFieldId, VariableGFieldMask,
00403 false,
00404 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFVariableG),
00405 new FieldDescription(MFColor4f::getClassType(),
00406 "combinerColor0",
00407 CombinerColor0FieldId, CombinerColor0FieldMask,
00408 false,
00409 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFCombinerColor0),
00410 new FieldDescription(MFColor4f::getClassType(),
00411 "combinerColor1",
00412 CombinerColor1FieldId, CombinerColor1FieldMask,
00413 false,
00414 (FieldAccessMethod) &RegisterCombinersChunkBase::getMFCombinerColor1),
00415 new FieldDescription(SFUInt8::getClassType(),
00416 "perStageConstants",
00417 PerStageConstantsFieldId, PerStageConstantsFieldMask,
00418 true,
00419 (FieldAccessMethod) &RegisterCombinersChunkBase::getSFPerStageConstants)
00420 };
00421
00422
00423 FieldContainerType RegisterCombinersChunkBase::_type(
00424 "RegisterCombinersChunk",
00425 "StateChunk",
00426 NULL,
00427 (PrototypeCreateF) &RegisterCombinersChunkBase::createEmpty,
00428 RegisterCombinersChunk::initMethod,
00429 _desc,
00430 sizeof(_desc));
00431
00432
00433
00434
00435
00436 FieldContainerType &RegisterCombinersChunkBase::getType(void)
00437 {
00438 return _type;
00439 }
00440
00441 const FieldContainerType &RegisterCombinersChunkBase::getType(void) const
00442 {
00443 return _type;
00444 }
00445
00446
00447 FieldContainerPtr RegisterCombinersChunkBase::shallowCopy(void) const
00448 {
00449 RegisterCombinersChunkPtr returnValue;
00450
00451 newPtr(returnValue, dynamic_cast<const RegisterCombinersChunk *>(this));
00452
00453 return returnValue;
00454 }
00455
00456 UInt32 RegisterCombinersChunkBase::getContainerSize(void) const
00457 {
00458 return sizeof(RegisterCombinersChunk);
00459 }
00460
00461
00462 #if !defined(OSG_FIXED_MFIELDSYNC)
00463 void RegisterCombinersChunkBase::executeSync( FieldContainer &other,
00464 const BitVector &whichField)
00465 {
00466 this->executeSyncImpl((RegisterCombinersChunkBase *) &other, whichField);
00467 }
00468 #else
00469 void RegisterCombinersChunkBase::executeSync( FieldContainer &other,
00470 const BitVector &whichField, const SyncInfo &sInfo )
00471 {
00472 this->executeSyncImpl((RegisterCombinersChunkBase *) &other, whichField, sInfo);
00473 }
00474 void RegisterCombinersChunkBase::execBeginEdit(const BitVector &whichField,
00475 UInt32 uiAspect,
00476 UInt32 uiContainerSize)
00477 {
00478 this->execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00479 }
00480
00481 void RegisterCombinersChunkBase::onDestroyAspect(UInt32 uiId, UInt32 uiAspect)
00482 {
00483 Inherited::onDestroyAspect(uiId, uiAspect);
00484
00485 _mfVariableArgb.terminateShare(uiAspect, this->getContainerSize());
00486 _mfVariableBrgb.terminateShare(uiAspect, this->getContainerSize());
00487 _mfVariableCrgb.terminateShare(uiAspect, this->getContainerSize());
00488 _mfVariableDrgb.terminateShare(uiAspect, this->getContainerSize());
00489 _mfVariableAalpha.terminateShare(uiAspect, this->getContainerSize());
00490 _mfVariableBalpha.terminateShare(uiAspect, this->getContainerSize());
00491 _mfVariableCalpha.terminateShare(uiAspect, this->getContainerSize());
00492 _mfVariableDalpha.terminateShare(uiAspect, this->getContainerSize());
00493 _mfOutputABrgb.terminateShare(uiAspect, this->getContainerSize());
00494 _mfOutputCDrgb.terminateShare(uiAspect, this->getContainerSize());
00495 _mfOutputSumrgb.terminateShare(uiAspect, this->getContainerSize());
00496 _mfScalergb.terminateShare(uiAspect, this->getContainerSize());
00497 _mfBiasrgb.terminateShare(uiAspect, this->getContainerSize());
00498 _mfOutputABalpha.terminateShare(uiAspect, this->getContainerSize());
00499 _mfOutputCDalpha.terminateShare(uiAspect, this->getContainerSize());
00500 _mfOutputSumalpha.terminateShare(uiAspect, this->getContainerSize());
00501 _mfDotABrgb.terminateShare(uiAspect, this->getContainerSize());
00502 _mfDotCDrgb.terminateShare(uiAspect, this->getContainerSize());
00503 _mfMuxSumrgb.terminateShare(uiAspect, this->getContainerSize());
00504 _mfScalealpha.terminateShare(uiAspect, this->getContainerSize());
00505 _mfBiasalpha.terminateShare(uiAspect, this->getContainerSize());
00506 _mfMuxSumalpha.terminateShare(uiAspect, this->getContainerSize());
00507 _mfVariableE.terminateShare(uiAspect, this->getContainerSize());
00508 _mfVariableF.terminateShare(uiAspect, this->getContainerSize());
00509 _mfVariableG.terminateShare(uiAspect, this->getContainerSize());
00510 _mfCombinerColor0.terminateShare(uiAspect, this->getContainerSize());
00511 _mfCombinerColor1.terminateShare(uiAspect, this->getContainerSize());
00512 }
00513 #endif
00514
00515
00516
00517 #ifdef OSG_WIN32_ICL
00518 #pragma warning (disable : 383)
00519 #endif
00520
00521 RegisterCombinersChunkBase::RegisterCombinersChunkBase(void) :
00522 _sfColor0 (),
00523 _sfColor1 (),
00524 _sfColorSumClamp (bool(false)),
00525 _mfVariableArgb (),
00526 _mfVariableBrgb (),
00527 _mfVariableCrgb (),
00528 _mfVariableDrgb (),
00529 _mfVariableAalpha (),
00530 _mfVariableBalpha (),
00531 _mfVariableCalpha (),
00532 _mfVariableDalpha (),
00533 _mfOutputABrgb (),
00534 _mfOutputCDrgb (),
00535 _mfOutputSumrgb (),
00536 _mfScalergb (),
00537 _mfBiasrgb (),
00538 _mfOutputABalpha (),
00539 _mfOutputCDalpha (),
00540 _mfOutputSumalpha (),
00541 _mfDotABrgb (),
00542 _mfDotCDrgb (),
00543 _mfMuxSumrgb (),
00544 _mfScalealpha (),
00545 _mfBiasalpha (),
00546 _mfMuxSumalpha (),
00547 _mfVariableE (),
00548 _mfVariableF (),
00549 _mfVariableG (),
00550 _mfCombinerColor0 (),
00551 _mfCombinerColor1 (),
00552 _sfPerStageConstants (),
00553 Inherited()
00554 {
00555 }
00556
00557 #ifdef OSG_WIN32_ICL
00558 #pragma warning (default : 383)
00559 #endif
00560
00561 RegisterCombinersChunkBase::RegisterCombinersChunkBase(const RegisterCombinersChunkBase &source) :
00562 _sfColor0 (source._sfColor0 ),
00563 _sfColor1 (source._sfColor1 ),
00564 _sfColorSumClamp (source._sfColorSumClamp ),
00565 _mfVariableArgb (source._mfVariableArgb ),
00566 _mfVariableBrgb (source._mfVariableBrgb ),
00567 _mfVariableCrgb (source._mfVariableCrgb ),
00568 _mfVariableDrgb (source._mfVariableDrgb ),
00569 _mfVariableAalpha (source._mfVariableAalpha ),
00570 _mfVariableBalpha (source._mfVariableBalpha ),
00571 _mfVariableCalpha (source._mfVariableCalpha ),
00572 _mfVariableDalpha (source._mfVariableDalpha ),
00573 _mfOutputABrgb (source._mfOutputABrgb ),
00574 _mfOutputCDrgb (source._mfOutputCDrgb ),
00575 _mfOutputSumrgb (source._mfOutputSumrgb ),
00576 _mfScalergb (source._mfScalergb ),
00577 _mfBiasrgb (source._mfBiasrgb ),
00578 _mfOutputABalpha (source._mfOutputABalpha ),
00579 _mfOutputCDalpha (source._mfOutputCDalpha ),
00580 _mfOutputSumalpha (source._mfOutputSumalpha ),
00581 _mfDotABrgb (source._mfDotABrgb ),
00582 _mfDotCDrgb (source._mfDotCDrgb ),
00583 _mfMuxSumrgb (source._mfMuxSumrgb ),
00584 _mfScalealpha (source._mfScalealpha ),
00585 _mfBiasalpha (source._mfBiasalpha ),
00586 _mfMuxSumalpha (source._mfMuxSumalpha ),
00587 _mfVariableE (source._mfVariableE ),
00588 _mfVariableF (source._mfVariableF ),
00589 _mfVariableG (source._mfVariableG ),
00590 _mfCombinerColor0 (source._mfCombinerColor0 ),
00591 _mfCombinerColor1 (source._mfCombinerColor1 ),
00592 _sfPerStageConstants (source._sfPerStageConstants ),
00593 Inherited (source)
00594 {
00595 }
00596
00597
00598
00599 RegisterCombinersChunkBase::~RegisterCombinersChunkBase(void)
00600 {
00601 }
00602
00603
00604
00605 UInt32 RegisterCombinersChunkBase::getBinSize(const BitVector &whichField)
00606 {
00607 UInt32 returnValue = Inherited::getBinSize(whichField);
00608
00609 if(FieldBits::NoField != (Color0FieldMask & whichField))
00610 {
00611 returnValue += _sfColor0.getBinSize();
00612 }
00613
00614 if(FieldBits::NoField != (Color1FieldMask & whichField))
00615 {
00616 returnValue += _sfColor1.getBinSize();
00617 }
00618
00619 if(FieldBits::NoField != (ColorSumClampFieldMask & whichField))
00620 {
00621 returnValue += _sfColorSumClamp.getBinSize();
00622 }
00623
00624 if(FieldBits::NoField != (VariableArgbFieldMask & whichField))
00625 {
00626 returnValue += _mfVariableArgb.getBinSize();
00627 }
00628
00629 if(FieldBits::NoField != (VariableBrgbFieldMask & whichField))
00630 {
00631 returnValue += _mfVariableBrgb.getBinSize();
00632 }
00633
00634 if(FieldBits::NoField != (VariableCrgbFieldMask & whichField))
00635 {
00636 returnValue += _mfVariableCrgb.getBinSize();
00637 }
00638
00639 if(FieldBits::NoField != (VariableDrgbFieldMask & whichField))
00640 {
00641 returnValue += _mfVariableDrgb.getBinSize();
00642 }
00643
00644 if(FieldBits::NoField != (VariableAalphaFieldMask & whichField))
00645 {
00646 returnValue += _mfVariableAalpha.getBinSize();
00647 }
00648
00649 if(FieldBits::NoField != (VariableBalphaFieldMask & whichField))
00650 {
00651 returnValue += _mfVariableBalpha.getBinSize();
00652 }
00653
00654 if(FieldBits::NoField != (VariableCalphaFieldMask & whichField))
00655 {
00656 returnValue += _mfVariableCalpha.getBinSize();
00657 }
00658
00659 if(FieldBits::NoField != (VariableDalphaFieldMask & whichField))
00660 {
00661 returnValue += _mfVariableDalpha.getBinSize();
00662 }
00663
00664 if(FieldBits::NoField != (OutputABrgbFieldMask & whichField))
00665 {
00666 returnValue += _mfOutputABrgb.getBinSize();
00667 }
00668
00669 if(FieldBits::NoField != (OutputCDrgbFieldMask & whichField))
00670 {
00671 returnValue += _mfOutputCDrgb.getBinSize();
00672 }
00673
00674 if(FieldBits::NoField != (OutputSumrgbFieldMask & whichField))
00675 {
00676 returnValue += _mfOutputSumrgb.getBinSize();
00677 }
00678
00679 if(FieldBits::NoField != (ScalergbFieldMask & whichField))
00680 {
00681 returnValue += _mfScalergb.getBinSize();
00682 }
00683
00684 if(FieldBits::NoField != (BiasrgbFieldMask & whichField))
00685 {
00686 returnValue += _mfBiasrgb.getBinSize();
00687 }
00688
00689 if(FieldBits::NoField != (OutputABalphaFieldMask & whichField))
00690 {
00691 returnValue += _mfOutputABalpha.getBinSize();
00692 }
00693
00694 if(FieldBits::NoField != (OutputCDalphaFieldMask & whichField))
00695 {
00696 returnValue += _mfOutputCDalpha.getBinSize();
00697 }
00698
00699 if(FieldBits::NoField != (OutputSumalphaFieldMask & whichField))
00700 {
00701 returnValue += _mfOutputSumalpha.getBinSize();
00702 }
00703
00704 if(FieldBits::NoField != (DotABrgbFieldMask & whichField))
00705 {
00706 returnValue += _mfDotABrgb.getBinSize();
00707 }
00708
00709 if(FieldBits::NoField != (DotCDrgbFieldMask & whichField))
00710 {
00711 returnValue += _mfDotCDrgb.getBinSize();
00712 }
00713
00714 if(FieldBits::NoField != (MuxSumrgbFieldMask & whichField))
00715 {
00716 returnValue += _mfMuxSumrgb.getBinSize();
00717 }
00718
00719 if(FieldBits::NoField != (ScalealphaFieldMask & whichField))
00720 {
00721 returnValue += _mfScalealpha.getBinSize();
00722 }
00723
00724 if(FieldBits::NoField != (BiasalphaFieldMask & whichField))
00725 {
00726 returnValue += _mfBiasalpha.getBinSize();
00727 }
00728
00729 if(FieldBits::NoField != (MuxSumalphaFieldMask & whichField))
00730 {
00731 returnValue += _mfMuxSumalpha.getBinSize();
00732 }
00733
00734 if(FieldBits::NoField != (VariableEFieldMask & whichField))
00735 {
00736 returnValue += _mfVariableE.getBinSize();
00737 }
00738
00739 if(FieldBits::NoField != (VariableFFieldMask & whichField))
00740 {
00741 returnValue += _mfVariableF.getBinSize();
00742 }
00743
00744 if(FieldBits::NoField != (VariableGFieldMask & whichField))
00745 {
00746 returnValue += _mfVariableG.getBinSize();
00747 }
00748
00749 if(FieldBits::NoField != (CombinerColor0FieldMask & whichField))
00750 {
00751 returnValue += _mfCombinerColor0.getBinSize();
00752 }
00753
00754 if(FieldBits::NoField != (CombinerColor1FieldMask & whichField))
00755 {
00756 returnValue += _mfCombinerColor1.getBinSize();
00757 }
00758
00759 if(FieldBits::NoField != (PerStageConstantsFieldMask & whichField))
00760 {
00761 returnValue += _sfPerStageConstants.getBinSize();
00762 }
00763
00764
00765 return returnValue;
00766 }
00767
00768 void RegisterCombinersChunkBase::copyToBin( BinaryDataHandler &pMem,
00769 const BitVector &whichField)
00770 {
00771 Inherited::copyToBin(pMem, whichField);
00772
00773 if(FieldBits::NoField != (Color0FieldMask & whichField))
00774 {
00775 _sfColor0.copyToBin(pMem);
00776 }
00777
00778 if(FieldBits::NoField != (Color1FieldMask & whichField))
00779 {
00780 _sfColor1.copyToBin(pMem);
00781 }
00782
00783 if(FieldBits::NoField != (ColorSumClampFieldMask & whichField))
00784 {
00785 _sfColorSumClamp.copyToBin(pMem);
00786 }
00787
00788 if(FieldBits::NoField != (VariableArgbFieldMask & whichField))
00789 {
00790 _mfVariableArgb.copyToBin(pMem);
00791 }
00792
00793 if(FieldBits::NoField != (VariableBrgbFieldMask & whichField))
00794 {
00795 _mfVariableBrgb.copyToBin(pMem);
00796 }
00797
00798 if(FieldBits::NoField != (VariableCrgbFieldMask & whichField))
00799 {
00800 _mfVariableCrgb.copyToBin(pMem);
00801 }
00802
00803 if(FieldBits::NoField != (VariableDrgbFieldMask & whichField))
00804 {
00805 _mfVariableDrgb.copyToBin(pMem);
00806 }
00807
00808 if(FieldBits::NoField != (VariableAalphaFieldMask & whichField))
00809 {
00810 _mfVariableAalpha.copyToBin(pMem);
00811 }
00812
00813 if(FieldBits::NoField != (VariableBalphaFieldMask & whichField))
00814 {
00815 _mfVariableBalpha.copyToBin(pMem);
00816 }
00817
00818 if(FieldBits::NoField != (VariableCalphaFieldMask & whichField))
00819 {
00820 _mfVariableCalpha.copyToBin(pMem);
00821 }
00822
00823 if(FieldBits::NoField != (VariableDalphaFieldMask & whichField))
00824 {
00825 _mfVariableDalpha.copyToBin(pMem);
00826 }
00827
00828 if(FieldBits::NoField != (OutputABrgbFieldMask & whichField))
00829 {
00830 _mfOutputABrgb.copyToBin(pMem);
00831 }
00832
00833 if(FieldBits::NoField != (OutputCDrgbFieldMask & whichField))
00834 {
00835 _mfOutputCDrgb.copyToBin(pMem);
00836 }
00837
00838 if(FieldBits::NoField != (OutputSumrgbFieldMask & whichField))
00839 {
00840 _mfOutputSumrgb.copyToBin(pMem);
00841 }
00842
00843 if(FieldBits::NoField != (ScalergbFieldMask & whichField))
00844 {
00845 _mfScalergb.copyToBin(pMem);
00846 }
00847
00848 if(FieldBits::NoField != (BiasrgbFieldMask & whichField))
00849 {
00850 _mfBiasrgb.copyToBin(pMem);
00851 }
00852
00853 if(FieldBits::NoField != (OutputABalphaFieldMask & whichField))
00854 {
00855 _mfOutputABalpha.copyToBin(pMem);
00856 }
00857
00858 if(FieldBits::NoField != (OutputCDalphaFieldMask & whichField))
00859 {
00860 _mfOutputCDalpha.copyToBin(pMem);
00861 }
00862
00863 if(FieldBits::NoField != (OutputSumalphaFieldMask & whichField))
00864 {
00865 _mfOutputSumalpha.copyToBin(pMem);
00866 }
00867
00868 if(FieldBits::NoField != (DotABrgbFieldMask & whichField))
00869 {
00870 _mfDotABrgb.copyToBin(pMem);
00871 }
00872
00873 if(FieldBits::NoField != (DotCDrgbFieldMask & whichField))
00874 {
00875 _mfDotCDrgb.copyToBin(pMem);
00876 }
00877
00878 if(FieldBits::NoField != (MuxSumrgbFieldMask & whichField))
00879 {
00880 _mfMuxSumrgb.copyToBin(pMem);
00881 }
00882
00883 if(FieldBits::NoField != (ScalealphaFieldMask & whichField))
00884 {
00885 _mfScalealpha.copyToBin(pMem);
00886 }
00887
00888 if(FieldBits::NoField != (BiasalphaFieldMask & whichField))
00889 {
00890 _mfBiasalpha.copyToBin(pMem);
00891 }
00892
00893 if(FieldBits::NoField != (MuxSumalphaFieldMask & whichField))
00894 {
00895 _mfMuxSumalpha.copyToBin(pMem);
00896 }
00897
00898 if(FieldBits::NoField != (VariableEFieldMask & whichField))
00899 {
00900 _mfVariableE.copyToBin(pMem);
00901 }
00902
00903 if(FieldBits::NoField != (VariableFFieldMask & whichField))
00904 {
00905 _mfVariableF.copyToBin(pMem);
00906 }
00907
00908 if(FieldBits::NoField != (VariableGFieldMask & whichField))
00909 {
00910 _mfVariableG.copyToBin(pMem);
00911 }
00912
00913 if(FieldBits::NoField != (CombinerColor0FieldMask & whichField))
00914 {
00915 _mfCombinerColor0.copyToBin(pMem);
00916 }
00917
00918 if(FieldBits::NoField != (CombinerColor1FieldMask & whichField))
00919 {
00920 _mfCombinerColor1.copyToBin(pMem);
00921 }
00922
00923 if(FieldBits::NoField != (PerStageConstantsFieldMask & whichField))
00924 {
00925 _sfPerStageConstants.copyToBin(pMem);
00926 }
00927
00928
00929 }
00930
00931 void RegisterCombinersChunkBase::copyFromBin( BinaryDataHandler &pMem,
00932 const BitVector &whichField)
00933 {
00934 Inherited::copyFromBin(pMem, whichField);
00935
00936 if(FieldBits::NoField != (Color0FieldMask & whichField))
00937 {
00938 _sfColor0.copyFromBin(pMem);
00939 }
00940
00941 if(FieldBits::NoField != (Color1FieldMask & whichField))
00942 {
00943 _sfColor1.copyFromBin(pMem);
00944 }
00945
00946 if(FieldBits::NoField != (ColorSumClampFieldMask & whichField))
00947 {
00948 _sfColorSumClamp.copyFromBin(pMem);
00949 }
00950
00951 if(FieldBits::NoField != (VariableArgbFieldMask & whichField))
00952 {
00953 _mfVariableArgb.copyFromBin(pMem);
00954 }
00955
00956 if(FieldBits::NoField != (VariableBrgbFieldMask & whichField))
00957 {
00958 _mfVariableBrgb.copyFromBin(pMem);
00959 }
00960
00961 if(FieldBits::NoField != (VariableCrgbFieldMask & whichField))
00962 {
00963 _mfVariableCrgb.copyFromBin(pMem);
00964 }
00965
00966 if(FieldBits::NoField != (VariableDrgbFieldMask & whichField))
00967 {
00968 _mfVariableDrgb.copyFromBin(pMem);
00969 }
00970
00971 if(FieldBits::NoField != (VariableAalphaFieldMask & whichField))
00972 {
00973 _mfVariableAalpha.copyFromBin(pMem);
00974 }
00975
00976 if(FieldBits::NoField != (VariableBalphaFieldMask & whichField))
00977 {
00978 _mfVariableBalpha.copyFromBin(pMem);
00979 }
00980
00981 if(FieldBits::NoField != (VariableCalphaFieldMask & whichField))
00982 {
00983 _mfVariableCalpha.copyFromBin(pMem);
00984 }
00985
00986 if(FieldBits::NoField != (VariableDalphaFieldMask & whichField))
00987 {
00988 _mfVariableDalpha.copyFromBin(pMem);
00989 }
00990
00991 if(FieldBits::NoField != (OutputABrgbFieldMask & whichField))
00992 {
00993 _mfOutputABrgb.copyFromBin(pMem);
00994 }
00995
00996 if(FieldBits::NoField != (OutputCDrgbFieldMask & whichField))
00997 {
00998 _mfOutputCDrgb.copyFromBin(pMem);
00999 }
01000
01001 if(FieldBits::NoField != (OutputSumrgbFieldMask & whichField))
01002 {
01003 _mfOutputSumrgb.copyFromBin(pMem);
01004 }
01005
01006 if(FieldBits::NoField != (ScalergbFieldMask & whichField))
01007 {
01008 _mfScalergb.copyFromBin(pMem);
01009 }
01010
01011 if(FieldBits::NoField != (BiasrgbFieldMask & whichField))
01012 {
01013 _mfBiasrgb.copyFromBin(pMem);
01014 }
01015
01016 if(FieldBits::NoField != (OutputABalphaFieldMask & whichField))
01017 {
01018 _mfOutputABalpha.copyFromBin(pMem);
01019 }
01020
01021 if(FieldBits::NoField != (OutputCDalphaFieldMask & whichField))
01022 {
01023 _mfOutputCDalpha.copyFromBin(pMem);
01024 }
01025
01026 if(FieldBits::NoField != (OutputSumalphaFieldMask & whichField))
01027 {
01028 _mfOutputSumalpha.copyFromBin(pMem);
01029 }
01030
01031 if(FieldBits::NoField != (DotABrgbFieldMask & whichField))
01032 {
01033 _mfDotABrgb.copyFromBin(pMem);
01034 }
01035
01036 if(FieldBits::NoField != (DotCDrgbFieldMask & whichField))
01037 {
01038 _mfDotCDrgb.copyFromBin(pMem);
01039 }
01040
01041 if(FieldBits::NoField != (MuxSumrgbFieldMask & whichField))
01042 {
01043 _mfMuxSumrgb.copyFromBin(pMem);
01044 }
01045
01046 if(FieldBits::NoField != (ScalealphaFieldMask & whichField))
01047 {
01048 _mfScalealpha.copyFromBin(pMem);
01049 }
01050
01051 if(FieldBits::NoField != (BiasalphaFieldMask & whichField))
01052 {
01053 _mfBiasalpha.copyFromBin(pMem);
01054 }
01055
01056 if(FieldBits::NoField != (MuxSumalphaFieldMask & whichField))
01057 {
01058 _mfMuxSumalpha.copyFromBin(pMem);
01059 }
01060
01061 if(FieldBits::NoField != (VariableEFieldMask & whichField))
01062 {
01063 _mfVariableE.copyFromBin(pMem);
01064 }
01065
01066 if(FieldBits::NoField != (VariableFFieldMask & whichField))
01067 {
01068 _mfVariableF.copyFromBin(pMem);
01069 }
01070
01071 if(FieldBits::NoField != (VariableGFieldMask & whichField))
01072 {
01073 _mfVariableG.copyFromBin(pMem);
01074 }
01075
01076 if(FieldBits::NoField != (CombinerColor0FieldMask & whichField))
01077 {
01078 _mfCombinerColor0.copyFromBin(pMem);
01079 }
01080
01081 if(FieldBits::NoField != (CombinerColor1FieldMask & whichField))
01082 {
01083 _mfCombinerColor1.copyFromBin(pMem);
01084 }
01085
01086 if(FieldBits::NoField != (PerStageConstantsFieldMask & whichField))
01087 {
01088 _sfPerStageConstants.copyFromBin(pMem);
01089 }
01090
01091
01092 }
01093
01094 #if !defined(OSG_FIXED_MFIELDSYNC)
01095 void RegisterCombinersChunkBase::executeSyncImpl( RegisterCombinersChunkBase *pOther,
01096 const BitVector &whichField)
01097 {
01098
01099 Inherited::executeSyncImpl(pOther, whichField);
01100
01101 if(FieldBits::NoField != (Color0FieldMask & whichField))
01102 _sfColor0.syncWith(pOther->_sfColor0);
01103
01104 if(FieldBits::NoField != (Color1FieldMask & whichField))
01105 _sfColor1.syncWith(pOther->_sfColor1);
01106
01107 if(FieldBits::NoField != (ColorSumClampFieldMask & whichField))
01108 _sfColorSumClamp.syncWith(pOther->_sfColorSumClamp);
01109
01110 if(FieldBits::NoField != (VariableArgbFieldMask & whichField))
01111 _mfVariableArgb.syncWith(pOther->_mfVariableArgb);
01112
01113 if(FieldBits::NoField != (VariableBrgbFieldMask & whichField))
01114 _mfVariableBrgb.syncWith(pOther->_mfVariableBrgb);
01115
01116 if(FieldBits::NoField != (VariableCrgbFieldMask & whichField))
01117 _mfVariableCrgb.syncWith(pOther->_mfVariableCrgb);
01118
01119 if(FieldBits::NoField != (VariableDrgbFieldMask & whichField))
01120 _mfVariableDrgb.syncWith(pOther->_mfVariableDrgb);
01121
01122 if(FieldBits::NoField != (VariableAalphaFieldMask & whichField))
01123 _mfVariableAalpha.syncWith(pOther->_mfVariableAalpha);
01124
01125 if(FieldBits::NoField != (VariableBalphaFieldMask & whichField))
01126 _mfVariableBalpha.syncWith(pOther->_mfVariableBalpha);
01127
01128 if(FieldBits::NoField != (VariableCalphaFieldMask & whichField))
01129 _mfVariableCalpha.syncWith(pOther->_mfVariableCalpha);
01130
01131 if(FieldBits::NoField != (VariableDalphaFieldMask & whichField))
01132 _mfVariableDalpha.syncWith(pOther->_mfVariableDalpha);
01133
01134 if(FieldBits::NoField != (OutputABrgbFieldMask & whichField))
01135 _mfOutputABrgb.syncWith(pOther->_mfOutputABrgb);
01136
01137 if(FieldBits::NoField != (OutputCDrgbFieldMask & whichField))
01138 _mfOutputCDrgb.syncWith(pOther->_mfOutputCDrgb);
01139
01140 if(FieldBits::NoField != (OutputSumrgbFieldMask & whichField))
01141 _mfOutputSumrgb.syncWith(pOther->_mfOutputSumrgb);
01142
01143 if(FieldBits::NoField != (ScalergbFieldMask & whichField))
01144 _mfScalergb.syncWith(pOther->_mfScalergb);
01145
01146 if(FieldBits::NoField != (BiasrgbFieldMask & whichField))
01147 _mfBiasrgb.syncWith(pOther->_mfBiasrgb);
01148
01149 if(FieldBits::NoField != (OutputABalphaFieldMask & whichField))
01150 _mfOutputABalpha.syncWith(pOther->_mfOutputABalpha);
01151
01152 if(FieldBits::NoField != (OutputCDalphaFieldMask & whichField))
01153 _mfOutputCDalpha.syncWith(pOther->_mfOutputCDalpha);
01154
01155 if(FieldBits::NoField != (OutputSumalphaFieldMask & whichField))
01156 _mfOutputSumalpha.syncWith(pOther->_mfOutputSumalpha);
01157
01158 if(FieldBits::NoField != (DotABrgbFieldMask & whichField))
01159 _mfDotABrgb.syncWith(pOther->_mfDotABrgb);
01160
01161 if(FieldBits::NoField != (DotCDrgbFieldMask & whichField))
01162 _mfDotCDrgb.syncWith(pOther->_mfDotCDrgb);
01163
01164 if(FieldBits::NoField != (MuxSumrgbFieldMask & whichField))
01165 _mfMuxSumrgb.syncWith(pOther->_mfMuxSumrgb);
01166
01167 if(FieldBits::NoField != (ScalealphaFieldMask & whichField))
01168 _mfScalealpha.syncWith(pOther->_mfScalealpha);
01169
01170 if(FieldBits::NoField != (BiasalphaFieldMask & whichField))
01171 _mfBiasalpha.syncWith(pOther->_mfBiasalpha);
01172
01173 if(FieldBits::NoField != (MuxSumalphaFieldMask & whichField))
01174 _mfMuxSumalpha.syncWith(pOther->_mfMuxSumalpha);
01175
01176 if(FieldBits::NoField != (VariableEFieldMask & whichField))
01177 _mfVariableE.syncWith(pOther->_mfVariableE);
01178
01179 if(FieldBits::NoField != (VariableFFieldMask & whichField))
01180 _mfVariableF.syncWith(pOther->_mfVariableF);
01181
01182 if(FieldBits::NoField != (VariableGFieldMask & whichField))
01183 _mfVariableG.syncWith(pOther->_mfVariableG);
01184
01185 if(FieldBits::NoField != (CombinerColor0FieldMask & whichField))
01186 _mfCombinerColor0.syncWith(pOther->_mfCombinerColor0);
01187
01188 if(FieldBits::NoField != (CombinerColor1FieldMask & whichField))
01189 _mfCombinerColor1.syncWith(pOther->_mfCombinerColor1);
01190
01191 if(FieldBits::NoField != (PerStageConstantsFieldMask & whichField))
01192 _sfPerStageConstants.syncWith(pOther->_sfPerStageConstants);
01193
01194
01195 }
01196 #else
01197 void RegisterCombinersChunkBase::executeSyncImpl( RegisterCombinersChunkBase *pOther,
01198 const BitVector &whichField,
01199 const SyncInfo &sInfo )
01200 {
01201
01202 Inherited::executeSyncImpl(pOther, whichField, sInfo);
01203
01204 if(FieldBits::NoField != (Color0FieldMask & whichField))
01205 _sfColor0.syncWith(pOther->_sfColor0);
01206
01207 if(FieldBits::NoField != (Color1FieldMask & whichField))
01208 _sfColor1.syncWith(pOther->_sfColor1);
01209
01210 if(FieldBits::NoField != (ColorSumClampFieldMask & whichField))
01211 _sfColorSumClamp.syncWith(pOther->_sfColorSumClamp);
01212
01213 if(FieldBits::NoField != (PerStageConstantsFieldMask & whichField))
01214 _sfPerStageConstants.syncWith(pOther->_sfPerStageConstants);
01215
01216
01217 if(FieldBits::NoField != (VariableArgbFieldMask & whichField))
01218 _mfVariableArgb.syncWith(pOther->_mfVariableArgb, sInfo);
01219
01220 if(FieldBits::NoField != (VariableBrgbFieldMask & whichField))
01221 _mfVariableBrgb.syncWith(pOther->_mfVariableBrgb, sInfo);
01222
01223 if(FieldBits::NoField != (VariableCrgbFieldMask & whichField))
01224 _mfVariableCrgb.syncWith(pOther->_mfVariableCrgb, sInfo);
01225
01226 if(FieldBits::NoField != (VariableDrgbFieldMask & whichField))
01227 _mfVariableDrgb.syncWith(pOther->_mfVariableDrgb, sInfo);
01228
01229 if(FieldBits::NoField != (VariableAalphaFieldMask & whichField))
01230 _mfVariableAalpha.syncWith(pOther->_mfVariableAalpha, sInfo);
01231
01232 if(FieldBits::NoField != (VariableBalphaFieldMask & whichField))
01233 _mfVariableBalpha.syncWith(pOther->_mfVariableBalpha, sInfo);
01234
01235 if(FieldBits::NoField != (VariableCalphaFieldMask & whichField))
01236 _mfVariableCalpha.syncWith(pOther->_mfVariableCalpha, sInfo);
01237
01238 if(FieldBits::NoField != (VariableDalphaFieldMask & whichField))
01239 _mfVariableDalpha.syncWith(pOther->_mfVariableDalpha, sInfo);
01240
01241 if(FieldBits::NoField != (OutputABrgbFieldMask & whichField))
01242 _mfOutputABrgb.syncWith(pOther->_mfOutputABrgb, sInfo);
01243
01244 if(FieldBits::NoField != (OutputCDrgbFieldMask & whichField))
01245 _mfOutputCDrgb.syncWith(pOther->_mfOutputCDrgb, sInfo);
01246
01247 if(FieldBits::NoField != (OutputSumrgbFieldMask & whichField))
01248 _mfOutputSumrgb.syncWith(pOther->_mfOutputSumrgb, sInfo);
01249
01250 if(FieldBits::NoField != (ScalergbFieldMask & whichField))
01251 _mfScalergb.syncWith(pOther->_mfScalergb, sInfo);
01252
01253 if(FieldBits::NoField != (BiasrgbFieldMask & whichField))
01254 _mfBiasrgb.syncWith(pOther->_mfBiasrgb, sInfo);
01255
01256 if(FieldBits::NoField != (OutputABalphaFieldMask & whichField))
01257 _mfOutputABalpha.syncWith(pOther->_mfOutputABalpha, sInfo);
01258
01259 if(FieldBits::NoField != (OutputCDalphaFieldMask & whichField))
01260 _mfOutputCDalpha.syncWith(pOther->_mfOutputCDalpha, sInfo);
01261
01262 if(FieldBits::NoField != (OutputSumalphaFieldMask & whichField))
01263 _mfOutputSumalpha.syncWith(pOther->_mfOutputSumalpha, sInfo);
01264
01265 if(FieldBits::NoField != (DotABrgbFieldMask & whichField))
01266 _mfDotABrgb.syncWith(pOther->_mfDotABrgb, sInfo);
01267
01268 if(FieldBits::NoField != (DotCDrgbFieldMask & whichField))
01269 _mfDotCDrgb.syncWith(pOther->_mfDotCDrgb, sInfo);
01270
01271 if(FieldBits::NoField != (MuxSumrgbFieldMask & whichField))
01272 _mfMuxSumrgb.syncWith(pOther->_mfMuxSumrgb, sInfo);
01273
01274 if(FieldBits::NoField != (ScalealphaFieldMask & whichField))
01275 _mfScalealpha.syncWith(pOther->_mfScalealpha, sInfo);
01276
01277 if(FieldBits::NoField != (BiasalphaFieldMask & whichField))
01278 _mfBiasalpha.syncWith(pOther->_mfBiasalpha, sInfo);
01279
01280 if(FieldBits::NoField != (MuxSumalphaFieldMask & whichField))
01281 _mfMuxSumalpha.syncWith(pOther->_mfMuxSumalpha, sInfo);
01282
01283 if(FieldBits::NoField != (VariableEFieldMask & whichField))
01284 _mfVariableE.syncWith(pOther->_mfVariableE, sInfo);
01285
01286 if(FieldBits::NoField != (VariableFFieldMask & whichField))
01287 _mfVariableF.syncWith(pOther->_mfVariableF, sInfo);
01288
01289 if(FieldBits::NoField != (VariableGFieldMask & whichField))
01290 _mfVariableG.syncWith(pOther->_mfVariableG, sInfo);
01291
01292 if(FieldBits::NoField != (CombinerColor0FieldMask & whichField))
01293 _mfCombinerColor0.syncWith(pOther->_mfCombinerColor0, sInfo);
01294
01295 if(FieldBits::NoField != (CombinerColor1FieldMask & whichField))
01296 _mfCombinerColor1.syncWith(pOther->_mfCombinerColor1, sInfo);
01297
01298
01299 }
01300
01301 void RegisterCombinersChunkBase::execBeginEditImpl (const BitVector &whichField,
01302 UInt32 uiAspect,
01303 UInt32 uiContainerSize)
01304 {
01305 Inherited::execBeginEditImpl(whichField, uiAspect, uiContainerSize);
01306
01307 if(FieldBits::NoField != (VariableArgbFieldMask & whichField))
01308 _mfVariableArgb.beginEdit(uiAspect, uiContainerSize);
01309
01310 if(FieldBits::NoField != (VariableBrgbFieldMask & whichField))
01311 _mfVariableBrgb.beginEdit(uiAspect, uiContainerSize);
01312
01313 if(FieldBits::NoField != (VariableCrgbFieldMask & whichField))
01314 _mfVariableCrgb.beginEdit(uiAspect, uiContainerSize);
01315
01316 if(FieldBits::NoField != (VariableDrgbFieldMask & whichField))
01317 _mfVariableDrgb.beginEdit(uiAspect, uiContainerSize);
01318
01319 if(FieldBits::NoField != (VariableAalphaFieldMask & whichField))
01320 _mfVariableAalpha.beginEdit(uiAspect, uiContainerSize);
01321
01322 if(FieldBits::NoField != (VariableBalphaFieldMask & whichField))
01323 _mfVariableBalpha.beginEdit(uiAspect, uiContainerSize);
01324
01325 if(FieldBits::NoField != (VariableCalphaFieldMask & whichField))
01326 _mfVariableCalpha.beginEdit(uiAspect, uiContainerSize);
01327
01328 if(FieldBits::NoField != (VariableDalphaFieldMask & whichField))
01329 _mfVariableDalpha.beginEdit(uiAspect, uiContainerSize);
01330
01331 if(FieldBits::NoField != (OutputABrgbFieldMask & whichField))
01332 _mfOutputABrgb.beginEdit(uiAspect, uiContainerSize);
01333
01334 if(FieldBits::NoField != (OutputCDrgbFieldMask & whichField))
01335 _mfOutputCDrgb.beginEdit(uiAspect, uiContainerSize);
01336
01337 if(FieldBits::NoField != (OutputSumrgbFieldMask & whichField))
01338 _mfOutputSumrgb.beginEdit(uiAspect, uiContainerSize);
01339
01340 if(FieldBits::NoField != (ScalergbFieldMask & whichField))
01341 _mfScalergb.beginEdit(uiAspect, uiContainerSize);
01342
01343 if(FieldBits::NoField != (BiasrgbFieldMask & whichField))
01344 _mfBiasrgb.beginEdit(uiAspect, uiContainerSize);
01345
01346 if(FieldBits::NoField != (OutputABalphaFieldMask & whichField))
01347 _mfOutputABalpha.beginEdit(uiAspect, uiContainerSize);
01348
01349 if(FieldBits::NoField != (OutputCDalphaFieldMask & whichField))
01350 _mfOutputCDalpha.beginEdit(uiAspect, uiContainerSize);
01351
01352 if(FieldBits::NoField != (OutputSumalphaFieldMask & whichField))
01353 _mfOutputSumalpha.beginEdit(uiAspect, uiContainerSize);
01354
01355 if(FieldBits::NoField != (DotABrgbFieldMask & whichField))
01356 _mfDotABrgb.beginEdit(uiAspect, uiContainerSize);
01357
01358 if(FieldBits::NoField != (DotCDrgbFieldMask & whichField))
01359 _mfDotCDrgb.beginEdit(uiAspect, uiContainerSize);
01360
01361 if(FieldBits::NoField != (MuxSumrgbFieldMask & whichField))
01362 _mfMuxSumrgb.beginEdit(uiAspect, uiContainerSize);
01363
01364 if(FieldBits::NoField != (ScalealphaFieldMask & whichField))
01365 _mfScalealpha.beginEdit(uiAspect, uiContainerSize);
01366
01367 if(FieldBits::NoField != (BiasalphaFieldMask & whichField))
01368 _mfBiasalpha.beginEdit(uiAspect, uiContainerSize);
01369
01370 if(FieldBits::NoField != (MuxSumalphaFieldMask & whichField))
01371 _mfMuxSumalpha.beginEdit(uiAspect, uiContainerSize);
01372
01373 if(FieldBits::NoField != (VariableEFieldMask & whichField))
01374 _mfVariableE.beginEdit(uiAspect, uiContainerSize);
01375
01376 if(FieldBits::NoField != (VariableFFieldMask & whichField))
01377 _mfVariableF.beginEdit(uiAspect, uiContainerSize);
01378
01379 if(FieldBits::NoField != (VariableGFieldMask & whichField))
01380 _mfVariableG.beginEdit(uiAspect, uiContainerSize);
01381
01382 if(FieldBits::NoField != (CombinerColor0FieldMask & whichField))
01383 _mfCombinerColor0.beginEdit(uiAspect, uiContainerSize);
01384
01385 if(FieldBits::NoField != (CombinerColor1FieldMask & whichField))
01386 _mfCombinerColor1.beginEdit(uiAspect, uiContainerSize);
01387
01388 }
01389 #endif
01390
01391
01392
01393 #include <OSGSFieldTypeDef.inl>
01394 #include <OSGMFieldTypeDef.inl>
01395
01396 OSG_BEGIN_NAMESPACE
01397
01398 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
01399 DataType FieldDataTraits<RegisterCombinersChunkPtr>::_type("RegisterCombinersChunkPtr", "StateChunkPtr");
01400 #endif
01401
01402 OSG_DLLEXPORT_SFIELD_DEF1(RegisterCombinersChunkPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
01403 OSG_DLLEXPORT_MFIELD_DEF1(RegisterCombinersChunkPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
01404
01405 OSG_END_NAMESPACE
01406
01407
01408
01409
01410
01411 #ifdef OSG_SGI_CC
01412 #pragma set woff 1174
01413 #endif
01414
01415 #ifdef OSG_LINUX_ICC
01416 #pragma warning( disable : 177 )
01417 #endif
01418
01419 namespace
01420 {
01421 static Char8 cvsid_cpp [] = "@(#)$Id: FCBaseTemplate_cpp.h,v 1.45 2005/07/20 00:10:14 vossg Exp $";
01422 static Char8 cvsid_hpp [] = OSGREGISTERCOMBINERSCHUNKBASE_HEADER_CVSID;
01423 static Char8 cvsid_inl [] = OSGREGISTERCOMBINERSCHUNKBASE_INLINE_CVSID;
01424
01425 static Char8 cvsid_fields_hpp[] = OSGREGISTERCOMBINERSCHUNKFIELDS_HEADER_CVSID;
01426 }
01427