#include <OSGBackgroundBase.h>
Inheritance diagram for OSG::BackgroundBase:

dcast | |
| typedef AttachmentContainer | Self |
| typedef FieldContainerAttachment | AttachmentObj |
| typedef FieldContainerAttachmentPtr | AttachmentObjPtr |
| typedef SFFieldContainerAttachmentPtrMap | SFAttachmentObjPtrMap |
| typedef SFAttachmentObjPtrMap::StoredType | AttachmentObjPtrMap |
| typedef AttachmentObjPtrMap::iterator | AttachmentObjPtrMapIt |
| OSG_GEN_INTERNALPTR (AttachmentContainer) | |
Type definitions | |
| static const bool | isNodeCore = false |
| OSG_GEN_INTERNALPTR (FieldContainer) | |
| OSG_RC_FIRST_FIELD_DECL (ChangedCallbacks) | |
| OSG_RC_LAST_FIELD_DECL (ChangedCallbacks) | |
Public Types | |
| enum | { ClearStencilBitFieldId = Inherited::NextFieldId, DepthFieldId = ClearStencilBitFieldId + 1, NextFieldId = DepthFieldId + 1 } |
| typedef AttachmentContainer | Inherited |
| typedef AttachmentContainer | ParentContainer |
| typedef Inherited::TypeObject | TypeObject |
| typedef TypeObject::InitPhase | InitPhase |
Type definitions | |
| typedef Field *(ReflexiveContainer::*) | FieldEditMethod (void) |
| typedef const Field *(ReflexiveContainer::*) | FieldGetMethod (void) const |
Public Member Functions | |
| OSG_GEN_INTERNALPTR (Background) | |
FieldContainer Get | |
| virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| SFInt32 * | editSFClearStencilBit (void) |
| const SFInt32 * | getSFClearStencilBit (void) const |
| SFReal32 * | editSFDepth (void) |
| const SFReal32 * | getSFDepth (void) const |
| Int32 & | editClearStencilBit (void) |
| Get the value of the Background::_sfClearStencilBit field. | |
| const Int32 & | getClearStencilBit (void) const |
| Get the value of the Background::_sfClearStencilBit field. | |
| Real32 & | editDepth (void) |
| Get the value of the Background::_sfDepth field. | |
| const Real32 & | getDepth (void) const |
| Get the value of the Background::_sfDepth field. | |
Field Set | |
| void | setClearStencilBit (const Int32 &value) |
| Set the value of the Background::_sfClearStencilBit field. | |
| void | setDepth (const Real32 &value) |
| Set the value of the Background::_sfDepth field. | |
Binary Access | |
| virtual UInt32 | getBinSize (ConstFieldMaskArg whichField) |
| virtual void | copyToBin (BinaryDataHandler &pMem, ConstFieldMaskArg whichField) |
| virtual void | copyFromBin (BinaryDataHandler &pMem, ConstFieldMaskArg whichField) |
Constructors | |
| OSG_RC_FIRST_FIELD_DECL (Attachments) | |
| OSG_RC_LAST_FIELD_DECL (Attachments) | |
Set | |
| void | addAttachment (const AttachmentObjPtr attachmentP, UInt16 binding=0) |
| void | subAttachment (const AttachmentObjPtr attachmentP, UInt16 binding=0) |
| AttachmentObjPtr | findAttachment (UInt32 groupId, UInt16 binding=0) |
| AttachmentObjPtr | findAttachment (const FieldContainerType &type, UInt16 binding=0) |
your_category | |
| const SFAttachmentObjPtrMap * | getSFAttachments (void) const |
Dump | |
| virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
Get | |
| virtual ObjPtr | shallowCopy (void) const=0 |
Set | |
| virtual void | changed (ConstFieldMaskArg whichField, UInt32 origin, BitVector details) |
| void | callChangedFunctors (ConstFieldMaskArg whichField) |
Container Access | |
| UInt32 | addChangedFunctor (ChangedFunctor func, std::string createSymbol) |
| template<class FunctorT> | |
| void | subChangedFunctor (FunctorT func) |
| void | subChangedFunctor (UInt32 uiId) |
| void | clearChangedFunctors (void) |
Field Flags | |
| const FieldFlags * | getFieldFlags (void) |
Helper | |
| OSG_SYSTEM_DLLMAPPING void | addReference (void) |
| OSG_SYSTEM_DLLMAPPING void | subReference (void) |
| OSG_SYSTEM_DLLMAPPING void | subReferenceLocalVar (void) |
| OSG_SYSTEM_DLLMAPPING Int32 | getRefCount (void) const |
Comparison | |
| virtual OSG_SYSTEM_DLLMAPPING void | invalidateVolume (void) |
dcast | |
| OSG_SYSTEM_DLLMAPPING UInt32 | getTypeId (void) const |
| OSG_SYSTEM_DLLMAPPING UInt16 | getGroupId (void) const |
| OSG_SYSTEM_DLLMAPPING const Char8 * | getTypeName (void) const |
Get Field | |
| OSG_SYSTEM_DLLMAPPING UInt32 | getNumFields (void) const |
| OSG_SYSTEM_DLLMAPPING EditFieldHandlePtr | editField (UInt32 fieldId) |
| OSG_SYSTEM_DLLMAPPING EditFieldHandlePtr | editField (const Char8 *fieldName) |
| OSG_SYSTEM_DLLMAPPING GetFieldHandlePtr | getField (UInt32 fieldId) const |
| OSG_SYSTEM_DLLMAPPING GetFieldHandlePtr | getField (const Char8 *fieldName) const |
Get Field Description | |
| OSG_SYSTEM_DLLMAPPING FieldDescriptionBase * | getFieldDescription (UInt32 fieldId) |
| OSG_SYSTEM_DLLMAPPING FieldDescriptionBase * | getFieldDescription (const Char8 *fieldName) |
Comparison | |
| OSG_SYSTEM_DLLMAPPING EditFieldHandlePtr | invalidEditField (void) |
| OSG_SYSTEM_DLLMAPPING GetFieldHandlePtr | invalidGetField (void) 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 | |
| static UInt16 | getClassGroupId (void) |
| access the type of the class | |
Public Attributes | |
General Fieldcontainer Declaration | |
| OSG_ABSTR_FIELD_CONTAINER_DECL | |
Static Public Attributes | |
| static const OSG::BitVector | ClearStencilBitFieldMask |
| static const OSG::BitVector | DepthFieldMask |
| static const OSG::BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| BackgroundBase (void) | |
| BackgroundBase (const BackgroundBase &source) | |
Destructors | |
| virtual | ~BackgroundBase (void) |
Generic Field Access | |
| GetFieldHandlePtr | getHandleClearStencilBit (void) const |
| EditFieldHandlePtr | editHandleClearStencilBit (void) |
| GetFieldHandlePtr | getHandleDepth (void) const |
| EditFieldHandlePtr | editHandleDepth (void) |
Sync | |
| virtual void | resolveLinks (void) |
Sync | |
| EditFieldHandlePtr | editHandleAttachments (void) |
| GetFieldHandlePtr | getHandleAttachments (void) const |
Edit | |
| OSG_SYSTEM_DLLMAPPING void | subReferenceUnresolved (void) |
MT Construction | |
| OSG_SYSTEM_DLLMAPPING void | onCreateAspect (const FieldContainer *createAspect, const FieldContainer *source=NULL) |
| OSG_SYSTEM_DLLMAPPING void | onCreate (const FieldContainer *source=NULL) |
| virtual OSG_SYSTEM_DLLMAPPING void | onDestroy (UInt32 uiContainerId) |
Changed | |
| OSG_SYSTEM_DLLMAPPING void | onCreate (const ReflexiveContainer *source=NULL) |
| virtual OSG_SYSTEM_DLLMAPPING void | onDestroyAspect (UInt32 uiContainerId, UInt32 uiAspect) |
MT Construction | |
| virtual OSG_SYSTEM_DLLMAPPING bool | deregister (UInt32 uiContainerId) |
MT Construction | |
| OSG_SYSTEM_DLLMAPPING void | registerChangedContainer (void) |
| virtual OSG_SYSTEM_DLLMAPPING void | registerChangedContainerV (void) |
Local Edit | |
| void | editSField (ConstFieldMaskArg whichField) |
| template<class FieldT> | |
| void | editMField (ConstFieldMaskArg whichField, FieldT &oField) |
MT Destruction | |
| void | execEndEdit (ConstFieldMaskArg whichField) |
| void | clearChangeEntry (ContainerChangeEntry *pRef) |
Edit | |
| OSG_SYSTEM_DLLMAPPING void | setId (UInt32 uiContainerId) |
| OSG_SYSTEM_DLLMAPPING UInt32 | getId (void) const |
Static Protected Member Functions | |
| static void | classDescInserter (TypeObject &oType) |
| static Char8 * | getClassname (void) |
Fields | |
| static void | classDescInserter (TypeObject &oType) |
MT Construction | |
| template<class ObjectT> | |
| static void | newPtr (typename ObjectT::ObjPtr &result, const ObjectT *prototypeP) |
| template<class ObjectT> | |
| static void | newPtr (typename ObjectT::ObjPtr &result) |
Init | |
| static void | initMethod (InitPhase ePhase) |
Protected Attributes | |
Fields | |
| SFInt32 | _sfClearStencilBit |
| SFReal32 | _sfDepth |
Fields | |
| SFAttachmentObjPtrMap | _sfAttachments |
Type information | |
| FieldFlags * | _pFieldFlags |
| MFChangedFunctorCallback | _mfChangedFunctors |
| Int32 | _iRefCount |
Member | |
| BitVector | _bvChanged |
| ContainerChangeEntry * | _pContainerChanges |
| UInt32 | _uiContainerId |
Static Protected Attributes | |
| static TypeObject | _type |
Private Member Functions | |
| void | operator= (const BackgroundBase &source) |
Definition at line 79 of file OSGBackgroundBase.h.
Reimplemented from OSG::AttachmentContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackground, OSG::TextureGrabBackground, OSG::SkyBackground, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::GradientBackground, OSG::SkyBackgroundBase, OSG::SolidBackground, OSG::GradientBackgroundBase, OSG::TextureBackground, OSG::SolidBackgroundBase, OSG::PassiveBackground, OSG::DepthClearBackground, and OSG::Background.
Definition at line 83 of file OSGBackgroundBase.h.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 84 of file OSGBackgroundBase.h.
Reimplemented from OSG::AttachmentContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 86 of file OSGBackgroundBase.h.
Reimplemented from OSG::ReflexiveContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 87 of file OSGBackgroundBase.h.
typedef AttachmentContainer OSG::AttachmentContainer::Self [inherited] |
Reimplemented from OSG::FieldContainer.
Reimplemented in OSG::ScreenLOD, OSG::MultiCore, OSG::ChunkOverrideGroup, OSG::Node, OSG::StageHandlerMixin< ContainerMixinHead< ShadowMapEngineDesc > >, and OSG::StageHandlerMixin< ContainerMixinHead< StageDesc > >.
Definition at line 68 of file OSGAttachmentContainer.h.
typedef FieldContainerAttachment OSG::AttachmentContainer::AttachmentObj [inherited] |
Definition at line 70 of file OSGAttachmentContainer.h.
typedef FieldContainerAttachmentPtr OSG::AttachmentContainer::AttachmentObjPtr [inherited] |
Definition at line 71 of file OSGAttachmentContainer.h.
typedef SFFieldContainerAttachmentPtrMap OSG::AttachmentContainer::SFAttachmentObjPtrMap [inherited] |
Definition at line 72 of file OSGAttachmentContainer.h.
typedef SFAttachmentObjPtrMap::StoredType OSG::AttachmentContainer::AttachmentObjPtrMap [inherited] |
Definition at line 74 of file OSGAttachmentContainer.h.
typedef AttachmentObjPtrMap::iterator OSG::AttachmentContainer::AttachmentObjPtrMapIt [inherited] |
Definition at line 75 of file OSGAttachmentContainer.h.
typedef Field*(ReflexiveContainer::*) OSG::ReflexiveContainer::FieldEditMethod(void) [inherited] |
Definition at line 79 of file OSGReflexiveContainer.h.
typedef const Field*(ReflexiveContainer::*) OSG::ReflexiveContainer::FieldGetMethod(void) const [inherited] |
Definition at line 81 of file OSGReflexiveContainer.h.
| anonymous enum |
Definition at line 95 of file OSGBackgroundBase.h.
00096 { 00097 ClearStencilBitFieldId = Inherited::NextFieldId, 00098 DepthFieldId = ClearStencilBitFieldId + 1, 00099 NextFieldId = DepthFieldId + 1 00100 };
| OSG::BackgroundBase::BackgroundBase | ( | void | ) | [protected] |
Definition at line 321 of file OSGBackgroundBase.cpp.
00321 : 00322 Inherited(), 00323 _sfClearStencilBit (Int32(-1)), 00324 _sfDepth (Real32(1.f)) 00325 { 00326 }
| OSG::BackgroundBase::BackgroundBase | ( | const BackgroundBase & | source | ) | [protected] |
Definition at line 328 of file OSGBackgroundBase.cpp.
00328 : 00329 Inherited(source), 00330 _sfClearStencilBit (source._sfClearStencilBit ), 00331 _sfDepth (source._sfDepth ) 00332 { 00333 }
| OSG::BackgroundBase::~BackgroundBase | ( | void | ) | [protected, virtual] |
| OSG::BackgroundBase::OSG_GEN_INTERNALPTR | ( | Background | ) |
| OSG::FieldContainerType & OSG::BackgroundBase::getClassType | ( | void | ) | [inline, static] |
Reimplemented from OSG::FieldContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 56 of file OSGBackgroundBase.inl.
References _type.
00057 { 00058 return _type; 00059 }
| OSG::UInt32 OSG::BackgroundBase::getClassTypeId | ( | void | ) | [inline, static] |
Reimplemented from OSG::FieldContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 63 of file OSGBackgroundBase.inl.
References _type, and OSG::TypeBase::getId().
| OSG::UInt16 OSG::BackgroundBase::getClassGroupId | ( | void | ) | [inline, static] |
Reimplemented from OSG::FieldContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 69 of file OSGBackgroundBase.inl.
References _type, and OSG::ReflexiveContainerType::getGroupId().
00070 { 00071 return _type.getGroupId(); 00072 }
| FieldContainerType & OSG::BackgroundBase::getType | ( | void | ) | [virtual] |
Reimplemented from OSG::FieldContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 208 of file OSGBackgroundBase.cpp.
References _type.
00209 { 00210 return _type; 00211 }
| const FieldContainerType & OSG::BackgroundBase::getType | ( | void | ) | const [virtual] |
Reimplemented from OSG::FieldContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 213 of file OSGBackgroundBase.cpp.
References _type.
00214 { 00215 return _type; 00216 }
| UInt32 OSG::BackgroundBase::getContainerSize | ( | void | ) | const [virtual] |
Implements OSG::ReflexiveContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 218 of file OSGBackgroundBase.cpp.
| SFInt32 * OSG::BackgroundBase::editSFClearStencilBit | ( | void | ) |
Definition at line 226 of file OSGBackgroundBase.cpp.
References _sfClearStencilBit, ClearStencilBitFieldMask, and OSG::FieldContainer::editSField().
00227 { 00228 editSField(ClearStencilBitFieldMask); 00229 00230 return &_sfClearStencilBit; 00231 }
| const SFInt32 * OSG::BackgroundBase::getSFClearStencilBit | ( | void | ) | const |
Definition at line 233 of file OSGBackgroundBase.cpp.
References _sfClearStencilBit.
00234 { 00235 return &_sfClearStencilBit; 00236 }
| SFReal32 * OSG::BackgroundBase::editSFDepth | ( | void | ) |
Definition at line 245 of file OSGBackgroundBase.cpp.
References _sfDepth, DepthFieldMask, and OSG::FieldContainer::editSField().
00246 { 00247 editSField(DepthFieldMask); 00248 00249 return &_sfDepth; 00250 }
| const SFReal32 * OSG::BackgroundBase::getSFDepth | ( | void | ) | const |
Definition at line 252 of file OSGBackgroundBase.cpp.
References _sfDepth.
00253 { 00254 return &_sfDepth; 00255 }
| Int32 & OSG::BackgroundBase::editClearStencilBit | ( | void | ) | [inline] |
Definition at line 79 of file OSGBackgroundBase.inl.
References _sfClearStencilBit, ClearStencilBitFieldMask, and OSG::FieldContainer::editSField().
00080 { 00081 editSField(ClearStencilBitFieldMask); 00082 00083 return _sfClearStencilBit.getValue(); 00084 }
| const Int32 & OSG::BackgroundBase::getClearStencilBit | ( | void | ) | const [inline] |
Definition at line 88 of file OSGBackgroundBase.inl.
References _sfClearStencilBit.
Referenced by OSG::TextureBackground::clear(), OSG::SolidBackground::clear(), OSG::SkyBackground::clear(), OSG::PolygonBackground::clear(), OSG::GradientBackground::clear(), and OSG::DepthClearBackground::clear().
00089 { 00090 return _sfClearStencilBit.getValue(); 00091 }
| Real32 & OSG::BackgroundBase::editDepth | ( | void | ) | [inline] |
Definition at line 112 of file OSGBackgroundBase.inl.
References _sfDepth, DepthFieldMask, and OSG::FieldContainer::editSField().
00113 { 00114 editSField(DepthFieldMask); 00115 00116 return _sfDepth.getValue(); 00117 }
| const Real32 & OSG::BackgroundBase::getDepth | ( | void | ) | const [inline] |
Definition at line 121 of file OSGBackgroundBase.inl.
References _sfDepth.
Referenced by OSG::SolidBackground::clear(), and OSG::DepthClearBackground::clear().
00122 { 00123 return _sfDepth.getValue(); 00124 }
| void OSG::BackgroundBase::setClearStencilBit | ( | const Int32 & | value | ) | [inline] |
Definition at line 103 of file OSGBackgroundBase.inl.
References _sfClearStencilBit, ClearStencilBitFieldMask, and OSG::FieldContainer::editSField().
00104 { 00105 editSField(ClearStencilBitFieldMask); 00106 00107 _sfClearStencilBit.setValue(value); 00108 }
| void OSG::BackgroundBase::setDepth | ( | const Real32 & | value | ) | [inline] |
Definition at line 136 of file OSGBackgroundBase.inl.
References _sfDepth, DepthFieldMask, and OSG::FieldContainer::editSField().
00137 { 00138 editSField(DepthFieldMask); 00139 00140 _sfDepth.setValue(value); 00141 }
| UInt32 OSG::BackgroundBase::getBinSize | ( | ConstFieldMaskArg | whichField | ) | [virtual] |
Reimplemented from OSG::AttachmentContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 270 of file OSGBackgroundBase.cpp.
References _sfClearStencilBit, _sfDepth, ClearStencilBitFieldMask, DepthFieldMask, OSG::ReflexiveContainer::getBinSize(), and OSG::FieldBits::NoField.
Referenced by OSG::TextureBackgroundBase::getBinSize(), OSG::SolidBackgroundBase::getBinSize(), OSG::SkyBackgroundBase::getBinSize(), OSG::PolygonBackgroundBase::getBinSize(), OSG::PassiveBackgroundBase::getBinSize(), OSG::GradientBackgroundBase::getBinSize(), and OSG::DepthClearBackgroundBase::getBinSize().
00271 { 00272 UInt32 returnValue = Inherited::getBinSize(whichField); 00273 00274 if(FieldBits::NoField != (ClearStencilBitFieldMask & whichField)) 00275 { 00276 returnValue += _sfClearStencilBit.getBinSize(); 00277 } 00278 if(FieldBits::NoField != (DepthFieldMask & whichField)) 00279 { 00280 returnValue += _sfDepth.getBinSize(); 00281 } 00282 00283 return returnValue; 00284 }
| void OSG::BackgroundBase::copyToBin | ( | BinaryDataHandler & | pMem, | |
| ConstFieldMaskArg | whichField | |||
| ) | [virtual] |
Reimplemented from OSG::AttachmentContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 286 of file OSGBackgroundBase.cpp.
References _sfClearStencilBit, _sfDepth, ClearStencilBitFieldMask, OSG::ReflexiveContainer::copyToBin(), DepthFieldMask, and OSG::FieldBits::NoField.
Referenced by OSG::TextureBackgroundBase::copyToBin(), OSG::SolidBackgroundBase::copyToBin(), OSG::SkyBackgroundBase::copyToBin(), OSG::PolygonBackgroundBase::copyToBin(), OSG::PassiveBackgroundBase::copyToBin(), OSG::GradientBackgroundBase::copyToBin(), and OSG::DepthClearBackgroundBase::copyToBin().
00288 { 00289 Inherited::copyToBin(pMem, whichField); 00290 00291 if(FieldBits::NoField != (ClearStencilBitFieldMask & whichField)) 00292 { 00293 _sfClearStencilBit.copyToBin(pMem); 00294 } 00295 if(FieldBits::NoField != (DepthFieldMask & whichField)) 00296 { 00297 _sfDepth.copyToBin(pMem); 00298 } 00299 }
| void OSG::BackgroundBase::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| ConstFieldMaskArg | whichField | |||
| ) | [virtual] |
Reimplemented from OSG::AttachmentContainer.
Reimplemented in OSG::TextureBackgroundBase, OSG::PassiveBackgroundBase, OSG::DepthClearBackgroundBase, OSG::PolygonBackgroundBase, OSG::TextureGrabBackgroundBase, OSG::SkyBackgroundBase, OSG::GradientBackgroundBase, and OSG::SolidBackgroundBase.
Definition at line 301 of file OSGBackgroundBase.cpp.
References _sfClearStencilBit, _sfDepth, ClearStencilBitFieldMask, OSG::FieldContainer::copyFromBin(), DepthFieldMask, and OSG::FieldBits::NoField.
Referenced by OSG::TextureBackgroundBase::copyFromBin(), OSG::SolidBackgroundBase::copyFromBin(), OSG::SkyBackgroundBase::copyFromBin(), OSG::PolygonBackgroundBase::copyFromBin(), OSG::PassiveBackgroundBase::copyFromBin(), OSG::GradientBackgroundBase::copyFromBin(), and OSG::DepthClearBackgroundBase::copyFromBin().
00303 { 00304 Inherited::copyFromBin(pMem, whichField); 00305 00306 if(FieldBits::NoField != (ClearStencilBitFieldMask & whichField)) 00307 { 00308 _sfClearStencilBit.copyFromBin(pMem); 00309 } 00310 if(FieldBits::NoField != (DepthFieldMask & whichField)) 00311 { 00312 _sfDepth.copyFromBin(pMem); 00313 } 00314 }
| void OSG::BackgroundBase::classDescInserter | ( | TypeObject & | oType | ) | [static, protected] |
Reimplemented from OSG::AttachmentContainer.
Definition at line 105 of file OSGBackgroundBase.cpp.
References OSG::ReflexiveContainerType::addInitialDesc(), ClearStencilBitFieldId, ClearStencilBitFieldMask, DepthFieldId, DepthFieldMask, editHandleClearStencilBit(), editHandleDepth(), getHandleClearStencilBit(), getHandleDepth(), and OSG::Field::SFDefaultFlags.
00106 { 00107 FieldDescriptionBase *pDesc = NULL; 00108 00109 00110 pDesc = new SFInt32::Description( 00111 SFInt32::getClassType(), 00112 "clearStencilBit", 00113 "Usually 0 is used to clear all stencil bitplanes \n" 00114 "(clear is deactivated if smaller zero).\n", 00115 ClearStencilBitFieldId, ClearStencilBitFieldMask, 00116 false, 00117 Field::SFDefaultFlags, 00118 static_cast<FieldEditMethodSig>(&BackgroundBase::editHandleClearStencilBit), 00119 static_cast<FieldGetMethodSig >(&BackgroundBase::getHandleClearStencilBit)); 00120 00121 oType.addInitialDesc(pDesc); 00122 00123 pDesc = new SFReal32::Description( 00124 SFReal32::getClassType(), 00125 "depth", 00126 "Depth value for clear, defaults to 1.\n", 00127 DepthFieldId, DepthFieldMask, 00128 false, 00129 Field::SFDefaultFlags, 00130 static_cast<FieldEditMethodSig>(&BackgroundBase::editHandleDepth), 00131 static_cast<FieldGetMethodSig >(&BackgroundBase::getHandleDepth)); 00132 00133 oType.addInitialDesc(pDesc); 00134 }
| Char8 * OSG::BackgroundBase::getClassname | ( | void | ) | [inline, static, protected] |