#include <OSGViewportBase.h>
Inheritance diagram for osg::ViewportBase:

Public Types | |
| typedef ViewportPtr | Ptr |
| enum | { LeftFieldId = Inherited::NextFieldId, RightFieldId = LeftFieldId + 1, BottomFieldId = RightFieldId + 1, TopFieldId = BottomFieldId + 1, ParentFieldId = TopFieldId + 1, CameraFieldId = ParentFieldId + 1, RootFieldId = CameraFieldId + 1, BackgroundFieldId = RootFieldId + 1, ForegroundsFieldId = BackgroundFieldId + 1, TravMaskFieldId = ForegroundsFieldId + 1, DrawTimeFieldId = TravMaskFieldId + 1, NextFieldId = DrawTimeFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFReal32 * | getSFLeft (void) |
| Get the Viewport::_sfLeft field. | |
| SFReal32 * | getSFRight (void) |
| Get the Viewport::_sfRight field. | |
| SFReal32 * | getSFBottom (void) |
| Get the Viewport::_sfBottom field. | |
| SFReal32 * | getSFTop (void) |
| Get the Viewport::_sfTop field. | |
| SFWindowPtr * | getSFParent (void) |
| Get the Viewport::_sfParent field. | |
| SFCameraPtr * | getSFCamera (void) |
| Get the Viewport::_sfCamera field. | |
| SFNodePtr * | getSFRoot (void) |
| Get the Viewport::_sfRoot field. | |
| SFBackgroundPtr * | getSFBackground (void) |
| Get the Viewport::_sfBackground field. | |
| MFForegroundPtr * | getMFForegrounds (void) |
| Get the Viewport::_mfForegrounds field. | |
| SFUInt32 * | getSFTravMask (void) |
| Get the Viewport::_sfTravMask field. | |
| SFReal32 * | getSFDrawTime (void) |
| Get the Viewport::_sfDrawTime field. | |
| Real32 & | getLeft (void) |
| Get the value of the Viewport::_sfLeft field. | |
| const Real32 & | getLeft (void) const |
| Get the value of the Viewport::_sfLeft field. | |
| Real32 & | getRight (void) |
| Get the value of the Viewport::_sfRight field. | |
| const Real32 & | getRight (void) const |
| Get the value of the Viewport::_sfRight field. | |
| Real32 & | getBottom (void) |
| Get the value of the Viewport::_sfBottom field. | |
| const Real32 & | getBottom (void) const |
| Get the value of the Viewport::_sfBottom field. | |
| Real32 & | getTop (void) |
| Get the value of the Viewport::_sfTop field. | |
| const Real32 & | getTop (void) const |
| Get the value of the Viewport::_sfTop field. | |
| WindowPtr & | getParent (void) |
| Get the value of the Viewport::_sfParent field. | |
| const WindowPtr & | getParent (void) const |
| Get the value of the Viewport::_sfParent field. | |
| CameraPtr & | getCamera (void) |
| Get the value of the Viewport::_sfCamera field. | |
| const CameraPtr & | getCamera (void) const |
| Get the value of the Viewport::_sfCamera field. | |
| NodePtr & | getRoot (void) |
| Get the value of the Viewport::_sfRoot field. | |
| const NodePtr & | getRoot (void) const |
| Get the value of the Viewport::_sfRoot field. | |
| BackgroundPtr & | getBackground (void) |
| Get the value of the Viewport::_sfBackground field. | |
| const BackgroundPtr & | getBackground (void) const |
| Get the value of the Viewport::_sfBackground field. | |
| UInt32 & | getTravMask (void) |
| Get the value of the Viewport::_sfTravMask field. | |
| const UInt32 & | getTravMask (void) const |
| Get the value of the Viewport::_sfTravMask field. | |
| Real32 & | getDrawTime (void) |
| Get the value of the Viewport::_sfDrawTime field. | |
| const Real32 & | getDrawTime (void) const |
| Get the value of the Viewport::_sfDrawTime field. | |
| ForegroundPtr & | getForegrounds (const UInt32 index) |
| Get the value of the index element the Viewport::_mfForegrounds field. | |
| MFForegroundPtr & | getForegrounds (void) |
| Get the Viewport::_mfForegrounds field. | |
| const MFForegroundPtr & | getForegrounds (void) const |
| Get the Viewport::_mfForegrounds field. | |
Field Set | |
| *void | setLeft (const Real32 &value) |
| Set the value of the Viewport::_sfLeft field. | |
| void | setRight (const Real32 &value) |
| Set the value of the Viewport::_sfRight field. | |
| void | setBottom (const Real32 &value) |
| Set the value of the Viewport::_sfBottom field. | |
| void | setTop (const Real32 &value) |
| Set the value of the Viewport::_sfTop field. | |
| void | setParent (const WindowPtr &value) |
| Set the value of the Viewport::_sfParent field. | |
| void | setCamera (const CameraPtr &value) |
| Set the value of the Viewport::_sfCamera field. | |
| void | setRoot (const NodePtr &value) |
| Set the value of the Viewport::_sfRoot field. | |
| void | setBackground (const BackgroundPtr &value) |
| Set the value of the Viewport::_sfBackground field. | |
| void | setTravMask (const UInt32 &value) |
| Set the value of the Viewport::_sfTravMask field. | |
| void | setDrawTime (const Real32 &value) |
| Set the value of the Viewport::_sfDrawTime 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 |
Handle Attachments | |
| *void | addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0) |
| void | subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0) |
| AttachmentPtr | findAttachment (UInt32 groupId, UInt16 binding=0) |
| AttachmentPtr | findAttachment (const FieldContainerType &type, UInt16 binding=0) |
| Field Access *SFAttachmentMap * | getSFAttachments (void) |
Changed | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Dump | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
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 | |
Construction | |
| *static ViewportPtr | create (void) |
| create a new instance of the class | |
| static ViewportPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Public Attributes | |
| 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 osg::BitVector | MTInfluenceMask |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| * | ViewportBase (void) |
| ViewportBase (const ViewportBase &source) | |
Destructors | |
| *virtual | ~ViewportBase (void) |
Sync | |
| *void | executeSyncImpl (ViewportBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Sync | |
| void | executeSyncImpl (AttachmentContainer *pOther, const BitVector &whichField) |
Pointer | |
| *AttachmentContainerPtr | getPtr (void) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Protected Attributes | |
Fields | |
| *SFReal32 | _sfLeft |
| SFReal32 | _sfRight |
| SFReal32 | _sfBottom |
| SFReal32 | _sfTop |
| SFWindowPtr | _sfParent |
| SFCameraPtr | _sfCamera |
| SFNodePtr | _sfRoot |
| SFBackgroundPtr | _sfBackground |
| MFForegroundPtr | _mfForegrounds |
| SFUInt32 | _sfTravMask |
| SFReal32 | _sfDrawTime |
Fields | |
| *SFAttachmentMap | _attachmentMap |
Private Types | |
| typedef AttachmentContainer | Inherited |
Private Member Functions | |
| void | operator= (const ViewportBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| Viewport description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 91 of file OSGViewportBase.h.
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::ColorBufferViewport, osg::ColorBufferViewportBase, osg::PassiveViewport, osg::PassiveViewportBase, osg::StereoBufferViewport, osg::StereoBufferViewportBase, and osg::Viewport. Definition at line 95 of file OSGViewportBase.h. |
|
|
Reimplemented in osg::ColorBufferViewportBase, osg::PassiveViewportBase, and osg::StereoBufferViewportBase. Definition at line 100 of file OSGViewportBase.h. |
|
|
Reimplemented from osg::AttachmentContainer. Definition at line 102 of file OSGViewportBase.h. 00103 { 00104 LeftFieldId = Inherited::NextFieldId, 00105 RightFieldId = LeftFieldId + 1, 00106 BottomFieldId = RightFieldId + 1, 00107 TopFieldId = BottomFieldId + 1, 00108 ParentFieldId = TopFieldId + 1, 00109 CameraFieldId = ParentFieldId + 1, 00110 RootFieldId = CameraFieldId + 1, 00111 BackgroundFieldId = RootFieldId + 1, 00112 ForegroundsFieldId = BackgroundFieldId + 1, 00113 TravMaskFieldId = ForegroundsFieldId + 1, 00114 DrawTimeFieldId = TravMaskFieldId + 1, 00115 NextFieldId = DrawTimeFieldId + 1 00116 };
|
|
|
Definition at line 275 of file OSGViewportBase.cpp. 00275 : 00276 _sfLeft (), 00277 _sfRight (), 00278 _sfBottom (), 00279 _sfTop (), 00280 _sfParent (), 00281 _sfCamera (), 00282 _sfRoot (), 00283 _sfBackground (), 00284 _mfForegrounds (), 00285 _sfTravMask (UInt32(TypeTraits<UInt32>::getMax())), 00286 _sfDrawTime (Real32(0.0f)), 00287 Inherited() 00288 { 00289 }
|
|
|
Definition at line 295 of file OSGViewportBase.cpp. 00295 : 00296 _sfLeft (source._sfLeft ), 00297 _sfRight (source._sfRight ), 00298 _sfBottom (source._sfBottom ), 00299 _sfTop (source._sfTop ), 00300 _sfParent (source._sfParent ), 00301 _sfCamera (source._sfCamera ), 00302 _sfRoot (source._sfRoot ), 00303 _sfBackground (source._sfBackground ), 00304 _mfForegrounds (source._mfForegrounds ), 00305 _sfTravMask (source._sfTravMask ), 00306 _sfDrawTime (source._sfDrawTime ), 00307 Inherited (source) 00308 { 00309 }
|
|
|
Definition at line 313 of file OSGViewportBase.cpp.
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::ColorBufferViewportBase, osg::PassiveViewportBase, and osg::StereoBufferViewportBase. Definition at line 58 of file OSGViewportBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::ColorBufferViewportBase, osg::PassiveViewportBase, and osg::StereoBufferViewportBase. Definition at line 65 of file OSGViewportBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::ColorBufferViewportBase, osg::PassiveViewportBase, and osg::StereoBufferViewportBase. Definition at line 216 of file OSGViewportBase.cpp. References _type. 00217 { 00218 return _type; 00219 }
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::ColorBufferViewportBase, osg::PassiveViewportBase, and osg::StereoBufferViewportBase. Definition at line 221 of file OSGViewportBase.cpp. References _type. 00222 { 00223 return _type; 00224 }
|
|
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::ColorBufferViewportBase, osg::PassiveViewportBase, and osg::StereoBufferViewportBase. Definition at line 236 of file OSGViewportBase.cpp. 00237 { 00238 return sizeof(Viewport); 00239 }
|
|
|
Definition at line 101 of file OSGViewportBase.inl. References _sfLeft. 00102 { 00103 return &_sfLeft; 00104 }
|
|
|
Definition at line 108 of file OSGViewportBase.inl. References _sfRight. 00109 { 00110 return &_sfRight; 00111 }
|
|
|
Definition at line 115 of file OSGViewportBase.inl. References _sfBottom. 00116 { 00117 return &_sfBottom; 00118 }
|
|
|
Definition at line 122 of file OSGViewportBase.inl. References _sfTop. 00123 { 00124 return &_sfTop; 00125 }
|
|
|
Definition at line 129 of file OSGViewportBase.inl. References _sfParent. 00130 { 00131 return &_sfParent; 00132 }
|
|
|
Definition at line 136 of file OSGViewportBase.inl. References _sfCamera. 00137 { 00138 return &_sfCamera; 00139 }
|
|
|
Definition at line 143 of file OSGViewportBase.inl. References _sfRoot. 00144 { 00145 return &_sfRoot; 00146 }
|
|
|
Definition at line 150 of file OSGViewportBase.inl. References _sfBackground. 00151 { 00152 return &_sfBackground; 00153 }
|
|
|
Definition at line 157 of file OSGViewportBase.inl. References _mfForegrounds. 00158 { 00159 return &_mfForegrounds; 00160 }
|
|
|
Definition at line 164 of file OSGViewportBase.inl. References _sfTravMask. 00165 { 00166 return &_sfTravMask; 00167 }
|
|
|
Definition at line 171 of file OSGViewportBase.inl. References _sfDrawTime. 00172 { 00173 return &_sfDrawTime; 00174 }
|
|
|
Definition at line 179 of file OSGViewportBase.inl. References _sfLeft, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Viewport::getPixelLeft(). 00180 { 00181 return _sfLeft.getValue(); 00182 }
|
|
|
Definition at line 186 of file OSGViewportBase.inl. References _sfLeft, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00187 { 00188 return _sfLeft.getValue(); 00189 }
|
|
|
Definition at line 200 of file OSGViewportBase.inl. References _sfRight, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Viewport::getPixelRight(). 00201 { 00202 return _sfRight.getValue(); 00203 }
|
|
|
Definition at line 207 of file OSGViewportBase.inl. References _sfRight, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00208 { 00209 return _sfRight.getValue(); 00210 }
|
|
|
Definition at line 221 of file OSGViewportBase.inl. References _sfBottom, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Viewport::getPixelBottom(). 00222 { 00223 return _sfBottom.getValue(); 00224 }
|
|
|
Definition at line 228 of file OSGViewportBase.inl. References _sfBottom, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00229 { 00230 return _sfBottom.getValue(); 00231 }
|
|
|
Definition at line 242 of file OSGViewportBase.inl. References _sfTop, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Viewport::getPixelTop(). 00243 { 00244 return _sfTop.getValue(); 00245 }
|
|
|
Definition at line 249 of file OSGViewportBase.inl. References _sfTop, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00250 { 00251 return _sfTop.getValue(); 00252 }
|
|
|
Definition at line 263 of file OSGViewportBase.inl. References _sfParent, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Camera::calcViewRay(), osg::Viewport::getPixelBottom(), osg::Viewport::getPixelLeft(), osg::Viewport::getPixelRight(), osg::Viewport::getPixelTop(), and osg::Viewport::isFullWindow(). 00264 { 00265 return _sfParent.getValue(); 00266 }
|
|
|
Definition at line 270 of file OSGViewportBase.inl. References _sfParent, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00271 { 00272 return _sfParent.getValue(); 00273 }
|
|
|
Definition at line 284 of file OSGViewportBase.inl. References _sfCamera, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Viewport::draw(), osg::PassiveViewport::draw(), osg::Viewport::render(), and osg::PassiveViewport::render(). 00285 { 00286 return _sfCamera.getValue(); 00287 }
|
|
|
Definition at line 291 of file OSGViewportBase.inl. References _sfCamera, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00292 { 00293 return _sfCamera.getValue(); 00294 }
|
|
|
Definition at line 305 of file OSGViewportBase.inl. References _sfRoot, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Viewport::draw(), osg::PassiveViewport::draw(), osg::Viewport::render(), and osg::PassiveViewport::render(). 00306 { 00307 return _sfRoot.getValue(); 00308 }
|
|
|
Definition at line 312 of file OSGViewportBase.inl. References _sfRoot, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00313 { 00314 return _sfRoot.getValue(); 00315 }
|
|
|
Definition at line 326 of file OSGViewportBase.inl. References _sfBackground, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Viewport::draw(), osg::PassiveViewport::draw(), osg::Viewport::render(), and osg::PassiveViewport::render(). 00327 { 00328 return _sfBackground.getValue(); 00329 }
|
|
|
Definition at line 333 of file OSGViewportBase.inl. References _sfBackground, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00334 { 00335 return _sfBackground.getValue(); 00336 }
|
|
|
Definition at line 347 of file OSGViewportBase.inl. References _sfTravMask, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Viewport::draw(), and osg::Viewport::render(). 00348 { 00349 return _sfTravMask.getValue(); 00350 }
|
|
|
Definition at line 354 of file OSGViewportBase.inl. References _sfTravMask, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00355 { 00356 return _sfTravMask.getValue(); 00357 }
|
|