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

osg::CameraDecorator Class Reference
[Camera Decorators]

Camera Decorator base class, see Camera Decorators for a description. More...

#include <OSGCameraDecorator.h>

Inheritance diagram for osg::CameraDecorator:

osg::CameraDecoratorBase osg::Camera osg::CameraBase osg::AttachmentContainer osg::FieldContainer osg::MatrixCameraDecoratorBase osg::StereoCameraDecoratorBase osg::TileCameraDecoratorBase osg::MatrixCameraDecorator osg::StereoCameraDecorator osg::TileCameraDecorator osg::ProjectionCameraDecoratorBase osg::ShearedStereoCameraDecoratorBase osg::ProjectionCameraDecorator osg::ShearedStereoCameraDecorator List of all members.

your_category

*virtual void draw (DrawAction *action, const Viewport &port)
virtual void getProjection (Matrix &result, UInt32 width, UInt32 height)
virtual void getProjectionTranslation (Matrix &result, UInt32 width, UInt32 height)
virtual void getViewing (Matrix &result, UInt32 width, UInt32 height)

Sync

*void executeSyncImpl (CameraDecoratorBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)

Public Types

typedef CameraDecoratorPtr Ptr
enum  { DecorateeFieldId = Inherited::NextFieldId, NextFieldId = DecorateeFieldId + 1 }

Public Member Functions

Sync
*virtual void changed (BitVector whichField, UInt32 origin)
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Binary Access
*virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)

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

Static Public Attributes

static const osg::BitVector DecorateeFieldMask
static const osg::BitVector MTInfluenceMask
static const osg::BitVector BeaconFieldMask
static const osg::BitVector NearFieldMask
static const osg::BitVector FarFieldMask
static const BitVector AttachmentsFieldMask
static const BitVector NextFieldMask

Protected Member Functions

Constructors
CameraDecorator (void)
 CameraDecorator (const CameraDecorator &source)
Destructors
*virtual ~CameraDecorator (void)

Private Types

typedef CameraDecoratorBase Inherited

Private Member Functions

void operator= (const CameraDecorator &source)

Static Private Member Functions

static void initMethod (void)

Friends

class FieldContainer
class CameraDecoratorBase

Detailed Description

The base class for the camera decorator, see Camera Decorators for a description.

The decorated object is held in the _sfDecoratee field.

Definition at line 55 of file OSGCameraDecorator.h.


Member Typedef Documentation

typedef CameraDecoratorBase osg::CameraDecorator::Inherited [private]
 

Reimplemented from osg::CameraDecoratorBase.

Reimplemented in osg::MatrixCameraDecorator, osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecorator, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecorator, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecorator, osg::StereoCameraDecoratorBase, osg::TileCameraDecorator, and osg::TileCameraDecoratorBase.

Definition at line 59 of file OSGCameraDecorator.h.

typedef CameraDecoratorPtr osg::CameraDecoratorBase::Ptr [inherited]
 

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 90 of file OSGCameraDecoratorBase.h.


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
DecorateeFieldId 
NextFieldId 

Reimplemented from osg::CameraBase.

Definition at line 92 of file OSGCameraDecoratorBase.h.


Constructor & Destructor Documentation

CameraDecorator::CameraDecorator void   )  [protected]
 

Definition at line 65 of file OSGCameraDecorator.cpp.

00065                                      :
00066     Inherited()
00067 {
00068 }

CameraDecorator::CameraDecorator const CameraDecorator source  )  [protected]
 

Definition at line 70 of file OSGCameraDecorator.cpp.

00070                                                               :
00071     Inherited(source)
00072 {
00073 }

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

Definition at line 75 of file OSGCameraDecorator.cpp.

00076 {
00077 }


Member Function Documentation

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

Reimplemented from osg::Camera.

Reimplemented in osg::MatrixCameraDecorator, osg::ProjectionCameraDecorator, osg::ShearedStereoCameraDecorator, osg::StereoCameraDecorator, and osg::TileCameraDecorator.

