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

osg::ColorBufferViewport Class Reference
[Viewports]

Viewport class for color channel selection. See Viewport for a description. More...

#include <OSGColorBufferViewport.h>

Inheritance diagram for osg::ColorBufferViewport:

osg::ColorBufferViewportBase osg::Viewport osg::ViewportBase osg::AttachmentContainer osg::FieldContainer List of all members.

Public Types

typedef ColorBufferViewportPtr Ptr
enum  {
  RedFieldId = Inherited::NextFieldId, BlueFieldId = RedFieldId + 1, GreenFieldId = BlueFieldId + 1, AlphaFieldId = GreenFieldId + 1,
  NextFieldId = AlphaFieldId + 1
}

Public Member Functions

Sync
*virtual void changed (BitVector whichField, UInt32 origin)
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
your_category
*virtual void draw (DrawAction *action)
virtual void render (RenderActionBase *action)
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*SFBoolgetSFRed (void)
 Get the ColorBufferViewport::_sfRed field.
SFBoolgetSFBlue (void)
 Get the ColorBufferViewport::_sfBlue field.
SFBoolgetSFGreen (void)
 Get the ColorBufferViewport::_sfGreen field.
SFBoolgetSFAlpha (void)
 Get the ColorBufferViewport::_sfAlpha field.
bool & getRed (void)
 Get the value of the ColorBufferViewport::_sfRed field.
const bool & getRed (void) const
 Get the value of the ColorBufferViewport::_sfRed field.
bool & getBlue (void)
 Get the value of the ColorBufferViewport::_sfBlue field.
const bool & getBlue (void) const
 Get the value of the ColorBufferViewport::_sfBlue field.
bool & getGreen (void)
 Get the value of the ColorBufferViewport::_sfGreen field.
const bool & getGreen (void) const
 Get the value of the ColorBufferViewport::_sfGreen field.
bool & getAlpha (void)
 Get the value of the ColorBufferViewport::_sfAlpha field.
const bool & getAlpha (void) const
 Get the value of the ColorBufferViewport::_sfAlpha field.
Field Set
*void setRed (const bool &value)
 Set the value of the ColorBufferViewport::_sfRed field.
void setBlue (const bool &value)
 Set the value of the ColorBufferViewport::_sfBlue field.
void setGreen (const bool &value)
 Set the value of the ColorBufferViewport::_sfGreen field.
void setAlpha (const bool &value)
 Set the value of the ColorBufferViewport::_sfAlpha field.
Binary Access
*virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
Copy
*virtual FieldContainerPtr shallowCopy (void) const

Static Public Member Functions

Class Get
*static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class
Construction
*static ColorBufferViewportPtr create (void)
 create a new instance of the class
static ColorBufferViewportPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype

Static Public Attributes

static const osg::BitVector RedFieldMask
static const osg::BitVector BlueFieldMask
static const osg::BitVector GreenFieldMask
static const osg::BitVector AlphaFieldMask
static const osg::BitVector MTInfluenceMask
static const osg::BitVector LeftFieldMask
static const osg::BitVector RightFieldMask
static const osg::BitVector BottomFieldMask
static const osg::BitVector TopFieldMask
static const osg::BitVector ParentFieldMask
static const osg::BitVector CameraFieldMask
static const osg::BitVector RootFieldMask
static const osg::BitVector BackgroundFieldMask
static const osg::BitVector ForegroundsFieldMask
static const osg::BitVector TravMaskFieldMask
static const osg::BitVector DrawTimeFieldMask
static const BitVector AttachmentsFieldMask
static const BitVector NextFieldMask

Protected Member Functions

Constructors
ColorBufferViewport (void)
 ColorBufferViewport (const ColorBufferViewport &source)
Destructors
*virtual ~ColorBufferViewport (void)
Sync
*void executeSyncImpl (ColorBufferViewportBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)

Protected Attributes

Fields
*SFBool _sfRed
SFBool _sfBlue
SFBool _sfGreen
SFBool _sfAlpha

Private Types

typedef ColorBufferViewportBase Inherited

Private Member Functions

void operator= (const ColorBufferViewport &source)

Static Private Member Functions

static void initMethod (void)

Friends

class FieldContainer
class ColorBufferViewportBase

Detailed Description

Viewport to only render to specific color channels, see Viewport for a description.

The color channels used are defined by the _sfRed, _sfGreen, _sfBlue and _sfAlpha Fields.

Definition at line 57 of file OSGColorBufferViewport.h.


Member Typedef Documentation

typedef ColorBufferViewportBase osg::ColorBufferViewport::Inherited [private]
 

Reimplemented from osg::ColorBufferViewportBase.

