#include <OSGStereoCameraDecoratorBase.h>
Inheritance diagram for osg::StereoCameraDecoratorBase:

Sync | |
| *void | executeSyncImpl (StereoCameraDecoratorBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Public Types | |
| typedef StereoCameraDecoratorPtr | Ptr |
| enum | { LeftEyeFieldId = Inherited::NextFieldId, EyeSeparationFieldId = LeftEyeFieldId + 1, NextFieldId = EyeSeparationFieldId + 1 } |
Public Member Functions | |
Clone | |
| *virtual FieldContainerPtr | shallowCopy (void) const =0 |
Clone | |
| *virtual FieldContainerPtr | shallowCopy (void) const =0 |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (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) |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Output | |
| *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 | LeftEyeFieldMask |
| static const osg::BitVector | EyeSeparationFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const osg::BitVector | DecorateeFieldMask |
| 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 | |
| * | StereoCameraDecoratorBase (void) |
| StereoCameraDecoratorBase (const StereoCameraDecoratorBase &source) | |
Destructors | |
| *virtual | ~StereoCameraDecoratorBase (void) |
Private Types | |
| typedef CameraDecorator | Inherited |
Private Member Functions | |
| void | operator= (const StereoCameraDecoratorBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| StereoCameraDecorator description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 82 of file OSGStereoCameraDecoratorBase.h.
|
|
Reimplemented from osg::CameraDecorator. Reimplemented in osg::ProjectionCameraDecorator, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecorator, osg::ShearedStereoCameraDecoratorBase, and osg::StereoCameraDecorator. Definition at line 86 of file OSGStereoCameraDecoratorBase.h. |
|
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 91 of file OSGStereoCameraDecoratorBase.h. |
|
|
Reimplemented from osg::CameraDecoratorBase. Definition at line 93 of file OSGStereoCameraDecoratorBase.h. 00094 { 00095 LeftEyeFieldId = Inherited::NextFieldId, 00096 EyeSeparationFieldId = LeftEyeFieldId + 1, 00097 NextFieldId = EyeSeparationFieldId + 1 00098 };
|
|
|
Definition at line 166 of file OSGStereoCameraDecoratorBase.cpp. 00166 : 00167 _sfLeftEye (), 00168 _sfEyeSeparation (), 00169 Inherited() 00170 { 00171 }
|
|
|
Definition at line 177 of file OSGStereoCameraDecoratorBase.cpp. 00177 : 00178 _sfLeftEye (source._sfLeftEye ), 00179 _sfEyeSeparation (source._sfEyeSeparation ), 00180 Inherited (source) 00181 { 00182 }
|
|
|
Definition at line 186 of file OSGStereoCameraDecoratorBase.cpp.
|
|
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 58 of file OSGStereoCameraDecoratorBase.inl. References _type. 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 65 of file OSGStereoCameraDecoratorBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 117 of file OSGStereoCameraDecoratorBase.cpp. References _type. 00118 { 00119 return _type; 00120 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 122 of file OSGStereoCameraDecoratorBase.cpp. References _type. 00123 { 00124 return _type; 00125 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 128 of file OSGStereoCameraDecoratorBase.cpp. 00129 { 00130 return sizeof(StereoCameraDecorator); 00131 }
|
|
|
Definition at line 75 of file OSGStereoCameraDecoratorBase.inl. References _sfLeftEye. 00076 { 00077 return &_sfLeftEye; 00078 }
|
|
|
Definition at line 82 of file OSGStereoCameraDecoratorBase.inl. References _sfEyeSeparation. 00083 { 00084 return &_sfEyeSeparation; 00085 }
|
|
|
Definition at line 90 of file OSGStereoCameraDecoratorBase.inl. References _sfLeftEye, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ShearedStereoCameraDecorator::getProjection(), osg::ProjectionCameraDecorator::getProjection(), and osg::ProjectionCameraDecorator::getProjectionTranslation(). 00091 { 00092 return _sfLeftEye.getValue(); 00093 }
|
|
|
Definition at line 97 of file OSGStereoCameraDecoratorBase.inl. References _sfLeftEye, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00098 { 00099 return _sfLeftEye.getValue(); 00100 }
|
|
|
Definition at line 111 of file OSGStereoCameraDecoratorBase.inl. References _sfEyeSeparation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ShearedStereoCameraDecorator::getProjection(), osg::ProjectionCameraDecorator::getProjection(), and osg::ProjectionCameraDecorator::getProjectionTranslation(). 00112 { 00113 return _sfEyeSeparation.getValue(); 00114 }
|
|
|
Definition at line 118 of file OSGStereoCameraDecoratorBase.inl. References _sfEyeSeparation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00119 { 00120 return _sfEyeSeparation.getValue(); 00121 }
|
|
|
Definition at line 104 of file OSGStereoCameraDecoratorBase.inl. References _sfLeftEye, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00105 { 00106 _sfLeftEye.setValue(value); 00107 }
|
|
|
Definition at line 125 of file OSGStereoCameraDecoratorBase.inl. References _sfEyeSeparation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00126 { 00127 _sfEyeSeparation.setValue(value); 00128 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 192 of file OSGStereoCameraDecoratorBase.cpp. References _sfEyeSeparation, _sfLeftEye, EyeSeparationFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::CameraDecoratorBase::getBinSize(), LeftEyeFieldMask, and osg::FieldBits::NoField. Referenced by osg::ShearedStereoCameraDecoratorBase::getBinSize(), and osg::ProjectionCameraDecoratorBase::getBinSize(). 00193 { 00194 UInt32 returnValue = Inherited::getBinSize(whichField); 00195 00196 if(FieldBits::NoField != (LeftEyeFieldMask & whichField)) 00197 { 00198 returnValue += _sfLeftEye.getBinSize(); 00199 } 00200 00201 if(FieldBits::NoField != (EyeSeparationFieldMask & whichField)) 00202 { 00203 returnValue += _sfEyeSeparation.getBinSize(); 00204 } 00205 00206 00207 return returnValue; 00208 }
|
|
||||||||||||
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 210 of file OSGStereoCameraDecoratorBase.cpp. References _sfEyeSeparation, _sfLeftEye, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::CameraDecoratorBase::copyToBin(), EyeSeparationFieldMask, LeftEyeFieldMask, and osg::FieldBits::NoField. Referenced by osg::ShearedStereoCameraDecoratorBase::copyToBin(), and osg::ProjectionCameraDecoratorBase::copyToBin(). 00212 { 00213 Inherited::copyToBin(pMem, whichField); 00214 00215 if(FieldBits::NoField != (LeftEyeFieldMask & whichField)) 00216 { 00217 _sfLeftEye.copyToBin(pMem); 00218 } 00219 00220 if(FieldBits::NoField != (EyeSeparationFieldMask & whichField)) 00221 { 00222 _sfEyeSeparation.copyToBin(pMem); 00223 } 00224 00225 00226 }
|
|
||||||||||||
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 228 of file OSGStereoCameraDecoratorBase.cpp. References _sfEyeSeparation, _sfLeftEye, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::CameraDecoratorBase::copyFromBin(), EyeSeparationFieldMask, LeftEyeFieldMask, and osg::FieldBits::NoField. Referenced by osg::ShearedStereoCameraDecoratorBase::copyFromBin(), and osg::ProjectionCameraDecoratorBase::copyFromBin(). 00230 { 00231 Inherited::copyFromBin(pMem, whichField); 00232 00233 if(FieldBits::NoField != (LeftEyeFieldMask & whichField)) 00234 { 00235 _sfLeftEye.copyFromBin(pMem); 00236 } 00237 00238 if(FieldBits::NoField != (EyeSeparationFieldMask & whichField)) 00239 { 00240 _sfEyeSeparation.copyFromBin(pMem); 00241 } 00242 00243 00244 }
|
|
||||||||||||
|
Definition at line 247 of file OSGStereoCameraDecoratorBase.cpp. References _sfEyeSeparation, _sfLeftEye, osg::CameraDecoratorBase::executeSyncImpl(), EyeSeparationFieldMask, LeftEyeFieldMask, osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by executeSync(), osg::ShearedStereoCameraDecoratorBase::executeSyncImpl(), and osg::ProjectionCameraDecoratorBase::executeSyncImpl(). 00249 { 00250 00251 Inherited::executeSyncImpl(pOther, whichField); 00252 00253 if(FieldBits::NoField != (LeftEyeFieldMask & whichField)) 00254 _sfLeftEye.syncWith(pOther->_sfLeftEye); 00255 00256 if(FieldBits::NoField != (EyeSeparationFieldMask & whichField)) 00257 _sfEyeSeparation.syncWith(pOther->_sfEyeSeparation); 00258 00259 00260 }
|
|
||||||||||||
|
Reimplemented from osg::CameraDecoratorBase. Reimplemented in osg::ProjectionCameraDecoratorBase, and osg::ShearedStereoCameraDecoratorBase. Definition at line 135 of file OSGStereoCameraDecoratorBase.cpp. References executeSyncImpl(). 00137 { 00138 this->executeSyncImpl((StereoCameraDecoratorBase *) &other, whichField); 00139 }
|
|
|
|
|
||||||||||||
|
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 }
|
|
||||||||||||
|
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 }
|
|
||||||||||||||||
|
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 }
|
|
||||||||||||||||
|
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 }
|
|
||||||||||||||||
|
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 }
|
|
||||||||||||
|
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 }
|
|
|
Definition at line 74 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::_sfDecoratee. 00075 { 00076 return &_sfDecoratee; 00077 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 98 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00099 { 00100 return getDecoratee()->getSFBeacon(); 00101 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 104 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00105 { 00106 return getDecoratee()->getSFNear(); 00107 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 110 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00111 { 00112 return getDecoratee()->getSFFar(); 00113 }
|
|
|
|
Definition at line 86 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::_sfDecoratee, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00087 { 00088 return _sfDecoratee.getValue(); 00089 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 117 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00118 { 00119 return getDecoratee()->getBeacon(); 00120 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 123 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00124 { 00125 return getDecoratee()->getBeacon(); 00126 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 137 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00138 { 00139 return getDecoratee()->getNear(); 00140 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 143 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00144 { 00145 return getDecoratee()->getNear(); 00146 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 157 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00158 { 00159 return getDecoratee()->getFar(); 00160 }
|
|
|
Reimplemented from osg::CameraBase. Definition at line 163 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::getDecoratee(). 00164 { 00165 return getDecoratee()->getFar(); 00166 }
|
|
|
Definition at line 92 of file OSGCameraDecoratorBase.inl. References osg::CameraDecoratorBase::_sfDecoratee, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00093 { 00094 _sfDecoratee.setValue(value); 00095 }
|
|
|
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 }
|
|
|
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 }
|
|
|
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 }
|
|
||||||||||||
|
Definition at line 214 of file OSGCameraDecoratorBase.cpp. References osg::CameraDecoratorBa |