Definition at line 85 of file OSGCameraDecorator.cpp.

References osg::Camera::changed().

Referenced by osg::TileCameraDecorator::changed(), and osg::MatrixCameraDecorator::changed().

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

void CameraDecorator::draw DrawAction action,
const Viewport port
[virtual]
 

Draw the camera's geometry (if any). Usually there is none.

Reimplemented from osg::Camera.

Definition at line 100 of file OSGCameraDecorator.cpp.

References osg::CameraDecoratorBase::getDecoratee().

00102 {
00103     getDecoratee()->draw(action, port);
00104 }

void CameraDecorator::getProjection Matrix result,
UInt32  width,
UInt32  height
[virtual]
 

Get/calculate the projection matrix for this camera.

Reimplemented from osg::Camera.

Reimplemented in osg::MatrixCameraDecorator, osg::ProjectionCameraDecorator, osg::ShearedStereoCameraDecorator, and osg::TileCameraDecorator.

Definition at line 106 of file OSGCameraDecorator.cpp.

References osg::CameraDecoratorBase::getDecoratee().

00109 {
00110     getDecoratee()->getProjection(result, width, height);
00111 }

void CameraDecorator::getProjectionTranslation Matrix result,
UInt32  width,
UInt32  height
[virtual]
 

Get/calculate the projection translation matrix for this camera. The default is identity.

Reimplemented from osg::Camera.

Reimplemented in osg::MatrixCameraDecorator, and osg::ProjectionCameraDecorator.

Definition at line 113 of file OSGCameraDecorator.cpp.

References osg::CameraDecoratorBase::getDecoratee().

00116 {
00117     getDecoratee()->getProjectionTranslation(result, width, height);
00118 }

void CameraDecorator::getViewing Matrix result,
UInt32  width,
UInt32  height
[virtual]
 

Get/calculate the viewing matrix for this camera. This is the inverse of the beacon's toWorld transformation.

Reimplemented from osg::Camera.

Reimplemented in osg::MatrixCameraDecorator, and osg::ProjectionCameraDecorator.

Definition at line 120 of file OSGCameraDecorator.cpp.

References osg::CameraDecoratorBase::getDecoratee().

00123 {
00124     getDecoratee()->getViewing(result, width, height);
00125 }

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

Reimplemented from osg::Camera.

Reimplemented in osg::MatrixCameraDecorator, osg::ProjectionCameraDecorator, osg::ShearedStereoCameraDecorator, osg::StereoCameraDecorator, and osg::TileCameraDecorator.

Definition at line 90 of file OSGCameraDecorator.cpp.

References SLOG.

00092 {
00093     SLOG << "Dump CameraDecorator NI" << std::endl;
00094 }

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

Reimplemented from osg::Camera.

Reimplemented in osg::MatrixCameraDecorator, osg::ProjectionCameraDecorator, osg::ShearedStereoCameraDecorator, osg::StereoCameraDecorator, and osg::TileCameraDecorator.

Definition at line 81 of file OSGCameraDecorator.cpp.

00082 {
00083 }

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

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

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 58 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::_type.

00059 {
00060     return _type; 
00061 } 

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

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 65 of file OSGCameraDecoratorBase.inl.

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

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

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

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 104 of file OSGCameraDecoratorBase.cpp.

References osg::CameraDecoratorBase::_type.

00105 {
00106     return _type; 
00107 } 

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

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 109 of file OSGCameraDecoratorBase.cpp.

References osg::CameraDecoratorBase::_type.

00110 {
00111     return _type;
00112 } 

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

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 115 of file OSGCameraDecoratorBase.cpp.

00116 { 
00117     return sizeof(CameraDecorator); 
00118 }

SFCameraPtr * osg::CameraDecoratorBase::getSFDecoratee void   )  [inline, inherited]
 

Definition at line 74 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::_sfDecoratee.

00075 {
00076     return &_sfDecoratee;
00077 }

SFNodePtr * osg::CameraDecoratorBase::getSFBeacon void   )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 98 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00099 {
00100     return getDecoratee()->getSFBeacon();
00101 }

