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_COMPILECLUSTERWINDOWINST
00055
00056 #include <stdlib.h>
00057 #include <stdio.h>
00058
00059 #include <OSGConfig.h>
00060
00061 #include "OSGClusterWindowBase.h"
00062 #include "OSGClusterWindow.h"
00063
00064
00065 OSG_BEGIN_NAMESPACE
00066
00067 const OSG::BitVector ClusterWindowBase::ServersFieldMask =
00068 (TypeTraits<BitVector>::One << ClusterWindowBase::ServersFieldId);
00069
00070 const OSG::BitVector ClusterWindowBase::ConnectionTypeFieldMask =
00071 (TypeTraits<BitVector>::One << ClusterWindowBase::ConnectionTypeFieldId);
00072
00073 const OSG::BitVector ClusterWindowBase::ConnectionInterfaceFieldMask =
00074 (TypeTraits<BitVector>::One << ClusterWindowBase::ConnectionInterfaceFieldId);
00075
00076 const OSG::BitVector ClusterWindowBase::ConnectionDestinationFieldMask =
00077 (TypeTraits<BitVector>::One << ClusterWindowBase::ConnectionDestinationFieldId);
00078
00079 const OSG::BitVector ClusterWindowBase::ConnectionParamsFieldMask =
00080 (TypeTraits<BitVector>::One << ClusterWindowBase::ConnectionParamsFieldId);
00081
00082 const OSG::BitVector ClusterWindowBase::ServicePortFieldMask =
00083 (TypeTraits<BitVector>::One << ClusterWindowBase::ServicePortFieldId);
00084
00085 const OSG::BitVector ClusterWindowBase::ServiceAddressFieldMask =
00086 (TypeTraits<BitVector>::One << ClusterWindowBase::ServiceAddressFieldId);
00087
00088 const OSG::BitVector ClusterWindowBase::ServiceInterfaceFieldMask =
00089 (TypeTraits<BitVector>::One << ClusterWindowBase::ServiceInterfaceFieldId);
00090
00091 const OSG::BitVector ClusterWindowBase::ClientWindowFieldMask =
00092 (TypeTraits<BitVector>::One << ClusterWindowBase::ClientWindowFieldId);
00093
00094 const OSG::BitVector ClusterWindowBase::InterleaveFieldMask =
00095 (TypeTraits<BitVector>::One << ClusterWindowBase::InterleaveFieldId);
00096
00097 const OSG::BitVector ClusterWindowBase::FrameCountFieldMask =
00098 (TypeTraits<BitVector>::One << ClusterWindowBase::FrameCountFieldId);
00099
00100 const OSG::BitVector ClusterWindowBase::ComposerFieldMask =
00101 (TypeTraits<BitVector>::One << ClusterWindowBase::ComposerFieldId);
00102
00103 const OSG::BitVector ClusterWindowBase::AutostartFieldMask =
00104 (TypeTraits<BitVector>::One << ClusterWindowBase::AutostartFieldId);
00105
00106 const OSG::BitVector ClusterWindowBase::CalibrationFieldMask =
00107 (TypeTraits<BitVector>::One << ClusterWindowBase::CalibrationFieldId);
00108
00109 const OSG::BitVector ClusterWindowBase::FilterFieldMask =
00110 (TypeTraits<BitVector>::One << ClusterWindowBase::FilterFieldId);
00111
00112 const OSG::BitVector ClusterWindowBase::DirtyFieldMask =
00113 (TypeTraits<BitVector>::One << ClusterWindowBase::DirtyFieldId);
00114
00115 const OSG::BitVector ClusterWindowBase::MTInfluenceMask =
00116 (Inherited::MTInfluenceMask) |
00117 (static_cast<BitVector>(0x0) << Inherited::NextFieldId);
00118
00119
00120
00121
00171
00172
00173 FieldDescription *ClusterWindowBase::_desc[] =
00174 {
00175 new FieldDescription(MFString::getClassType(),
00176 "servers",
00177 ServersFieldId, ServersFieldMask,
00178 false,
00179 (FieldAccessMethod) &ClusterWindowBase::getMFServers),
00180 new FieldDescription(SFString::getClassType(),
00181 "connectionType",
00182 ConnectionTypeFieldId, ConnectionTypeFieldMask,
00183 false,
00184 (FieldAccessMethod) &ClusterWindowBase::getSFConnectionType),
00185 new FieldDescription(SFString::getClassType(),
00186 "connectionInterface",
00187 ConnectionInterfaceFieldId, ConnectionInterfaceFieldMask,
00188 false,
00189 (FieldAccessMethod) &ClusterWindowBase::getSFConnectionInterface),
00190 new FieldDescription(SFString::getClassType(),
00191 "connectionDestination",
00192 ConnectionDestinationFieldId, ConnectionDestinationFieldMask,
00193 false,
00194 (FieldAccessMethod) &ClusterWindowBase::getSFConnectionDestination),
00195 new FieldDescription(SFString::getClassType(),
00196 "connectionParams",
00197 ConnectionParamsFieldId, ConnectionParamsFieldMask,
00198 false,
00199 (FieldAccessMethod) &ClusterWindowBase::getSFConnectionParams),
00200 new FieldDescription(SFUInt32::getClassType(),
00201 "servicePort",
00202 ServicePortFieldId, ServicePortFieldMask,
00203 false,
00204 (FieldAccessMethod) &ClusterWindowBase::getSFServicePort),
00205 new FieldDescription(SFString::getClassType(),
00206 "serviceAddress",
00207 ServiceAddressFieldId, ServiceAddressFieldMask,
00208 false,
00209 (FieldAccessMethod) &ClusterWindowBase::getSFServiceAddress),
00210 new FieldDescription(SFString::getClassType(),
00211 "serviceInterface",
00212 ServiceInterfaceFieldId, ServiceInterfaceFieldMask,
00213 false,
00214 (FieldAccessMethod) &ClusterWindowBase::getSFServiceInterface),
00215 new FieldDescription(SFWindowPtr::getClassType(),
00216 "clientWindow",
00217 ClientWindowFieldId, ClientWindowFieldMask,
00218 false,
00219 (FieldAccessMethod) &ClusterWindowBase::getSFClientWindow),
00220 new FieldDescription(SFUInt32::getClassType(),
00221 "interleave",
00222 InterleaveFieldId, InterleaveFieldMask,
00223 false,
00224 (FieldAccessMethod) &ClusterWindowBase::getSFInterleave),
00225 new FieldDescription(SFUInt32::getClassType(),
00226 "frameCount",
00227 FrameCountFieldId, FrameCountFieldMask,
00228 false,
00229 (FieldAccessMethod) &ClusterWindowBase::getSFFrameCount),
00230 new FieldDescription(SFImageComposerPtr::getClassType(),
00231 "composer",
00232 ComposerFieldId, ComposerFieldMask,
00233 false,
00234 (FieldAccessMethod) &ClusterWindowBase::getSFComposer),
00235 new FieldDescription(MFString::getClassType(),
00236 "autostart",
00237 AutostartFieldId, AutostartFieldMask,
00238 false,
00239 (FieldAccessMethod) &ClusterWindowBase::getMFAutostart),
00240 new FieldDescription(MFDisplayCalibrationPtr::getClassType(),
00241 "calibration",
00242 CalibrationFieldId, CalibrationFieldMask,
00243 false,
00244 (FieldAccessMethod) &ClusterWindowBase::getMFCalibration),
00245 new FieldDescription(MFDisplayFilterForegroundPtr::getClassType(),
00246 "filter",
00247 FilterFieldId, FilterFieldMask,
00248 false,
00249 (FieldAccessMethod) &ClusterWindowBase::getMFFilter),
00250 new FieldDescription(SFBool::getClassType(),
00251 "dirty",
00252 DirtyFieldId, DirtyFieldMask,
00253 false,
00254 (FieldAccessMethod) &ClusterWindowBase::getSFDirty)
00255 };
00256
00257
00258 FieldContainerType ClusterWindowBase::_type(
00259 "ClusterWindow",
00260 "Window",
00261 NULL,
00262 (PrototypeCreateF) &ClusterWindowBase::createEmpty,
00263 ClusterWindow::initMethod,
00264 _desc,
00265 sizeof(_desc));
00266
00267
00268
00269
00270
00271 FieldContainerType &ClusterWindowBase::getType(void)
00272 {
00273 return _type;
00274 }
00275
00276 const FieldContainerType &ClusterWindowBase::getType(void) const
00277 {
00278 return _type;
00279 }
00280
00281
00282 FieldContainerPtr ClusterWindowBase::shallowCopy(void) const
00283 {
00284 ClusterWindowPtr returnValue;
00285
00286 newPtr(returnValue, dynamic_cast<const ClusterWindow *>(this));
00287
00288 return returnValue;
00289 }
00290
00291 UInt32 ClusterWindowBase::getContainerSize(void) const
00292 {
00293 return sizeof(ClusterWindow);
00294 }
00295
00296
00297 #if !defined(OSG_FIXED_MFIELDSYNC)
00298 void ClusterWindowBase::executeSync( FieldContainer &other,
00299 const BitVector &whichField)
00300 {
00301 this->executeSyncImpl((ClusterWindowBase *) &other, whichField);
00302 }
00303 #else
00304 void ClusterWindowBase::executeSync( FieldContainer &other,
00305 const BitVector &whichField, const SyncInfo &sInfo )
00306 {
00307 this->executeSyncImpl((ClusterWindowBase *) &other, whichField, sInfo);
00308 }
00309 void ClusterWindowBase::execBeginEdit(const BitVector &whichField,
00310 UInt32 uiAspect,
00311 UInt32 uiContainerSize)
00312 {
00313 this->execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00314 }
00315
00316 void ClusterWindowBase::onDestroyAspect(UInt32 uiId, UInt32 uiAspect)
00317 {
00318 Inherited::onDestroyAspect(uiId, uiAspect);
00319
00320 _mfServers.terminateShare(uiAspect, this->getContainerSize());
00321 _mfAutostart.terminateShare(uiAspect, this->getContainerSize());
00322 _mfCalibration.terminateShare(uiAspect, this->getContainerSize());
00323 _mfFilter.terminateShare(uiAspect, this->getContainerSize());
00324 }
00325 #endif
00326
00327
00328
00329 #ifdef OSG_WIN32_ICL
00330 #pragma warning (disable : 383)
00331 #endif
00332
00333 ClusterWindowBase::ClusterWindowBase(void) :
00334 _mfServers (),
00335 _sfConnectionType (),
00336 _sfConnectionInterface (),
00337 _sfConnectionDestination (),
00338 _sfConnectionParams (),
00339 _sfServicePort (UInt32(8437)),
00340 _sfServiceAddress (std::string("224.245.211.234")),
00341 _sfServiceInterface (),
00342 _sfClientWindow (),
00343 _sfInterleave (UInt32(0)),
00344 _sfFrameCount (UInt32(0)),
00345 _sfComposer (),
00346 _mfAutostart (),
00347 _mfCalibration (),
00348 _mfFilter (),
00349 _sfDirty (bool(false)),
00350 Inherited()
00351 {
00352 }
00353
00354 #ifdef OSG_WIN32_ICL
00355 #pragma warning (default : 383)
00356 #endif
00357
00358 ClusterWindowBase::ClusterWindowBase(const ClusterWindowBase &source) :
00359 _mfServers (source._mfServers ),
00360 _sfConnectionType (source._sfConnectionType ),
00361 _sfConnectionInterface (source._sfConnectionInterface ),
00362 _sfConnectionDestination (source._sfConnectionDestination ),
00363 _sfConnectionParams (source._sfConnectionParams ),
00364 _sfServicePort (source._sfServicePort ),
00365 _sfServiceAddress (source._sfServiceAddress ),
00366 _sfServiceInterface (source._sfServiceInterface ),
00367 _sfClientWindow (source._sfClientWindow ),
00368 _sfInterleave (source._sfInterleave ),
00369 _sfFrameCount (source._sfFrameCount ),
00370 _sfComposer (source._sfComposer ),
00371 _mfAutostart (source._mfAutostart ),
00372 _mfCalibration (source._mfCalibration ),
00373 _mfFilter (source._mfFilter ),
00374 _sfDirty (source._sfDirty ),
00375 Inherited (source)
00376 {
00377 }
00378
00379
00380
00381 ClusterWindowBase::~ClusterWindowBase(void)
00382 {
00383 }
00384
00385
00386
00387 UInt32 ClusterWindowBase::getBinSize(const BitVector &whichField)
00388 {
00389 UInt32 returnValue = Inherited::getBinSize(whichField);
00390
00391 if(FieldBits::NoField != (ServersFieldMask & whichField))
00392 {
00393 returnValue += _mfServers.getBinSize();
00394 }
00395
00396 if(FieldBits::NoField != (ConnectionTypeFieldMask & whichField))
00397 {
00398 returnValue += _sfConnectionType.getBinSize();
00399 }
00400
00401 if(FieldBits::NoField != (ConnectionInterfaceFieldMask & whichField))
00402 {
00403 returnValue += _sfConnectionInterface.getBinSize();
00404 }
00405
00406 if(FieldBits::NoField != (ConnectionDestinationFieldMask & whichField))
00407 {
00408 returnValue += _sfConnectionDestination.getBinSize();
00409 }
00410
00411 if(FieldBits::NoField != (ConnectionParamsFieldMask & whichField))
00412 {
00413 returnValue += _sfConnectionParams.getBinSize();
00414 }
00415
00416 if(FieldBits::NoField != (ServicePortFieldMask & whichField))
00417 {
00418 returnValue += _sfServicePort.getBinSize();
00419 }
00420
00421 if(FieldBits::NoField != (ServiceAddressFieldMask & whichField))
00422 {
00423 returnValue += _sfServiceAddress.getBinSize();
00424 }
00425
00426 if(FieldBits::NoField != (ServiceInterfaceFieldMask & whichField))
00427 {
00428 returnValue += _sfServiceInterface.getBinSize();
00429 }
00430
00431 if(FieldBits::NoField != (ClientWindowFieldMask & whichField))
00432 {
00433 returnValue += _sfClientWindow.getBinSize();
00434 }
00435
00436 if(FieldBits::NoField != (InterleaveFieldMask & whichField))
00437 {
00438 returnValue += _sfInterleave.getBinSize();
00439 }
00440
00441 if(FieldBits::NoField != (FrameCountFieldMask & whichField))
00442 {
00443 returnValue += _sfFrameCount.getBinSize();
00444 }
00445
00446 if(FieldBits::NoField != (ComposerFieldMask & whichField))
00447 {
00448 returnValue += _sfComposer.getBinSize();
00449 }
00450
00451 if(FieldBits::NoField != (AutostartFieldMask & whichField))
00452 {
00453 returnValue += _mfAutostart.getBinSize();
00454 }
00455
00456 if(FieldBits::NoField != (CalibrationFieldMask & whichField))
00457 {
00458 returnValue += _mfCalibration.getBinSize();
00459 }
00460
00461 if(FieldBits::NoField != (FilterFieldMask & whichField))
00462 {
00463 returnValue += _mfFilter.getBinSize();
00464 }
00465
00466 if(FieldBits::NoField != (DirtyFieldMask & whichField))
00467 {
00468 returnValue += _sfDirty.getBinSize();
00469 }
00470
00471
00472 return returnValue;
00473 }
00474
00475 void ClusterWindowBase::copyToBin( BinaryDataHandler &pMem,
00476 const BitVector &whichField)
00477 {
00478 Inherited::copyToBin(pMem, whichField);
00479
00480 if(FieldBits::NoField != (ServersFieldMask & whichField))
00481 {
00482 _mfServers.copyToBin(pMem);
00483 }
00484
00485 if(FieldBits::NoField != (ConnectionTypeFieldMask & whichField))
00486 {
00487 _sfConnectionType.copyToBin(pMem);
00488 }
00489
00490 if(FieldBits::NoField != (ConnectionInterfaceFieldMask & whichField))
00491 {
00492 _sfConnectionInterface.copyToBin(pMem);
00493 }
00494
00495 if(FieldBits::NoField != (ConnectionDestinationFieldMask & whichField))
00496 {
00497 _sfConnectionDestination.copyToBin(pMem);
00498 }
00499
00500 if(FieldBits::NoField != (ConnectionParamsFieldMask & whichField))
00501 {
00502 _sfConnectionParams.copyToBin(pMem);
00503 }
00504
00505 if(FieldBits::NoField != (ServicePortFieldMask & whichField))
00506 {
00507 _sfServicePort.copyToBin(pMem);
00508 }
00509
00510 if(FieldBits::NoField != (ServiceAddressFieldMask & whichField))
00511 {
00512 _sfServiceAddress.copyToBin(pMem);
00513 }
00514
00515 if(FieldBits::NoField != (ServiceInterfaceFieldMask & whichField))
00516 {
00517 _sfServiceInterface.copyToBin(pMem);
00518 }
00519
00520 if(FieldBits::NoField != (ClientWindowFieldMask & whichField))
00521 {
00522 _sfClientWindow.copyToBin(pMem);
00523 }
00524
00525 if(FieldBits::NoField != (InterleaveFieldMask & whichField))
00526 {
00527 _sfInterleave.copyToBin(pMem);
00528 }
00529
00530 if(FieldBits::NoField != (FrameCountFieldMask & whichField))
00531 {
00532 _sfFrameCount.copyToBin(pMem);
00533 }
00534
00535 if(FieldBits::NoField != (ComposerFieldMask & whichField))
00536 {
00537 _sfComposer.copyToBin(pMem);
00538 }
00539
00540 if(FieldBits::NoField != (AutostartFieldMask & whichField))
00541 {
00542 _mfAutostart.copyToBin(pMem);
00543 }
00544
00545 if(FieldBits::NoField != (CalibrationFieldMask & whichField))
00546 {
00547 _mfCalibration.copyToBin(pMem);
00548 }
00549
00550 if(FieldBits::NoField != (FilterFieldMask & whichField))
00551 {
00552 _mfFilter.copyToBin(pMem);
00553 }
00554
00555 if(FieldBits::NoField != (DirtyFieldMask & whichField))
00556 {
00557 _sfDirty.copyToBin(pMem);
00558 }
00559
00560
00561 }
00562
00563 void ClusterWindowBase::copyFromBin( BinaryDataHandler &pMem,
00564 const BitVector &whichField)
00565 {
00566 Inherited::copyFromBin(pMem, whichField);
00567
00568 if(FieldBits::NoField != (ServersFieldMask & whichField))
00569 {
00570 _mfServers.copyFromBin(pMem);
00571 }
00572
00573 if(FieldBits::NoField != (ConnectionTypeFieldMask & whichField))
00574 {
00575 _sfConnectionType.copyFromBin(pMem);
00576 }
00577
00578 if(FieldBits::NoField != (ConnectionInterfaceFieldMask & whichField))
00579 {
00580 _sfConnectionInterface.copyFromBin(pMem);
00581 }
00582
00583 if(FieldBits::NoField != (ConnectionDestinationFieldMask & whichField))
00584 {
00585 _sfConnectionDestination.copyFromBin(pMem);
00586 }
00587
00588 if(FieldBits::NoField != (ConnectionParamsFieldMask & whichField))
00589 {
00590 _sfConnectionParams.copyFromBin(pMem);
00591 }
00592
00593 if(FieldBits::NoField != (ServicePortFieldMask & whichField))
00594 {
00595 _sfServicePort.copyFromBin(pMem);
00596 }
00597
00598 if(FieldBits::NoField != (ServiceAddressFieldMask & whichField))
00599 {
00600 _sfServiceAddress.copyFromBin(pMem);
00601 }
00602
00603 if(FieldBits::NoField != (ServiceInterfaceFieldMask & whichField))
00604 {
00605 _sfServiceInterface.copyFromBin(pMem);
00606 }
00607
00608 if(FieldBits::NoField != (ClientWindowFieldMask & whichField))
00609 {
00610 _sfClientWindow.copyFromBin(pMem);
00611 }
00612
00613 if(FieldBits::NoField != (InterleaveFieldMask & whichField))
00614 {
00615 _sfInterleave.copyFromBin(pMem);
00616 }
00617
00618 if(FieldBits::NoField != (FrameCountFieldMask & whichField))
00619 {
00620 _sfFrameCount.copyFromBin(pMem);
00621 }
00622
00623 if(FieldBits::NoField != (ComposerFieldMask & whichField))
00624 {
00625 _sfComposer.copyFromBin(pMem);
00626 }
00627
00628 if(FieldBits::NoField != (AutostartFieldMask & whichField))
00629 {
00630 _mfAutostart.copyFromBin(pMem);
00631 }
00632
00633 if(FieldBits::NoField != (CalibrationFieldMask & whichField))
00634 {
00635 _mfCalibration.copyFromBin(pMem);
00636 }
00637
00638 if(FieldBits::NoField != (FilterFieldMask & whichField))
00639 {
00640 _mfFilter.copyFromBin(pMem);
00641 }
00642
00643 if(FieldBits::NoField != (DirtyFieldMask & whichField))
00644 {
00645 _sfDirty.copyFromBin(pMem);
00646 }
00647
00648
00649 }
00650
00651 #if !defined(OSG_FIXED_MFIELDSYNC)
00652 void ClusterWindowBase::executeSyncImpl( ClusterWindowBase *pOther,
00653 const BitVector &whichField)
00654 {
00655
00656 Inherited::executeSyncImpl(pOther, whichField);
00657
00658 if(FieldBits::NoField != (ServersFieldMask & whichField))
00659 _mfServers.syncWith(pOther->_mfServers);
00660
00661 if(FieldBits::NoField != (ConnectionTypeFieldMask & whichField))
00662 _sfConnectionType.syncWith(pOther->_sfConnectionType);
00663
00664 if(FieldBits::NoField != (ConnectionInterfaceFieldMask & whichField))
00665 _sfConnectionInterface.syncWith(pOther->_sfConnectionInterface);
00666
00667 if(FieldBits::NoField != (ConnectionDestinationFieldMask & whichField))
00668 _sfConnectionDestination.syncWith(pOther->_sfConnectionDestination);
00669
00670 if(FieldBits::NoField != (ConnectionParamsFieldMask & whichField))
00671 _sfConnectionParams.syncWith(pOther->_sfConnectionParams);
00672
00673 if(FieldBits::NoField != (ServicePortFieldMask & whichField))
00674 _sfServicePort.syncWith(pOther->_sfServicePort);
00675
00676 if(FieldBits::NoField != (ServiceAddressFieldMask & whichField))
00677 _sfServiceAddress.syncWith(pOther->_sfServiceAddress);
00678
00679 if(FieldBits::NoField != (ServiceInterfaceFieldMask & whichField))
00680 _sfServiceInterface.syncWith(pOther->_sfServiceInterface);
00681
00682 if(FieldBits::NoField != (ClientWindowFieldMask & whichField))
00683 _sfClientWindow.syncWith(pOther->_sfClientWindow);
00684
00685 if(FieldBits::NoField != (InterleaveFieldMask & whichField))
00686 _sfInterleave.syncWith(pOther->_sfInterleave);
00687
00688 if(FieldBits::NoField != (FrameCountFieldMask & whichField))
00689 _sfFrameCount.syncWith(pOther->_sfFrameCount);
00690
00691 if(FieldBits::NoField != (ComposerFieldMask & whichField))
00692 _sfComposer.syncWith(pOther->_sfComposer);
00693
00694 if(FieldBits::NoField != (AutostartFieldMask & whichField))
00695 _mfAutostart.syncWith(pOther->_mfAutostart);
00696
00697 if(FieldBits::NoField != (CalibrationFieldMask & whichField))
00698 _mfCalibration.syncWith(pOther->_mfCalibration);
00699
00700 if(FieldBits::NoField != (FilterFieldMask & whichField))
00701 _mfFilter.syncWith(pOther->_mfFilter);
00702
00703 if(FieldBits::NoField != (DirtyFieldMask & whichField))
00704 _sfDirty.syncWith(pOther->_sfDirty);
00705
00706
00707 }
00708 #else
00709 void ClusterWindowBase::executeSyncImpl( ClusterWindowBase *pOther,
00710 const BitVector &whichField,
00711 const SyncInfo &sInfo )
00712 {
00713
00714 Inherited::executeSyncImpl(pOther, whichField, sInfo);
00715
00716 if(FieldBits::NoField != (ConnectionTypeFieldMask & whichField))
00717 _sfConnectionType.syncWith(pOther->_sfConnectionType);
00718
00719 if(FieldBits::NoField != (ConnectionInterfaceFieldMask & whichField))
00720 _sfConnectionInterface.syncWith(pOther->_sfConnectionInterface);
00721
00722 if(FieldBits::NoField != (ConnectionDestinationFieldMask & whichField))
00723 _sfConnectionDestination.syncWith(pOther->_sfConnectionDestination);
00724
00725 if(FieldBits::NoField != (ConnectionParamsFieldMask & whichField))
00726 _sfConnectionParams.syncWith(pOther->_sfConnectionParams);
00727
00728 if(FieldBits::NoField != (ServicePortFieldMask & whichField))
00729 _sfServicePort.syncWith(pOther->_sfServicePort);
00730
00731 if(FieldBits::NoField != (ServiceAddressFieldMask & whichField))
00732 _sfServiceAddress.syncWith(pOther->_sfServiceAddress);
00733
00734 if(FieldBits::NoField != (ServiceInterfaceFieldMask & whichField))
00735 _sfServiceInterface.syncWith(pOther->_sfServiceInterface);
00736
00737 if(FieldBits::NoField != (ClientWindowFieldMask & whichField))
00738 _sfClientWindow.syncWith(pOther->_sfClientWindow);
00739
00740 if(FieldBits::NoField != (InterleaveFieldMask & whichField))
00741 _sfInterleave.syncWith(pOther->_sfInterleave);
00742
00743 if(FieldBits::NoField != (FrameCountFieldMask & whichField))
00744 _sfFrameCount.syncWith(pOther->_sfFrameCount);
00745
00746 if(FieldBits::NoField != (ComposerFieldMask & whichField))
00747 _sfComposer.syncWith(pOther->_sfComposer);
00748
00749 if(FieldBits::NoField != (DirtyFieldMask & whichField))
00750 _sfDirty.syncWith(pOther->_sfDirty);
00751
00752
00753 if(FieldBits::NoField != (ServersFieldMask & whichField))
00754 _mfServers.syncWith(pOther->_mfServers, sInfo);
00755
00756 if(FieldBits::NoField != (AutostartFieldMask & whichField))
00757 _mfAutostart.syncWith(pOther->_mfAutostart, sInfo);
00758
00759 if(FieldBits::NoField != (CalibrationFieldMask & whichField))
00760 _mfCalibration.syncWith(pOther->_mfCalibration, sInfo);
00761
00762 if(FieldBits::NoField != (FilterFieldMask & whichField))
00763 _mfFilter.syncWith(pOther->_mfFilter, sInfo);
00764
00765
00766 }
00767
00768 void ClusterWindowBase::execBeginEditImpl (const BitVector &whichField,
00769 UInt32 uiAspect,
00770 UInt32 uiContainerSize)
00771 {
00772 Inherited::execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00773
00774 if(FieldBits::NoField != (ServersFieldMask & whichField))
00775 _mfServers.beginEdit(uiAspect, uiContainerSize);
00776
00777 if(FieldBits::NoField != (AutostartFieldMask & whichField))
00778 _mfAutostart.beginEdit(uiAspect, uiContainerSize);
00779
00780 if(FieldBits::NoField != (CalibrationFieldMask & whichField))
00781 _mfCalibration.beginEdit(uiAspect, uiContainerSize);
00782
00783 if(FieldBits::NoField != (FilterFieldMask & whichField))
00784 _mfFilter.beginEdit(uiAspect, uiContainerSize);
00785
00786 }
00787 #endif
00788
00789
00790
00791 OSG_END_NAMESPACE
00792
00793 #include <OSGSFieldTypeDef.inl>
00794 #include <OSGMFieldTypeDef.inl>
00795
00796 OSG_BEGIN_NAMESPACE
00797
00798 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
00799 DataType FieldDataTraits<ClusterWindowPtr>::_type("ClusterWindowPtr", "WindowPtr");
00800 #endif
00801
00802 OSG_DLLEXPORT_SFIELD_DEF1(ClusterWindowPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00803 OSG_DLLEXPORT_MFIELD_DEF1(ClusterWindowPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00804
00805
00806
00807
00808
00809 #ifdef OSG_SGI_CC
00810 #pragma set woff 1174
00811 #endif
00812
00813 #ifdef OSG_LINUX_ICC
00814 #pragma warning( disable : 177 )
00815 #endif
00816
00817 namespace
00818 {
00819 static Char8 cvsid_cpp [] = "@(#)$Id: FCBaseTemplate_cpp.h,v 1.47 2006/03/17 17:03:19 pdaehne Exp $";
00820 static Char8 cvsid_hpp [] = OSGCLUSTERWINDOWBASE_HEADER_CVSID;
00821 static Char8 cvsid_inl [] = OSGCLUSTERWINDOWBASE_INLINE_CVSID;
00822
00823 static Char8 cvsid_fields_hpp[] = OSGCLUSTERWINDOWFIELDS_HEADER_CVSID;
00824 }
00825
00826 OSG_END_NAMESPACE
00827