Definition at line 61 of file OSGColorBufferViewport.h.

typedef ColorBufferViewportPtr osg::ColorBufferViewportBase::Ptr [inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 93 of file OSGColorBufferViewportBase.h.


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
RedFieldId 
BlueFieldId 
GreenFieldId 
AlphaFieldId 
NextFieldId 

Reimplemented from osg::ViewportBase.

Definition at line 95 of file OSGColorBufferViewportBase.h.

00096     {
00097         RedFieldId   = Inherited::NextFieldId,
00098         BlueFieldId  = RedFieldId   + 1,
00099         GreenFieldId = BlueFieldId  + 1,
00100         AlphaFieldId = GreenFieldId + 1,
00101         NextFieldId  = AlphaFieldId + 1
00102     };


Constructor & Destructor Documentation

ColorBufferViewport::ColorBufferViewport void   )  [protected]
 

Definition at line 66 of file OSGColorBufferViewport.cpp.

00066                                              :
00067     Inherited()
00068 {
00069 }

ColorBufferViewport::ColorBufferViewport const ColorBufferViewport source  )  [protected]
 

Definition at line 71 of file OSGColorBufferViewport.cpp.

00071                                                                           :
00072     Inherited(source)
00073 {
00074 }

ColorBufferViewport::~ColorBufferViewport void   )  [protected, virtual]
 

Definition at line 76 of file OSGColorBufferViewport.cpp.

00077 {
00078 }


Member Function Documentation

void ColorBufferViewport::changed BitVector  whichField,
UInt32  origin
[virtual]
 

Reimplemented from osg::Viewport.

Definition at line 86 of file OSGColorBufferViewport.cpp.

References osg::Viewport::changed().

00087 {
00088     Inherited::changed(whichField, origin);
00089 }

void ColorBufferViewport::dump UInt32  uiIndent = 0,
const BitVector  bvFlags = 0
const [virtual]
 

Reimplemented from osg::Viewport.

Definition at line 91 of file OSGColorBufferViewport.cpp.

References SLOG.

00093 {
00094     SLOG << "Dump ColorBufferViewport NI" << std::endl;
00095 }

void ColorBufferViewport::draw DrawAction action  )  [virtual]
 

Draw the viewport. Restrict the OpenGL rendering to the given part of the window, clear it, draw it using the given DrawAction and add the Foregrounds.

The _sfCamera, _sfBackground and _sfRoot Fields need to be valid, otherwise drawing will fail.

Dev:

Activates scissoring only if the viewport doesn't fill the wholw window, as it significantly slows down some OpenGL implementations.

Reimplemented from osg::Viewport.

Definition at line 98 of file OSGColorBufferViewport.cpp.

References osg::Viewport::draw(), osg::ColorBufferViewportBase::getAlpha(), osg::ColorBufferViewportBase::getBlue(), osg::ColorBufferViewportBase::getGreen(), and osg::ColorBufferViewportBase::getRed().

00099 {
00100     glColorMask(getRed(), getGreen(), getBlue(), getAlpha());
00101     Inherited::draw(action);
00102     glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
00103 }

void ColorBufferViewport::render RenderActionBase action  )  [virtual]
 

Draw the viewport. Restrict the OpenGL rendering to the given part of the window, clear it, draw it using the given DrawAction and add the Foregrounds.

The _sfCamera, _sfBackground and _sfRoot Fields need to be valid, otherwise drawing will fail.

Dev:

Activates scissoring only if the viewport doesn't fill the wholw window, as it significantly slows down some OpenGL implementations.

Reimplemented from osg::Viewport.

Definition at line 106 of file OSGColorBufferViewport.cpp.

References osg::ColorBufferViewportBase::getAlpha(), osg::ColorBufferViewportBase::getBlue(), osg::ColorBufferViewportBase::getGreen(), osg::ColorBufferViewportBase::getRed(), and osg::Viewport::render().

00107 {
00108     glColorMask(getRed(), getGreen(), getBlue(), getAlpha());
00109     Inherited::render(action);
00110     glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
00111 }

void ColorBufferViewport::initMethod void   )  [static, private]
 

Reimplemented from osg::Viewport.

Definition at line 82 of file OSGColorBufferViewport.cpp.

00083 {
00084 }

void osg::ColorBufferViewport::operator= const ColorBufferViewport source  )  [private]
 