SFReal32 * osg::CameraDecoratorBase::getSFNear void   )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 104 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00105 {
00106     return getDecoratee()->getSFNear();
00107 }

SFReal32 * osg::CameraDecoratorBase::getSFFar void   )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 110 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00111 {
00112     return getDecoratee()->getSFFar();
00113 }

CameraPtr & osg::CameraDecoratorBase::getDecoratee void   )  [inline, inherited]
 

Definition at line 80 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::_sfDecoratee, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by draw(), osg::CameraDecoratorBase::getBeacon(), osg::CameraDecoratorBase::getFar(), osg::CameraDecoratorBase::getNear(), osg::TileCameraDecorator::getProjection(), osg::ShearedStereoCameraDecorator::getProjection(), osg::ProjectionCameraDecorator::getProjection(), osg::MatrixCameraDecorator::getProjection(), getProjection(), osg::ProjectionCameraDecorator::getProjectionTranslation(), osg::MatrixCameraDecorator::getProjectionTranslation(), getProjectionTranslation(), osg::CameraDecoratorBase::getSFBeacon(), osg::CameraDecoratorBase::getSFFar(), osg::CameraDecoratorBase::getSFNear(), osg::MatrixCameraDecorator::getViewing(), getViewing(), osg::CameraDecoratorBase::setBeacon(), osg::CameraDecoratorBase::setFar(), and osg::CameraDecoratorBase::setNear().

00081 {
00082     return _sfDecoratee.getValue();
00083 }

const CameraPtr & osg::CameraDecoratorBase::getDecoratee void   )  const [inline, inherited]
 

Definition at line 86 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::_sfDecoratee, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00087 {
00088     return _sfDecoratee.getValue();
00089 }

NodePtr & osg::CameraDecoratorBase::getBeacon void   )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 117 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00118 {
00119     return getDecoratee()->getBeacon();
00120 }

const NodePtr & osg::CameraDecoratorBase::getBeacon void   )  const [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 123 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00124 {
00125     return getDecoratee()->getBeacon();
00126 }

Real32 & osg::CameraDecoratorBase::getNear void   )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 137 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00138 {
00139     return getDecoratee()->getNear();
00140 }

const Real32 & osg::CameraDecoratorBase::getNear void   )  const [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 143 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00144 {
00145     return getDecoratee()->getNear();
00146 }

Real32 & osg::CameraDecoratorBase::getFar void   )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 157 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00158 {
00159     return getDecoratee()->getFar();
00160 }

const Real32 & osg::CameraDecoratorBase::getFar void   )  const [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 163 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::getDecoratee().

00164 {
00165     return getDecoratee()->getFar();
00166 }

void osg::CameraDecoratorBase::setDecoratee const CameraPtr value  )  [inline, inherited]
 

Definition at line 92 of file OSGCameraDecoratorBase.inl.

References osg::CameraDecoratorBase::_sfDecoratee, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00093 {
00094     _sfDecoratee.setValue(value);
00095 }

void osg::CameraDecoratorBase::setBeacon const NodePtr value  )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 129 of file OSGCameraDecoratorBase.inl.

References osg::CameraBase::BeaconFieldMask, osg::beginEditCP(), osg::endEditCP(), and osg::CameraDecoratorBase::getDecoratee().

00130 {
00131     beginEditCP(getDecoratee(), BeaconFieldMask);
00132     getDecoratee()->setBeacon(value);
00133     endEditCP  (getDecoratee(), BeaconFieldMask);
00134 }

void osg::CameraDecoratorBase::setNear const Real32 value  )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 149 of file OSGCameraDecoratorBase.inl.

References osg::beginEditCP(), osg::endEditCP(), osg::CameraDecoratorBase::getDecoratee(), and osg::CameraBase::NearFieldMask.

00150 {
00151     beginEditCP(getDecoratee(), NearFieldMask);
00152     getDecoratee()->setNear(value);
00153     endEditCP  (getDecoratee(), NearFieldMask);
00154 }

