#include <OSGCameraBase.h>
Inheritance diagram for osg::CameraBase:

Public Types | |
| typedef CameraPtr | Ptr |
| enum | { BeaconFieldId = Inherited::NextFieldId, NearFieldId = BeaconFieldId + 1, FarFieldId = NearFieldId + 1, NextFieldId = FarFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *virtual SFNodePtr * | getSFBeacon (void) |
| virtual SFReal32 * | getSFNear (void) |
| virtual SFReal32 * | getSFFar (void) |
| virtual NodePtr & | getBeacon (void) |
| virtual const NodePtr & | getBeacon (void) const |
| virtual Real32 & | getNear (void) |
| virtual const Real32 & | getNear (void) const |
| virtual Real32 & | getFar (void) |
| virtual const Real32 & | getFar (void) const |
Field Set | |
| *virtual void | setBeacon (const NodePtr &value) |
| virtual void | setNear (const Real32 &value) |
| virtual void | setFar (const Real32 &value) |
Binary Access | |
| *virtual UInt32 | getBinSize (const BitVector &whichField) |
| virtual void | copyToBin (BinaryDataHandler &pMem, const BitVector &whichField) |
| virtual void | copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField) |
Changed | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Dump | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
Clone | |
| *virtual FieldContainerPtr | shallowCopy (void) const =0 |
Static Public Member Functions | |
Class Get | |
| *static FieldContainerType & | getClassType (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 | BeaconFieldMask |
| static const osg::BitVector | NearFieldMask |
| static const osg::BitVector | FarFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| * | CameraBase (void) |
| CameraBase (const CameraBase &source) | |
Destructors | |
| *virtual | ~CameraBase (void) |
Sync | |
| *void | executeSyncImpl (CameraBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Protected Attributes | |
Fields | |
| *SFNodePtr | _sfBeacon |
| SFReal32 | _sfNear |
| SFReal32 | _sfFar |
Private Types | |
| typedef AttachmentContainer | Inherited |
Private Member Functions | |
| void | operator= (const CameraBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| Camera description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 83 of file OSGCameraBase.h.
|
|
|
|
Reimplemented from osg::AttachmentContainer. Definition at line 94 of file OSGCameraBase.h. 00095 { 00096 BeaconFieldId = Inherited::NextFieldId, 00097 NearFieldId = BeaconFieldId + 1, 00098 FarFieldId = NearFieldId + 1, 00099 NextFieldId = FarFieldId + 1 00100 };
|
|
|
Definition at line 177 of file OSGCameraBase.cpp.
|
|
|
Definition at line 189 of file OSGCameraBase.cpp. 00189 : 00190 _sfBeacon (source._sfBeacon ), 00191 _sfNear (source._sfNear ), 00192 _sfFar (source._sfFar ), 00193 Inherited (source) 00194 { 00195 }
|
|
|
Definition at line 199 of file OSGCameraBase.cpp.
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::CameraDecoratorBase, osg::MatrixCameraBase, osg::MatrixCameraDecoratorBase, osg::OffCenterPerspectiveCameraBase, osg::PerspectiveCameraBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase. Definition at line 58 of file OSGCameraBase.inl. References _type. 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::CameraDecoratorBase, osg::MatrixCameraBase, osg::MatrixCameraDecoratorBase, osg::OffCenterPerspectiveCameraBase, osg::PerspectiveCameraBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase. Definition at line 65 of file OSGCameraBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::CameraDecoratorBase, osg::MatrixCameraBase, osg::MatrixCameraDecoratorBase, osg::OffCenterPerspectiveCameraBase, osg::PerspectiveCameraBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase. Definition at line 128 of file OSGCameraBase.cpp. References _type. 00129 { 00130 return _type; 00131 }
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::CameraDecoratorBase, osg::MatrixCameraBase, osg::MatrixCameraDecoratorBase, osg::OffCenterPerspectiveCameraBase, osg::PerspectiveCameraBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase. Definition at line 133 of file OSGCameraBase.cpp. References _type. 00134 { 00135 return _type; 00136 }
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::CameraDecoratorBase, osg::MatrixCameraBase, osg::MatrixCameraDecoratorBase, osg::OffCenterPerspectiveCameraBase, osg::PerspectiveCameraBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase. Definition at line 139 of file OSGCameraBase.cpp. 00140 { 00141 return sizeof(Camera); 00142 }
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 325 of file OSGCameraBase.cpp. References _sfBeacon. 00326 { 00327 return &_sfBeacon; 00328 }
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 331 of file OSGCameraBase.cpp. References _sfNear. 00332 { 00333 return &_sfNear; 00334 }
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 337 of file OSGCameraBase.cpp. References _sfFar. 00338 { 00339 return &_sfFar; 00340 }
|
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 350 of file OSGCameraBase.cpp. References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 362 of file OSGCameraBase.cpp. References _sfNear, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::SkyBackground::clear(), osg::PerspectiveCamera::getProjection(), and osg::OffCenterPerspectiveCamera::getProjection().
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 368 of file OSGCameraBase.cpp. References _sfNear, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 380 of file OSGCameraBase.cpp. References _sfFar, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::SkyBackground::clear(), osg::PerspectiveCamera::getProjection(), and osg::OffCenterPerspectiveCamera::getProjection().
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 386 of file OSGCameraBase.cpp. References _sfFar, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 356 of file OSGCameraBase.cpp. References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 374 of file OSGCameraBase.cpp. References _sfNear, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Reimplemented in osg::CameraDecoratorBase. Definition at line 392 of file OSGCameraBase.cpp. References _sfFar, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
||||||||||||
|
||||||||||||
|
||||||||||||
|
Definition at line 275 of file OSGCameraBase.cpp. References _sfBeacon, _sfFar, _sfNear, BeaconFieldMask, osg::AttachmentContainer::executeSyncImpl(), FarFieldMask, NearFieldMask, osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by 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 }
|
|
||||||||||||
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::CameraDecoratorBase, osg::MatrixCameraBase, osg::MatrixCameraDecoratorBase, osg::OffCenterPerspectiveCameraBase, osg::PerspectiveCameraBase, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecoratorBase, and osg::TileCameraDecoratorBase. Definition at line 146 of file OSGCameraBase.cpp. References executeSyncImpl(). 00148 { 00149 this->executeSyncImpl((CameraBase *) &other, whichField); 00150 }
|
|
|
|
|
||||||||||||
|
Definition at line 84 of file OSGAttachmentContainer.cpp. References osg::addRefCP(), osg::beginEditCP(), osg::endEditCP(), osg::NullFC, and osg::subRefCP(). Referenced by osg::AttachmentContainer::AttachmentContainer(), osg::Node::onCreate(), and osg::Image::setAttachmentField(). 00086 { 00087 UInt32 key; 00088 00089 if(fieldContainerP == NullFC) 00090 return; 00091 00092 key = (UInt32 (fieldContainerP->getGroupId()) << 16) | binding; 00093 00094 addRefCP(fieldContainerP); 00095 00096 beginEditCP(fieldContainerP, Attachment::ParentsFieldMask); 00097 { 00098 fieldContainerP->addParent(getPtr()); 00099 } 00100 endEditCP (fieldContainerP, Attachment::ParentsFieldMask); 00101 00102 AttachmentMap::iterator fcI = _attachmentMap.getValue().find(key); 00103 00104 if(fcI != _attachmentMap.getValue().end()) 00105 { 00106 beginEditCP((*fcI).second, Attachment::ParentsFieldMask); 00107 { 00108 (*fcI).second->subParent(getPtr()); 00109 } 00110 endEditCP ((*fcI).second, Attachment::ParentsFieldMask); 00111 00112 subRefCP((*fcI).second); 00113 00114 (*fcI).second = fieldContainerP; 00115 } 00116 else 00117 { 00118 _attachmentMap.getValue()[key] = fieldContainerP; 00119 } 00120 }
|
|
||||||||||||
|
Definition at line 122 of file OSGAttachmentContainer.cpp. References osg::AttachmentContainer::_attachmentMap, osg::beginEditCP(), osg::endEditCP(), osg::AttachmentContainer::getPtr(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::NullFC, osg::Attachment::ParentsFieldMask, and osg::subRefCP(). 00124 { 00125 UInt32 key; 00126 00127 AttachmentMap::iterator fcI; 00128 00129 if(fieldContainerP == NullFC) 00130 return; 00131 00132 key = (UInt32(fieldContainerP->getGroupId()) << 16) | binding; 00133 00134 fcI = _attachmentMap.getValue().find(key); 00135 00136 if(fcI != _attachmentMap.getValue().end()) 00137 { 00138 beginEditCP(fieldContainerP, Attachment::ParentsFieldMask); 00139 { 00140 (*fcI).second->subParent(getPtr()); 00141 } 00142 endEditCP (fieldContainerP, Attachment::ParentsFieldMask); 00143 00144 subRefCP((*fcI).second); 00145 00146 _attachmentMap.getValue().erase(fcI); 00147 } 00148 }
|
|
||||||||||||
|
Definition at line 150 of file OSGAttachmentContainer.cpp. References osg::AttachmentContainer::_attachmentMap, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), and osg::NullFC. Referenced by osg::Image::findAttachmentField(), and osg::Image::setAttachmentField(). 00152 { 00153 UInt32 key = (UInt32(groupId) << 16) | binding; 00154 00155 AttachmentMap::iterator fcI = _attachmentMap.getValue().find(key); 00156 00157 if(fcI == _attachmentMap.getValue().end()) 00158 { 00159 return NullFC; 00160 } 00161 else 00162 { 00163 return (*fcI).second; 00164 } 00165 }
|
|
||||||||||||
|
Definition at line 57 of file OSGAttachmentContainerImpl.inl. 00060 { 00061 return findAttachment(type.getGroupId(), binding); 00062 }
|
|
|
Definition at line 170 of file OSGAttachmentContainer.cpp. References osg::AttachmentContainer::_attachmentMap. 00171 { 00172 return &_attachmentMap; 00173 }
|
|
||||||||||||