osg::FieldContainerType & osg::ColorBufferViewportBase::getClassType void   )  [inline, static, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 58 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_type.

Referenced by osg::ColorBufferViewportBase::create().

00059 {
00060     return _type; 
00061 } 

osg::UInt32 osg::ColorBufferViewportBase::getClassTypeId void   )  [inline, static, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 65 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_type, and osg::TypeBase::getId().

00066 {
00067     return _type.getId(); 
00068 } 

FieldContainerType & ColorBufferViewportBase::getType void   )  [virtual, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 143 of file OSGColorBufferViewportBase.cpp.

References osg::ColorBufferViewportBase::_type.

00144 {
00145     return _type; 
00146 } 

const FieldContainerType & ColorBufferViewportBase::getType void   )  const [virtual, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 148 of file OSGColorBufferViewportBase.cpp.

References osg::ColorBufferViewportBase::_type.

00149 {
00150     return _type;
00151 } 

UInt32 ColorBufferViewportBase::getContainerSize void   )  const [virtual, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 163 of file OSGColorBufferViewportBase.cpp.

00164 { 
00165     return sizeof(ColorBufferViewport); 
00166 }

SFBool * osg::ColorBufferViewportBase::getSFRed void   )  [inline, inherited]
 

Definition at line 101 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfRed.

00102 {
00103     return &_sfRed;
00104 }

SFBool * osg::ColorBufferViewportBase::getSFBlue void   )  [inline, inherited]
 

Definition at line 108 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfBlue.

00109 {
00110     return &_sfBlue;
00111 }

SFBool * osg::ColorBufferViewportBase::getSFGreen void   )  [inline, inherited]
 

Definition at line 115 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfGreen.

00116 {
00117     return &_sfGreen;
00118 }

SFBool * osg::ColorBufferViewportBase::getSFAlpha void   )  [inline, inherited]
 

Definition at line 122 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfAlpha.

00123 {
00124     return &_sfAlpha;
00125 }

bool & osg::ColorBufferViewportBase::getRed void   )  [inline, inherited]
 

Definition at line 130 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfRed, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by draw(), and render().

00131 {
00132     return _sfRed.getValue();
00133 }

const bool & osg::ColorBufferViewportBase::getRed void   )  const [inline, inherited]
 

Definition at line 137 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfRed, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00138 {
00139     return _sfRed.getValue();
00140 }

bool & osg::ColorBufferViewportBase::getBlue void   )  [inline, inherited]
 

Definition at line 151 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfBlue, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by draw(), and render().

00152 {
00153     return _sfBlue.getValue();
00154 }

const bool & osg::ColorBufferViewportBase::getBlue void   )  const [inline, inherited]
 

Definition at line 158 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfBlue, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00159 {
00160     return _sfBlue.getValue();
00161 }

bool & osg::ColorBufferViewportBase::getGreen void   )  [inline, inherited]
 

Definition at line 172 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfGreen, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by draw(), and render().

00173 {
00174     return _sfGreen.getValue();
00175 }

const bool & osg::ColorBufferViewportBase::getGreen void   )  const [inline, inherited]
 

Definition at line 179 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfGreen, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00180 {
00181     return _sfGreen.getValue();
00182 }

bool & osg::ColorBufferViewportBase::getAlpha void   )  [inline, inherited]
 

Definition at line 193 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfAlpha, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by draw(), and render().

00194 {
00195     return _sfAlpha.getValue();
00196 }

const bool & osg::ColorBufferViewportBase::getAlpha void   )  const [inline, inherited]
 

Definition at line 200 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfAlpha, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00201 {
00202     return _sfAlpha.getValue();
00203 }

void osg::ColorBufferViewportBase::setRed const bool &  value  )  [inline, inherited]
 

Definition at line 144 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfRed, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00145 {
00146     _sfRed.setValue(value);
00147 }

void osg::ColorBufferViewportBase::setBlue const bool &  value  )  [inline, inherited]
 

Definition at line 165 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfBlue, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00166 {
00167     _sfBlue.setValue(value);
00168 }

void osg::ColorBufferViewportBase::setGreen const bool &  value  )  [inline, inherited]
 

Definition at line 186 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfGreen, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00187 {
00188     _sfGreen.setValue(value);
00189 }

void osg::ColorBufferViewportBase::setAlpha const bool &  value  )  [inline, inherited]
 

Definition at line 207 of file OSGColorBufferViewportBase.inl.

References osg::ColorBufferViewportBase::_sfAlpha, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00208 {
00209     _sfAlpha.setValue(value);
00210 }