void osg::CameraDecoratorBase::setFar const Real32 value  )  [inline, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Definition at line 169 of file OSGCameraDecoratorBase.inl.

References osg::beginEditCP(), osg::endEditCP(), osg::CameraBase::FarFieldMask, and osg::CameraDecoratorBase::getDecoratee().

00170 {
00171     beginEditCP(getDecoratee(), FarFieldMask);
00172     getDecoratee()->setFar(value);
00173     endEditCP  (getDecoratee(), FarFieldMask);
00174 }

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

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 177 of file OSGCameraDecoratorBase.cpp.

References osg::CameraDecoratorBase::_sfDecoratee, osg::CameraDecoratorBase::DecorateeFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::CameraBase::getBinSize(), and osg::FieldBits::NoField.

Referenced by osg::TileCameraDecoratorBase::getBinSize(), osg::StereoCameraDecoratorBase::getBinSize(), and osg::MatrixCameraDecoratorBase::getBinSize().

00178 {
00179     UInt32 returnValue = Inherited::getBinSize(whichField);
00180 
00181     if(FieldBits::NoField != (DecorateeFieldMask & whichField))
00182     {
00183         returnValue += _sfDecoratee.getBinSize();
00184     }
00185 
00186     return returnValue;
00187 }

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

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 189 of file OSGCameraDecoratorBase.cpp.

References osg::CameraDecoratorBase::_sfDecoratee, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::CameraBase::copyToBin(), osg::CameraDecoratorBase::DecorateeFieldMask, and osg::FieldBits::NoField.

Referenced by osg::TileCameraDecoratorBase::copyToBin(), osg::StereoCameraDecoratorBase::copyToBin(), and osg::MatrixCameraDecoratorBase::copyToBin().

00191 {
00192     Inherited::copyToBin(pMem, whichField);
00193 
00194     if(FieldBits::NoField != (DecorateeFieldMask & whichField))
00195     {
00196         _sfDecoratee.copyToBin(pMem);
00197     }
00198 
00199 }

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

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 201 of file OSGCameraDecoratorBase.cpp.

References osg::CameraDecoratorBase::_sfDecoratee, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::CameraBase::copyFromBin(), osg::CameraDecoratorBase::DecorateeFieldMask, and osg::FieldBits::NoField.

Referenced by osg::TileCameraDecoratorBase::copyFromBin(), osg::StereoCameraDecoratorBase::copyFromBin(), and osg::MatrixCameraDecoratorBase::copyFromBin().

00203 {
00204     Inherited::copyFromBin(pMem, whichField);
00205 
00206     if(FieldBits::NoField != (DecorateeFieldMask & whichField))
00207     {
00208         _sfDecoratee.copyFromBin(pMem);
00209     }
00210 
00211 }

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

Definition at line 214 of file OSGCameraDecoratorBase.cpp.

References osg::CameraDecoratorBase::_sfDecoratee, osg::CameraDecoratorBase::DecorateeFieldMask, osg::CameraBase::executeSyncImpl(), osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith().

Referenced by osg::CameraDecoratorBase::executeSync(), osg::TileCameraDecoratorBase::executeSyncImpl(), osg::StereoCameraDecoratorBase::executeSyncImpl(), and osg::MatrixCameraDecoratorBase::executeSyncImpl().

00216 {
00217 
00218     Inherited::executeSyncImpl(pOther, whichField);
00219 
00220     if(FieldBits::NoField != (DecorateeFieldMask & whichField))
00221     {
00222         _sfDecoratee.syncWith(pOther->_sfDecoratee);
00223     }
00224 
00225 }

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

Definition at line 275 of file OSGCameraBase.cpp.

References osg::CameraBase::_sfBeacon, osg::CameraBase::_sfFar, osg::CameraBase::_sfNear, osg::CameraBase::BeaconFieldMask, osg::AttachmentContainer::executeSyncImpl(), osg::CameraBase::FarFieldMask, osg::CameraBase::NearFieldMask, osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith().

Referenced by osg::CameraBase::executeSync(), osg::PerspectiveCameraBase::executeSyncImpl(), osg::MatrixCameraBase::executeSyncImpl(), and osg::CameraDecoratorBase::executeSyncImpl().

00277 {
00278 
00279     Inherited::executeSyncImpl(pOther, whichField);
00280 
00281     if(FieldBits::NoField != (BeaconFieldMask & whichField))
00282         _sfBeacon.syncWith(pOther->_sfBeacon);
00283 
00284     if(FieldBits::NoField != (NearFieldMask & whichField))
00285         _sfNear.syncWith(pOther->_sfNear);
00286 
00287     if(FieldBits::NoField != (FarFieldMask & whichField))
00288         _sfFar.syncWith(pOther->_sfFar);
00289 
00290 
00291 }

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

Definition at line 316 of file OSGAttachmentContainer.cpp.

References osg::AttachmentContainer::_attachmentMap, osg::AttachmentContainer::AttachmentsFieldMask, osg::FieldContainer::executeSyncImpl(), osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith().

Referenced by osg::AttachmentContainer::executeSync(), osg::WindowBase::executeSyncImpl(), osg::ViewportBase::executeSyncImpl(), osg::ShaderParameterBase::executeSyncImpl(), osg::Node::executeSyncImpl(), osg::NodeCore::executeSyncImpl(), osg::MaterialBase::executeSyncImpl(), osg::ImageComposerBase::executeSyncImpl(), osg::ImageBase::executeSyncImpl(), osg::ForegroundBase::executeSyncImpl(), osg::DisplayCalibrationBase::executeSyncImpl(), osg::CameraBase::executeSyncImpl(), and osg::BackgroundBase::executeSyncImpl().

00319 {
00320     Inherited::executeSyncImpl(pOther, whichField);
00321 
00322     if (FieldBits::NoField != (AttachmentsFieldMask & whichField))
00323     {
00324         _attachmentMap.syncWith(pOther->_attachmentMap);
00325     }
00326 }

void osg::FieldContainer::executeSyncImpl FieldContainer pOther,
const BitVector whichField
[inline, protected, inherited]
 

Definition at line 333 of file OSGFieldContainerImpl.inl.

Referenced by osg::StateBase::executeSyncImpl(), osg::DVRShaderBase::executeSyncImpl(), osg::DVRClipGeometryBase::executeSyncImpl(), osg::AttachmentContainer::executeSyncImpl(), and osg::Attachment::executeSyncImpl().

00335 {
00336 }

void CameraDecoratorBase::executeSync FieldContainer other,
const BitVector whichField
[protected, virtual, inherited]
 

Reimplemented from osg::CameraBase.

Reimplemented in osg::MatrixCameraDecoratorBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase.

Definition at line 122 of file OSGCameraDecoratorBase.cpp.

References osg::CameraDecoratorBase::executeSyncImpl().

00124 {
00125     this->executeSyncImpl((CameraDecoratorBase *) &other, whichField);
00126 }

* static const char* osg::Camera::getClassname void   )  [inline, static, inherited]
 

Reimplemented in osg::MatrixCamera, osg::OffCenterPerspectiveCamera, osg::PerspectiveCamera, and osg::TileCameraDecorator.

Definition at line 73 of file OSGCamera.h.

00073 { return "Camera"; };

void Camera::setup DrawActionBase action,
const Viewport port
[virtual, inherited]
 

Setup OpenGL for rendering, call all the necessary commands to start rendering with this camera.

Definition at line 109 of file OSGCamera.cpp.

References osg::Viewport::getPixelHeight(), osg::Viewport::getPixelWidth(), osg::Camera::getProjection(), osg::Camera::getProjectionTranslation(), osg::TransformationMatrix< ValueTypeT >::getValues(), osg::Camera::getViewing(), and osg::TransformationMatrix< ValueTypeT >::mult().

00111 {
00112     Matrix m, t;
00113 
00114     // set the projection
00115 
00116