Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGGraphicStatisticsForegroundBase.cpp

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *               Copyright (C) 2000-2002 by the OpenSG Forum                 *
00006  *                                                                           *
00007  *                            www.opensg.org                                 *
00008  *                                                                           *
00009  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00010  *                                                                           *
00011 \*---------------------------------------------------------------------------*/
00012 /*---------------------------------------------------------------------------*\
00013  *                                License                                    *
00014  *                                                                           *
00015  * This library is free software; you can redistribute it and/or modify it   *
00016  * under the terms of the GNU Library General Public License as published    *
00017  * by the Free Software Foundation, version 2.                               *
00018  *                                                                           *
00019  * This library is distributed in the hope that it will be useful, but       *
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00022  * Library General Public License for more details.                          *
00023  *                                                                           *
00024  * You should have received a copy of the GNU Library General Public         *
00025  * License along with this library; if not, write to the Free Software       *
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00027  *                                                                           *
00028 \*---------------------------------------------------------------------------*/
00029 /*---------------------------------------------------------------------------*\
00030  *                                Changes                                    *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035  *                                                                           *
00036  *                                                                           *
00037 \*---------------------------------------------------------------------------*/
00038 
00039 /*****************************************************************************\
00040  *****************************************************************************
00041  **                                                                         **
00042  **                  This file is automatically generated.                  **
00043  **                                                                         **
00044  **          Any changes made to this file WILL be lost when it is          **
00045  **           regenerated, which can become necessary at any time.          **
00046  **                                                                         **
00047  **     Do not change this file, changes should be done in the derived      **
00048  **     class GraphicStatisticsForeground!
00049  **                                                                         **
00050  *****************************************************************************
00051 \*****************************************************************************/
00052 
00053 
00054 #define OSG_COMPILEGRAPHICSTATISTICSFOREGROUNDINST
00055 
00056 #include <stdlib.h>
00057 #include <stdio.h>
00058 
00059 #include <OSGConfig.h>
00060 
00061 #include "OSGGraphicStatisticsForegroundBase.h"
00062 #include "OSGGraphicStatisticsForeground.h"
00063 
00064 
00065 OSG_USING_NAMESPACE
00066 
00067 const OSG::BitVector  GraphicStatisticsForegroundBase::DisplayTypeFieldMask = 
00068     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::DisplayTypeFieldId);
00069 
00070 const OSG::BitVector  GraphicStatisticsForegroundBase::SizeFieldMask = 
00071     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::SizeFieldId);
00072 
00073 const OSG::BitVector  GraphicStatisticsForegroundBase::PosFieldMask = 
00074     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::PosFieldId);
00075 
00076 const OSG::BitVector  GraphicStatisticsForegroundBase::ColorMaxFieldMask = 
00077     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::ColorMaxFieldId);
00078 
00079 const OSG::BitVector  GraphicStatisticsForegroundBase::ColorMinFieldMask = 
00080     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::ColorMinFieldId);
00081 
00082 const OSG::BitVector  GraphicStatisticsForegroundBase::ColorCurrentFieldMask = 
00083     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::ColorCurrentFieldId);
00084 
00085 const OSG::BitVector  GraphicStatisticsForegroundBase::MinValueFieldMask = 
00086     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::MinValueFieldId);
00087 
00088 const OSG::BitVector  GraphicStatisticsForegroundBase::MaxValueFieldMask = 
00089     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::MaxValueFieldId);
00090 
00091 const OSG::BitVector  GraphicStatisticsForegroundBase::FlagsFieldMask = 
00092     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::FlagsFieldId);
00093 
00094 const OSG::BitVector  GraphicStatisticsForegroundBase::HistorySizeFieldMask = 
00095     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::HistorySizeFieldId);
00096 
00097 const OSG::BitVector  GraphicStatisticsForegroundBase::DescriptionFieldMask = 
00098     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::DescriptionFieldId);
00099 
00100 const OSG::BitVector  GraphicStatisticsForegroundBase::LineWidthFieldMask = 
00101     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::LineWidthFieldId);
00102 
00103 const OSG::BitVector  GraphicStatisticsForegroundBase::BackgroundColorFieldMask = 
00104     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::BackgroundColorFieldId);
00105 
00106 const OSG::BitVector  GraphicStatisticsForegroundBase::TextEnabledFieldMask = 
00107     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::TextEnabledFieldId);
00108 
00109 const OSG::BitVector  GraphicStatisticsForegroundBase::BackgroundEnabledFieldMask = 
00110     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::BackgroundEnabledFieldId);
00111 
00112 const OSG::BitVector  GraphicStatisticsForegroundBase::BorderEnabledFieldMask = 
00113     (TypeTraits<BitVector>::One << GraphicStatisticsForegroundBase::BorderEnabledFieldId);
00114 
00115 const OSG::BitVector GraphicStatisticsForegroundBase::MTInfluenceMask = 
00116     (Inherited::MTInfluenceMask) | 
00117     (static_cast<BitVector>(0x0) << Inherited::NextFieldId); 
00118 
00119 
00120 // Field descriptions
00121 
00171 
00172 
00173 FieldDescription *GraphicStatisticsForegroundBase::_desc[] = 
00174 {
00175     new FieldDescription(MFUInt32::getClassType(), 
00176                      "displayType", 
00177                      DisplayTypeFieldId, DisplayTypeFieldMask,
00178                      false,
00179                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFDisplayType),
00180     new FieldDescription(MFVec2f::getClassType(), 
00181                      "size", 
00182                      SizeFieldId, SizeFieldMask,
00183                      false,
00184                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFSize),
00185     new FieldDescription(MFVec2f::getClassType(), 
00186                      "pos", 
00187                      PosFieldId, PosFieldMask,
00188                      false,
00189                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFPos),
00190     new FieldDescription(MFColor4f::getClassType(), 
00191                      "colorMax", 
00192                      ColorMaxFieldId, ColorMaxFieldMask,
00193                      false,
00194                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFColorMax),
00195     new FieldDescription(MFColor4f::getClassType(), 
00196                      "colorMin", 
00197                      ColorMinFieldId, ColorMinFieldMask,
00198                      false,
00199                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFColorMin),
00200     new FieldDescription(MFColor4f::getClassType(), 
00201                      "colorCurrent", 
00202                      ColorCurrentFieldId, ColorCurrentFieldMask,
00203                      false,
00204                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFColorCurrent),
00205     new FieldDescription(MFReal32::getClassType(), 
00206                      "minValue", 
00207                      MinValueFieldId, MinValueFieldMask,
00208                      false,
00209                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFMinValue),
00210     new FieldDescription(MFReal32::getClassType(), 
00211                      "maxValue", 
00212                      MaxValueFieldId, MaxValueFieldMask,
00213                      false,
00214                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFMaxValue),
00215     new FieldDescription(MFUInt32::getClassType(), 
00216                      "flags", 
00217                      FlagsFieldId, FlagsFieldMask,
00218                      false,
00219                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFFlags),
00220     new FieldDescription(MFUInt32::getClassType(), 
00221                      "historySize", 
00222                      HistorySizeFieldId, HistorySizeFieldMask,
00223                      false,
00224                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFHistorySize),
00225     new FieldDescription(MFString::getClassType(), 
00226                      "description", 
00227                      DescriptionFieldId, DescriptionFieldMask,
00228                      false,
00229                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getMFDescription),
00230     new FieldDescription(SFReal32::getClassType(), 
00231                      "lineWidth", 
00232                      LineWidthFieldId, LineWidthFieldMask,
00233                      false,
00234                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getSFLineWidth),
00235     new FieldDescription(SFColor3f::getClassType(), 
00236                      "backgroundColor", 
00237                      BackgroundColorFieldId, BackgroundColorFieldMask,
00238                      false,
00239                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getSFBackgroundColor),
00240     new FieldDescription(SFBool::getClassType(), 
00241                      "textEnabled", 
00242                      TextEnabledFieldId, TextEnabledFieldMask,
00243                      false,
00244                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getSFTextEnabled),
00245     new FieldDescription(SFBool::getClassType(), 
00246                      "backgroundEnabled", 
00247                      BackgroundEnabledFieldId, BackgroundEnabledFieldMask,
00248                      false,
00249                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getSFBackgroundEnabled),
00250     new FieldDescription(SFBool::getClassType(), 
00251                      "borderEnabled", 
00252                      BorderEnabledFieldId, BorderEnabledFieldMask,
00253                      false,
00254                      (FieldAccessMethod) &GraphicStatisticsForegroundBase::getSFBorderEnabled)
00255 };
00256 
00257 
00258 FieldContainerType GraphicStatisticsForegroundBase::_type(
00259     "GraphicStatisticsForeground",
00260     "StatisticsForeground",
00261     NULL,
00262     (PrototypeCreateF) &GraphicStatisticsForegroundBase::createEmpty,
00263     GraphicStatisticsForeground::initMethod,
00264     _desc,
00265     sizeof(_desc));
00266 
00267 //OSG_FIELD_CONTAINER_DEF(GraphicStatisticsForegroundBase, GraphicStatisticsForegroundPtr)
00268 
00269 /*------------------------------ get -----------------------------------*/
00270 
00271 FieldContainerType &GraphicStatisticsForegroundBase::getType(void) 
00272 {
00273     return _type; 
00274 } 
00275 
00276 const FieldContainerType &GraphicStatisticsForegroundBase::getType(void) const 
00277 {
00278     return _type;
00279 } 
00280 
00281 
00282 FieldContainerPtr GraphicStatisticsForegroundBase::shallowCopy(void) const 
00283 { 
00284     GraphicStatisticsForegroundPtr returnValue; 
00285 
00286     newPtr(returnValue, dynamic_cast<const GraphicStatisticsForeground *>(this)); 
00287 
00288     return returnValue; 
00289 }
00290 
00291 UInt32 GraphicStatisticsForegroundBase::getContainerSize(void) const 
00292 { 
00293     return sizeof(GraphicStatisticsForeground); 
00294 }
00295 
00296 
00297 #if !defined(OSG_FIXED_MFIELDSYNC)
00298 void GraphicStatisticsForegroundBase::executeSync(      FieldContainer &other,
00299                                     const BitVector      &whichField)
00300 {
00301     this->executeSyncImpl((GraphicStatisticsForegroundBase *) &other, whichField);
00302 }
00303 #else
00304 void GraphicStatisticsForegroundBase::executeSync(      FieldContainer &other,
00305                                     const BitVector      &whichField,                                    const SyncInfo       &sInfo     )
00306 {
00307     this->executeSyncImpl((GraphicStatisticsForegroundBase *) &other, whichField, sInfo);
00308 }
00309 void GraphicStatisticsForegroundBase::execBeginEdit(const BitVector &whichField, 
00310                                             UInt32     uiAspect,
00311                                             UInt32     uiContainerSize) 
00312 {
00313     this->execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00314 }
00315 
00316 void GraphicStatisticsForegroundBase::onDestroyAspect(UInt32 uiId, UInt32 uiAspect)
00317 {
00318     Inherited::onDestroyAspect(uiId, uiAspect);
00319 
00320     _mfDisplayType.terminateShare(uiAspect, this->getContainerSize());
00321     _mfSize.terminateShare(uiAspect, this->getContainerSize());
00322     _mfPos.terminateShare(uiAspect, this->getContainerSize());
00323     _mfColorMax.terminateShare(uiAspect, this->getContainerSize());
00324     _mfColorMin.terminateShare(uiAspect, this->getContainerSize());
00325     _mfColorCurrent.terminateShare(uiAspect, this->getContainerSize());
00326     _mfMinValue.terminateShare(uiAspect, this->getContainerSize());
00327     _mfMaxValue.terminateShare(uiAspect, this->getContainerSize());
00328     _mfFlags.terminateShare(uiAspect, this->getContainerSize());
00329     _mfHistorySize.terminateShare(uiAspect, this->getContainerSize());
00330     _mfDescription.terminateShare(uiAspect, this->getContainerSize());
00331 }
00332 #endif
00333 
00334 /*------------------------- constructors ----------------------------------*/
00335 
00336 #ifdef OSG_WIN32_ICL
00337 #pragma warning (disable : 383)
00338 #endif
00339 
00340 GraphicStatisticsForegroundBase::GraphicStatisticsForegroundBase(void) :
00341     _mfDisplayType            (), 
00342     _mfSize                   (), 
00343     _mfPos                    (), 
00344     _mfColorMax               (), 
00345     _mfColorMin               (), 
00346     _mfColorCurrent           (), 
00347     _mfMinValue               (), 
00348     _mfMaxValue               (), 
00349     _mfFlags                  (), 
00350     _mfHistorySize            (), 
00351     _mfDescription            (), 
00352     _sfLineWidth              (Real32(1.0)), 
00353     _sfBackgroundColor        (Color3f(0.0,0.0,0.0)), 
00354     _sfTextEnabled            (bool(true)), 
00355     _sfBackgroundEnabled      (bool(true)), 
00356     _sfBorderEnabled          (bool(true)), 
00357     Inherited() 
00358 {
00359 }
00360 
00361 #ifdef OSG_WIN32_ICL
00362 #pragma warning (default : 383)
00363 #endif
00364 
00365 GraphicStatisticsForegroundBase::GraphicStatisticsForegroundBase(const GraphicStatisticsForegroundBase &source) :
00366     _mfDisplayType            (source._mfDisplayType            ), 
00367     _mfSize                   (source._mfSize                   ), 
00368     _mfPos                    (source._mfPos                    ), 
00369     _mfColorMax               (source._mfColorMax               ), 
00370     _mfColorMin               (source._mfColorMin               ), 
00371     _mfColorCurrent           (source._mfColorCurrent           ), 
00372     _mfMinValue               (source._mfMinValue               ), 
00373     _mfMaxValue               (source._mfMaxValue               ), 
00374     _mfFlags                  (source._mfFlags                  ), 
00375     _mfHistorySize            (source._mfHistorySize            ), 
00376     _mfDescription            (source._mfDescription            ), 
00377     _sfLineWidth              (source._sfLineWidth              ), 
00378     _sfBackgroundColor        (source._sfBackgroundColor        ), 
00379     _sfTextEnabled            (source._sfTextEnabled            ), 
00380     _sfBackgroundEnabled      (source._sfBackgroundEnabled      ), 
00381     _sfBorderEnabled          (source._sfBorderEnabled          ), 
00382     Inherited                 (source)
00383 {
00384 }
00385 
00386 /*-------------------------- destructors ----------------------------------*/
00387 
00388 GraphicStatisticsForegroundBase::~GraphicStatisticsForegroundBase(void)
00389 {
00390 }
00391 
00392 /*------------------------------ access -----------------------------------*/
00393 
00394 UInt32 GraphicStatisticsForegroundBase::getBinSize(const BitVector &whichField)
00395 {
00396     UInt32 returnValue = Inherited::getBinSize(whichField);
00397 
00398     if(FieldBits::NoField != (DisplayTypeFieldMask & whichField))
00399     {
00400         returnValue += _mfDisplayType.getBinSize();
00401     }
00402 
00403     if(FieldBits::NoField != (SizeFieldMask & whichField))
00404     {
00405         returnValue += _mfSize.getBinSize();
00406     }
00407 
00408     if(FieldBits::NoField != (PosFieldMask & whichField))
00409     {
00410         returnValue += _mfPos.getBinSize();
00411     }
00412 
00413     if(FieldBits::NoField != (ColorMaxFieldMask & whichField))
00414     {
00415         returnValue += _mfColorMax.getBinSize();
00416     }
00417 
00418     if(FieldBits::NoField != (ColorMinFieldMask & whichField))
00419     {
00420         returnValue += _mfColorMin.getBinSize();
00421     }
00422 
00423     if(FieldBits::NoField != (ColorCurrentFieldMask & whichField))
00424     {
00425         returnValue += _mfColorCurrent.getBinSize();
00426     }
00427 
00428     if(FieldBits::NoField != (MinValueFieldMask & whichField))
00429     {
00430         returnValue += _mfMinValue.getBinSize();
00431     }
00432 
00433     if(FieldBits::NoField != (MaxValueFieldMask & whichField))
00434     {
00435         returnValue += _mfMaxValue.getBinSize();
00436     }
00437 
00438     if(FieldBits::NoField != (FlagsFieldMask & whichField))
00439     {
00440         returnValue += _mfFlags.getBinSize();
00441     }
00442 
00443     if(FieldBits::NoField != (HistorySizeFieldMask & whichField))
00444     {
00445         returnValue += _mfHistorySize.getBinSize();
00446     }
00447 
00448     if(FieldBits::NoField != (DescriptionFieldMask & whichField))
00449     {
00450         returnValue += _mfDescription.getBinSize();
00451     }
00452 
00453     if(FieldBits::NoField != (LineWidthFieldMask & whichField))
00454     {
00455         returnValue += _sfLineWidth.getBinSize();
00456     }
00457 
00458     if(FieldBits::NoField != (BackgroundColorFieldMask & whichField))
00459     {
00460         returnValue += _sfBackgroundColor.getBinSize();
00461     }
00462 
00463     if(FieldBits::NoField != (TextEnabledFieldMask & whichField))
00464     {
00465         returnValue += _sfTextEnabled.getBinSize();
00466     }
00467 
00468     if(FieldBits::NoField != (BackgroundEnabledFieldMask & whichField))
00469     {
00470         returnValue += _sfBackgroundEnabled.getBinSize();
00471     }
00472 
00473     if(FieldBits::NoField != (BorderEnabledFieldMask & whichField))
00474     {
00475         returnValue += _sfBorderEnabled.getBinSize();
00476     }
00477 
00478 
00479     return returnValue;
00480 }
00481 
00482 void GraphicStatisticsForegroundBase::copyToBin(      BinaryDataHandler &pMem,
00483                                   const BitVector         &whichField)
00484 {
00485     Inherited::copyToBin(pMem, whichField);
00486 
00487     if(FieldBits::NoField != (DisplayTypeFieldMask & whichField))
00488     {
00489         _mfDisplayType.copyToBin(pMem);
00490     }
00491 
00492     if(FieldBits::NoField != (SizeFieldMask & whichField))
00493     {
00494         _mfSize.copyToBin(pMem);
00495     }
00496 
00497     if(FieldBits::NoField != (PosFieldMask & whichField))
00498     {
00499         _mfPos.copyToBin(pMem);
00500     }
00501 
00502     if(FieldBits::NoField != (ColorMaxFieldMask & whichField))
00503     {
00504         _mfColorMax.copyToBin(pMem);
00505     }
00506 
00507     if(FieldBits::NoField != (ColorMinFieldMask & whichField))
00508     {
00509         _mfColorMin.copyToBin(pMem);
00510     }
00511 
00512     if(FieldBits::NoField != (ColorCurrentFieldMask & whichField))
00513     {
00514         _mfColorCurrent.copyToBin(pMem);
00515     }
00516 
00517     if(FieldBits::NoField != (MinValueFieldMask & whichField))
00518     {
00519         _mfMinValue.copyToBin(pMem);
00520     }
00521 
00522     if(FieldBits::NoField != (MaxValueFieldMask & whichField))
00523     {
00524         _mfMaxValue.copyToBin(pMem);
00525     }
00526 
00527     if(FieldBits::NoField != (FlagsFieldMask & whichField))
00528     {
00529         _mfFlags.copyToBin(pMem);
00530     }
00531 
00532     if(FieldBits::NoField != (HistorySizeFieldMask & whichField))
00533     {
00534         _mfHistorySize.copyToBin(pMem);
00535     }
00536 
00537     if(FieldBits::NoField != (DescriptionFieldMask & whichField))
00538     {
00539         _mfDescription.copyToBin(pMem);
00540     }
00541 
00542     if(FieldBits::NoField != (LineWidthFieldMask & whichField))
00543     {
00544         _sfLineWidth.copyToBin(pMem);
00545     }
00546 
00547     if(FieldBits::NoField != (BackgroundColorFieldMask & whichField))
00548     {
00549         _sfBackgroundColor.copyToBin(pMem);
00550     }
00551 
00552     if(FieldBits::NoField != (TextEnabledFieldMask & whichField))
00553     {
00554         _sfTextEnabled.copyToBin(pMem);
00555     }
00556 
00557     if(FieldBits::NoField != (BackgroundEnabledFieldMask & whichField))
00558     {
00559         _sfBackgroundEnabled.copyToBin(pMem);
00560     }
00561 
00562     if(FieldBits::NoField != (BorderEnabledFieldMask & whichField))
00563     {
00564         _sfBorderEnabled.copyToBin(pMem);
00565     }
00566 
00567 
00568 }
00569 
00570 void GraphicStatisticsForegroundBase::copyFromBin(      BinaryDataHandler &pMem,
00571                                     const BitVector    &whichField)
00572 {
00573     Inherited::copyFromBin(pMem, whichField);
00574 
00575     if(FieldBits::NoField != (DisplayTypeFieldMask & whichField))
00576     {
00577         _mfDisplayType.copyFromBin(pMem);
00578     }
00579 
00580     if(FieldBits::NoField != (SizeFieldMask & whichField))
00581     {
00582         _mfSize.copyFromBin(pMem);
00583     }
00584 
00585     if(FieldBits::NoField != (PosFieldMask & whichField))
00586     {
00587         _mfPos.copyFromBin(pMem);
00588     }
00589 
00590     if(FieldBits::NoField != (ColorMaxFieldMask & whichField))
00591     {
00592         _mfColorMax.copyFromBin(pMem);
00593     }
00594 
00595     if(FieldBits::NoField != (ColorMinFieldMask & whichField))
00596     {
00597         _mfColorMin.copyFromBin(pMem);
00598     }
00599 
00600     if(FieldBits::NoField != (ColorCurrentFieldMask & whichField))
00601     {
00602         _mfColorCurrent.copyFromBin(pMem);
00603     }
00604 
00605     if(FieldBits::NoField != (MinValueFieldMask & whichField))
00606     {
00607         _mfMinValue.copyFromBin(pMem);
00608     }
00609 
00610     if(FieldBits::NoField != (MaxValueFieldMask & whichField))
00611     {
00612         _mfMaxValue.copyFromBin(pMem);
00613     }
00614 
00615     if(FieldBits::NoField != (FlagsFieldMask & whichField))
00616     {
00617         _mfFlags.copyFromBin(pMem);
00618     }
00619 
00620     if(FieldBits::NoField != (HistorySizeFieldMask & whichField))
00621     {
00622         _mfHistorySize.copyFromBin(pMem);
00623     }
00624 
00625     if(FieldBits::NoField != (DescriptionFieldMask & whichField))
00626     {
00627         _mfDescription.copyFromBin(pMem);
00628     }
00629 
00630     if(FieldBits::NoField != (LineWidthFieldMask & whichField))
00631     {
00632         _sfLineWidth.copyFromBin(pMem);
00633     }
00634 
00635     if(FieldBits::NoField != (BackgroundColorFieldMask & whichField))
00636     {
00637         _sfBackgroundColor.copyFromBin(pMem);
00638     }
00639 
00640     if(FieldBits::NoField != (TextEnabledFieldMask & whichField))
00641     {
00642         _sfTextEnabled.copyFromBin(pMem);
00643     }
00644 
00645     if(FieldBits::NoField != (BackgroundEnabledFieldMask & whichField))
00646     {
00647         _sfBackgroundEnabled.copyFromBin(pMem);
00648     }
00649 
00650     if(FieldBits::NoField != (BorderEnabledFieldMask & whichField))
00651     {
00652         _sfBorderEnabled.copyFromBin(pMem);
00653     }
00654 
00655 
00656 }
00657 
00658 #if !defined(OSG_FIXED_MFIELDSYNC)
00659 void GraphicStatisticsForegroundBase::executeSyncImpl(      GraphicStatisticsForegroundBase *pOther,
00660                                         const BitVector         &whichField)
00661 {
00662 
00663     Inherited::executeSyncImpl(pOther, whichField);
00664 
00665     if(FieldBits::NoField != (DisplayTypeFieldMask & whichField))
00666         _mfDisplayType.syncWith(pOther->_mfDisplayType);
00667 
00668     if(FieldBits::NoField != (SizeFieldMask & whichField))
00669         _mfSize.syncWith(pOther->_mfSize);
00670 
00671     if(FieldBits::NoField != (PosFieldMask & whichField))
00672         _mfPos.syncWith(pOther->_mfPos);
00673 
00674     if(FieldBits::NoField != (ColorMaxFieldMask & whichField))
00675         _mfColorMax.syncWith(pOther->_mfColorMax);
00676 
00677     if(FieldBits::NoField != (ColorMinFieldMask & whichField))
00678         _mfColorMin.syncWith(pOther->_mfColorMin);
00679 
00680     if(FieldBits::NoField != (ColorCurrentFieldMask & whichField))
00681         _mfColorCurrent.syncWith(pOther->_mfColorCurrent);
00682 
00683     if(FieldBits::NoField != (MinValueFieldMask & whichField))
00684         _mfMinValue.syncWith(pOther->_mfMinValue);
00685 
00686     if(FieldBits::NoField != (MaxValueFieldMask & whichField))
00687         _mfMaxValue.syncWith(pOther->_mfMaxValue);
00688 
00689     if(FieldBits::NoField != (FlagsFieldMask & whichField))
00690         _mfFlags.syncWith(pOther->_mfFlags);
00691 
00692     if(FieldBits::NoField != (HistorySizeFieldMask & whichField))
00693         _mfHistorySize.syncWith(pOther->_mfHistorySize);
00694 
00695     if(FieldBits::NoField != (DescriptionFieldMask & whichField))
00696         _mfDescription.syncWith(pOther->_mfDescription);
00697 
00698     if(FieldBits::NoField != (LineWidthFieldMask & whichField))
00699         _sfLineWidth.syncWith(pOther->_sfLineWidth);
00700 
00701     if(FieldBits::NoField != (BackgroundColorFieldMask & whichField))
00702         _sfBackgroundColor.syncWith(pOther->_sfBackgroundColor);
00703 
00704     if(FieldBits::NoField != (TextEnabledFieldMask & whichField))
00705         _sfTextEnabled.syncWith(pOther->_sfTextEnabled);
00706 
00707     if(FieldBits::NoField != (BackgroundEnabledFieldMask & whichField))
00708         _sfBackgroundEnabled.syncWith(pOther->_sfBackgroundEnabled);
00709 
00710     if(FieldBits::NoField != (BorderEnabledFieldMask & whichField))
00711         _sfBorderEnabled.syncWith(pOther->_sfBorderEnabled);
00712 
00713 
00714 }
00715 #else
00716 void GraphicStatisticsForegroundBase::executeSyncImpl(      GraphicStatisticsForegroundBase *pOther,
00717                                         const BitVector         &whichField,
00718                                         const SyncInfo          &sInfo      )
00719 {
00720 
00721     Inherited::executeSyncImpl(pOther, whichField, sInfo);
00722 
00723     if(FieldBits::NoField != (LineWidthFieldMask & whichField))
00724         _sfLineWidth.syncWith(pOther->_sfLineWidth);
00725 
00726     if(FieldBits::NoField != (BackgroundColorFieldMask & whichField))
00727         _sfBackgroundColor.syncWith(pOther->_sfBackgroundColor);
00728 
00729     if(FieldBits::NoField != (TextEnabledFieldMask & whichField))
00730         _sfTextEnabled.syncWith(pOther->_sfTextEnabled);
00731 
00732     if(FieldBits::NoField != (BackgroundEnabledFieldMask & whichField))
00733         _sfBackgroundEnabled.syncWith(pOther->_sfBackgroundEnabled);
00734 
00735     if(FieldBits::NoField != (BorderEnabledFieldMask & whichField))
00736         _sfBorderEnabled.syncWith(pOther->_sfBorderEnabled);
00737 
00738 
00739     if(FieldBits::NoField != (DisplayTypeFieldMask & whichField))
00740         _mfDisplayType.syncWith(pOther->_mfDisplayType, sInfo);
00741 
00742     if(FieldBits::NoField != (SizeFieldMask & whichField))
00743         _mfSize.syncWith(pOther->_mfSize, sInfo);
00744 
00745     if(FieldBits::NoField != (PosFieldMask & whichField))
00746         _mfPos.syncWith(pOther->_mfPos, sInfo);
00747 
00748     if(FieldBits::NoField != (ColorMaxFieldMask & whichField))
00749         _mfColorMax.syncWith(pOther->_mfColorMax, sInfo);
00750 
00751     if(FieldBits::NoField != (ColorMinFieldMask & whichField))
00752         _mfColorMin.syncWith(pOther->_mfColorMin, sInfo);
00753 
00754     if(FieldBits::NoField != (ColorCurrentFieldMask & whichField))
00755         _mfColorCurrent.syncWith(pOther->_mfColorCurrent, sInfo);
00756 
00757     if(FieldBits::NoField != (MinValueFieldMask & whichField))
00758         _mfMinValue.syncWith(pOther->_mfMinValue, sInfo);
00759 
00760     if(FieldBits::NoField != (MaxValueFieldMask & whichField))
00761         _mfMaxValue.syncWith(pOther->_mfMaxValue, sInfo);
00762 
00763     if(FieldBits::NoField != (FlagsFieldMask & whichField))
00764         _mfFlags.syncWith(pOther->_mfFlags, sInfo);
00765 
00766     if(FieldBits::NoField != (HistorySizeFieldMask & whichField))
00767         _mfHistorySize.syncWith(pOther->_mfHistorySize, sInfo);
00768 
00769     if(FieldBits::NoField != (DescriptionFieldMask & whichField))
00770         _mfDescription.syncWith(pOther->_mfDescription, sInfo);
00771 
00772 
00773 }
00774 
00775 void GraphicStatisticsForegroundBase::execBeginEditImpl (const BitVector &whichField, 
00776                                                  UInt32     uiAspect,
00777                                                  UInt32     uiContainerSize)
00778 {
00779     Inherited::execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00780 
00781     if(FieldBits::NoField != (DisplayTypeFieldMask & whichField))
00782         _mfDisplayType.beginEdit(uiAspect, uiContainerSize);
00783 
00784     if(FieldBits::NoField != (SizeFieldMask & whichField))
00785         _mfSize.beginEdit(uiAspect, uiContainerSize);
00786 
00787     if(FieldBits::NoField != (PosFieldMask & whichField))
00788         _mfPos.beginEdit(uiAspect, uiContainerSize);
00789 
00790     if(FieldBits::NoField != (ColorMaxFieldMask & whichField))
00791         _mfColorMax.beginEdit(uiAspect, uiContainerSize);
00792 
00793     if(FieldBits::NoField != (ColorMinFieldMask & whichField))
00794         _mfColorMin.beginEdit(uiAspect, uiContainerSize);
00795 
00796     if(FieldBits::NoField != (ColorCurrentFieldMask & whichField))
00797         _mfColorCurrent.beginEdit(uiAspect, uiContainerSize);
00798 
00799     if(FieldBits::NoField != (MinValueFieldMask & whichField))
00800         _mfMinValue.beginEdit(uiAspect, uiContainerSize);
00801 
00802     if(FieldBits::NoField != (MaxValueFieldMask & whichField))
00803         _mfMaxValue.beginEdit(uiAspect, uiContainerSize);
00804 
00805     if(FieldBits::NoField != (FlagsFieldMask & whichField))
00806         _mfFlags.beginEdit(uiAspect, uiContainerSize);
00807 
00808     if(FieldBits::NoField != (HistorySizeFieldMask & whichField))
00809         _mfHistorySize.beginEdit(uiAspect, uiContainerSize);
00810 
00811     if(FieldBits::NoField != (DescriptionFieldMask & whichField))
00812         _mfDescription.beginEdit(uiAspect, uiContainerSize);
00813 
00814 }
00815 #endif
00816 
00817 
00818 
00819 #include <OSGSFieldTypeDef.inl>
00820 #include <OSGMFieldTypeDef.inl>
00821 
00822 OSG_BEGIN_NAMESPACE
00823 
00824 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
00825 DataType FieldDataTraits<GraphicStatisticsForegroundPtr>::_type("GraphicStatisticsForegroundPtr", "StatisticsForegroundPtr");
00826 #endif
00827 
00828 OSG_DLLEXPORT_SFIELD_DEF1(GraphicStatisticsForegroundPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00829 OSG_DLLEXPORT_MFIELD_DEF1(GraphicStatisticsForegroundPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00830 
00831 OSG_END_NAMESPACE
00832 
00833 
00834 /*------------------------------------------------------------------------*/
00835 /*                              cvs id's                                  */
00836 
00837 #ifdef OSG_SGI_CC
00838 #pragma set woff 1174
00839 #endif
00840 
00841 #ifdef OSG_LINUX_ICC
00842 #pragma warning( disable : 177 )
00843 #endif
00844 
00845 namespace
00846 {
00847     static Char8 cvsid_cpp       [] = "@(#)$Id: FCBaseTemplate_cpp.h,v 1.42 2004/08/03 05:53:03 dirk Exp $";
00848     static Char8 cvsid_hpp       [] = OSGGRAPHICSTATISTICSFOREGROUNDBASE_HEADER_CVSID;
00849     static Char8 cvsid_inl       [] = OSGGRAPHICSTATISTICSFOREGROUNDBASE_INLINE_CVSID;
00850 
00851     static Char8 cvsid_fields_hpp[] = OSGGRAPHICSTATISTICSFOREGROUNDFIELDS_HEADER_CVSID;
00852 }
00853 

Generated on Thu Aug 25 04:05:52 2005 for OpenSG by  doxygen 1.4.3