UInt32 ColorBufferViewportBase::getBinSize const BitVector whichField  )  [virtual, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 231 of file OSGColorBufferViewportBase.cpp.

References osg::ColorBufferViewportBase::_sfAlpha, osg::ColorBufferViewportBase::_sfBlue, osg::ColorBufferViewportBase::_sfGreen, osg::ColorBufferViewportBase::_sfRed, osg::ColorBufferViewportBase::AlphaFieldMask, osg::ColorBufferViewportBase::BlueFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::ViewportBase::getBinSize(), osg::ColorBufferViewportBase::GreenFieldMask, osg::FieldBits::NoField, and osg::ColorBufferViewportBase::RedFieldMask.

00232 {
00233     UInt32 returnValue = Inherited::getBinSize(whichField);
00234 
00235     if(FieldBits::NoField != (RedFieldMask & whichField))
00236     {
00237         returnValue += _sfRed.getBinSize();
00238     }
00239 
00240     if(FieldBits::NoField != (BlueFieldMask & whichField))
00241     {
00242         returnValue += _sfBlue.getBinSize();
00243     }
00244 
00245     if(FieldBits::NoField != (GreenFieldMask & whichField))
00246     {
00247         returnValue += _sfGreen.getBinSize();
00248     }
00249 
00250     if(FieldBits::NoField != (AlphaFieldMask & whichField))
00251     {
00252         returnValue += _sfAlpha.getBinSize();
00253     }
00254 
00255 
00256     return returnValue;
00257 }

void ColorBufferViewportBase::copyToBin BinaryDataHandler pMem,
const BitVector whichField
[virtual, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 259 of file OSGColorBufferViewportBase.cpp.

References osg::ColorBufferViewportBase::_sfAlpha, osg::ColorBufferViewportBase::_sfBlue, osg::ColorBufferViewportBase::_sfGreen, osg::ColorBufferViewportBase::_sfRed, osg::ColorBufferViewportBase::AlphaFieldMask, osg::ColorBufferViewportBase::BlueFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::ViewportBase::copyToBin(), osg::ColorBufferViewportBase::GreenFieldMask, osg::FieldBits::NoField, and osg::ColorBufferViewportBase::RedFieldMask.

00261 {
00262     Inherited::copyToBin(pMem, whichField);
00263 
00264     if(FieldBits::NoField != (RedFieldMask & whichField))
00265     {
00266         _sfRed.copyToBin(pMem);
00267     }
00268 
00269     if(FieldBits::NoField != (BlueFieldMask & whichField))
00270     {
00271         _sfBlue.copyToBin(pMem);
00272     }
00273 
00274     if(FieldBits::NoField != (GreenFieldMask & whichField))
00275     {
00276         _sfGreen.copyToBin(pMem);
00277     }
00278 
00279     if(FieldBits::NoField != (AlphaFieldMask & whichField))
00280     {
00281         _sfAlpha.copyToBin(pMem);
00282     }
00283 
00284 
00285 }

void ColorBufferViewportBase::copyFromBin BinaryDataHandler pMem,
const BitVector whichField
[virtual, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 287 of file OSGColorBufferViewportBase.cpp.

References osg::ColorBufferViewportBase::_sfAlpha, osg::ColorBufferViewportBase::_sfBlue, osg::ColorBufferViewportBase::_sfGreen, osg::ColorBufferViewportBase::_sfRed, osg::ColorBufferViewportBase::AlphaFieldMask, osg::ColorBufferViewportBase::BlueFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::ViewportBase::copyFromBin(), osg::ColorBufferViewportBase::GreenFieldMask, osg::FieldBits::NoField, and osg::ColorBufferViewportBase::RedFieldMask.

00289 {
00290     Inherited::copyFromBin(pMem, whichField);
00291 
00292     if(FieldBits::NoField != (RedFieldMask & whichField))
00293     {
00294         _sfRed.copyFromBin(pMem);
00295     }
00296 
00297     if(FieldBits::NoField != (BlueFieldMask & whichField))
00298     {
00299         _sfBlue.copyFromBin(pMem);
00300     }
00301 
00302     if(FieldBits::NoField != (GreenFieldMask & whichField))
00303     {
00304         _sfGreen.copyFromBin(pMem);
00305     }
00306 
00307     if(FieldBits::NoField != (AlphaFieldMask & whichField))
00308     {
00309         _sfAlpha.copyFromBin(pMem);
00310     }
00311 
00312 
00313 }

ColorBufferViewportPtr osg::ColorBufferViewportBase::create void   )  [inline, static, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 72 of file OSGColorBufferViewportBase.inl.

References osg::AttachmentContainerPtr::dcast(), osg::ColorBufferViewportBase::getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and osg::ColorBufferViewportBase::shallowCopy().

00073 {
00074     ColorBufferViewportPtr fc; 
00075 
00076     if(getClassType().getPrototype() != OSG::NullFC) 
00077     {
00078         fc = ColorBufferViewportPtr::dcast(
00079             getClassType().getPrototype()-> shallowCopy()); 
00080     }
00081     
00082     return fc; 
00083 }

ColorBufferViewportPtr osg::ColorBufferViewportBase::createEmpty void   )  [inline, static, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 87 of file OSGColorBufferViewportBase.inl.

References osg::FieldContainer::newPtr().

00088 { 
00089     ColorBufferViewportPtr returnValue; 
00090     
00091     newPtr(returnValue); 
00092 
00093     return returnValue; 
00094 }

FieldContainerPtr ColorBufferViewportBase::shallowCopy void   )  const [virtual, inherited]
 

Reimplemented from osg::ViewportBase.

Definition at line 154 of file OSGColorBufferViewportBase.cpp.

References osg::FieldContainer::newPtr().

Referenced by osg::ColorBufferViewportBase::create().

00155 { 
00156     ColorBufferViewportPtr returnValue; 
00157 
00158     newPtr(returnValue, dynamic_cast<const ColorBufferViewport *>(this)); 
00159 
00160     return returnValue; 
00161 }

void ColorBufferViewportBase::executeSyncImpl ColorBufferViewportBase pOther,
const BitVector whichField
[protected, inherited]
 

Definition at line 316 of file OSGColorBufferViewportBase.cpp.

References osg::ColorBufferViewportBase::_sfAlpha, osg::ColorBufferViewportBase::_sfBlue, osg::ColorBufferViewportBase::_sfGreen, osg::ColorBufferViewportBase::_sfRed, osg::ColorBufferViewportBase::AlphaFieldMask, osg::ColorBufferViewportBase::BlueFieldMask, osg::ViewportBase::executeSyncImpl(), osg::ColorBufferViewportBase::GreenFieldMask, osg::FieldBits::NoField, osg::ColorBufferViewportBase::RedFieldMask, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith().

Referenced by osg::ColorBufferViewportBase::executeSync().

00318 {
00319 
00320     Inherited::executeSyncImpl(pOther, whichField);
00321 
00322     if(FieldBits::NoField != (RedFieldMask & whichField))
00323         _sfRed.syncWith(pOther->_sfRed);
00324 
00325     if(FieldBits::NoField != (BlueFieldMask & whichField))
00326         _sfBlue.syncWith(pOther->_sfBlue);
00327 
00328     if(FieldBits::NoField != (GreenFieldMask & whichField))
00329         _sfGreen.syncWith(pOther->_sfGreen);
00330 
00331     if(FieldBits::NoField != (AlphaFieldMask & whichField))
00332         _sfAlpha.syncWith(pOther->_sfAlpha);
00333 
00334 
00335 }

void ViewportBase::executeSyncImpl ViewportBase pOther,
const BitVector whichField
[protected, inherited]
 

Definition at line 509 of file OSGViewportBase.cpp.

References osg::ViewportBase::_mfForegrounds, osg::ViewportBase::_sfBackground, osg::ViewportBase::_sfBottom, osg::ViewportBase::_sfCamera, osg::ViewportBase::_sfDrawTime, osg::ViewportBase::_sfLeft, osg::ViewportBase::_sfParent, osg::ViewportBase::_sfRight, osg::ViewportBase::_sfRoot, osg::ViewportBase::_sfTop, osg::ViewportBase::_sfTravMask, osg::ViewportBase::BackgroundFieldMask, osg::ViewportBase::BottomFieldMask, osg::ViewportBase::CameraFieldMask, osg::ViewportBase::DrawTimeFieldMask, osg::AttachmentContainer::executeSyncImpl(), osg::ViewportBase::ForegroundsFieldMask, osg::ViewportBase::LeftFieldMask, osg::FieldBits::NoField, osg::ViewportBase::ParentFieldMask, osg::ViewportBase::RightFieldMask, osg::ViewportBase::RootFieldMask, osg::MField< FieldTypeT, fieldNameSpace >::syncWith(), osg::SField< FieldTypeT, fieldNameSpace >::syncWith(), osg::ViewportBase::TopFieldMask, and osg::ViewportBase::TravMaskFieldMask.

Referenced by osg::ViewportBase::executeSync(), osg::StereoBufferViewportBase::executeSyncImpl(), osg::PassiveViewportBase::executeSyncImpl(), and osg::ColorBufferViewportBase::executeSyncImpl().

00511 {
00512 
00513     Inherited::executeSyncImpl(pOther, whichField);
00514 
00515     if(FieldBits::NoField != (LeftFieldMask & whichField))
00516         _sfLeft.syncWith(pOther->_sfLeft);
00517 
00518     if(FieldBits::NoField != (RightFieldMask & whichField))
00519         _sfRight.syncWith