#include <OSGDepthChunkBase.h>
Inheritance diagram for osg::DepthChunkBase:

Public Types | |
| typedef DepthChunkPtr | Ptr |
| enum | { EnableFieldId = Inherited::NextFieldId, FuncFieldId = EnableFieldId + 1, NearFieldId = FuncFieldId + 1, FarFieldId = NearFieldId + 1, ReadOnlyFieldId = FarFieldId + 1, NextFieldId = ReadOnlyFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFBool * | getSFEnable (void) |
| Get the DepthChunk::_sfEnable field. | |
| SFGLenum * | getSFFunc (void) |
| Get the DepthChunk::_sfFunc field. | |
| SFReal32 * | getSFNear (void) |
| Get the DepthChunk::_sfNear field. | |
| SFReal32 * | getSFFar (void) |
| Get the DepthChunk::_sfFar field. | |
| SFBool * | getSFReadOnly (void) |
| Get the DepthChunk::_sfReadOnly field. | |
| bool & | getEnable (void) |
| Get the value of the DepthChunk::_sfEnable field. | |
| const bool & | getEnable (void) const |
| Get the value of the DepthChunk::_sfEnable field. | |
| GLenum & | getFunc (void) |
| Get the value of the DepthChunk::_sfFunc field. | |
| const GLenum & | getFunc (void) const |
| Get the value of the DepthChunk::_sfFunc field. | |
| Real32 & | getNear (void) |
| Get the value of the DepthChunk::_sfNear field. | |
| const Real32 & | getNear (void) const |
| Get the value of the DepthChunk::_sfNear field. | |
| Real32 & | getFar (void) |
| Get the value of the DepthChunk::_sfFar field. | |
| const Real32 & | getFar (void) const |
| Get the value of the DepthChunk::_sfFar field. | |
| bool & | getReadOnly (void) |
| Get the value of the DepthChunk::_sfReadOnly field. | |
| const bool & | getReadOnly (void) const |
| Get the value of the DepthChunk::_sfReadOnly field. | |
Field Set | |
| *void | setEnable (const bool &value) |
| Set the value of the DepthChunk::_sfEnable field. | |
| void | setFunc (const GLenum &value) |
| Set the value of the DepthChunk::_sfFunc field. | |
| void | setNear (const Real32 &value) |
| Set the value of the DepthChunk::_sfNear field. | |
| void | setFar (const Real32 &value) |
| Set the value of the DepthChunk::_sfFar field. | |
| void | setReadOnly (const bool &value) |
| Set the value of the DepthChunk::_sfReadOnly 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 |
Chunk Class Access | |
| *UInt32 | getClassId (void) const |
| virtual const StateChunkClass * | getClass (void) const |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
State | |
| *virtual void | activate (DrawActionBase *action, UInt32 index=0) |
| virtual void | changeFrom (DrawActionBase *action, StateChunk *old, UInt32 index=0) |
| virtual void | deactivate (DrawActionBase *action, UInt32 index=0) |
| virtual bool | isTransparent (void) const |
Comparison | |
| *virtual Real32 | switchCost (StateChunk *chunk) |
| virtual bool | operator< (const StateChunk &other) const |
| virtual bool | operator== (const StateChunk &other) const |
| virtual bool | operator!= (const StateChunk &other) 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 DepthChunkPtr | create (void) |
| create a new instance of the class | |
| static DepthChunkPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Chunk Class Access | |
| *static UInt32 | getStaticClassId (void) |
| static const StateChunkClass * | getStaticClass (void) |
Static Public Attributes | |
| static const osg::BitVector | EnableFieldMask |
| static const osg::BitVector | FuncFieldMask |
| static const osg::BitVector | NearFieldMask |
| static const osg::BitVector | FarFieldMask |
| static const osg::BitVector | ReadOnlyFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const BitVector | InternalFieldMask = (1 << Attachment::InternalFieldId) |
| static const BitVector | ParentsFieldMask = (1 << Attachment::ParentsFieldId) |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| * | DepthChunkBase (void) |
| DepthChunkBase (const DepthChunkBase &source) | |
Destructors | |
| *virtual | ~DepthChunkBase (void) |
Sync | |
| *void | executeSyncImpl (DepthChunkBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField) |
Static Protected Member Functions | |
| static void | initMethod (void) |
Protected Attributes | |
Fields | |
| *SFBool | _sfEnable |
| SFGLenum | _sfFunc |
| SFReal32 | _sfNear |
| SFReal32 | _sfFar |
| SFBool | _sfReadOnly |
Private Types | |
| typedef StateChunk | Inherited |
Private Member Functions | |
| void | operator= (const DepthChunkBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| DepthChunk description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 85 of file OSGDepthChunkBase.h.
|
|
Reimplemented from osg::StateChunk. Reimplemented in osg::DepthChunk. Definition at line 89 of file OSGDepthChunkBase.h. |
|
|
Reimplemented from osg::StateChunkBase. Definition at line 94 of file OSGDepthChunkBase.h. |
|
|
Reimplemented from osg::Attachment. Definition at line 96 of file OSGDepthChunkBase.h. 00097 { 00098 EnableFieldId = Inherited::NextFieldId, 00099 FuncFieldId = EnableFieldId + 1, 00100 NearFieldId = FuncFieldId + 1, 00101 FarFieldId = NearFieldId + 1, 00102 ReadOnlyFieldId = FarFieldId + 1, 00103 NextFieldId = ReadOnlyFieldId + 1 00104 };
|
|
|
Definition at line 209 of file OSGDepthChunkBase.cpp. 00209 : 00210 _sfEnable (bool(true)), 00211 _sfFunc (GLenum(GL_LEQUAL)), 00212 _sfNear (Real32(-1.f)), 00213 _sfFar (Real32(-1.f)), 00214 _sfReadOnly (bool(false)), 00215 Inherited() 00216 { 00217 }
|
|
|
Definition at line 223 of file OSGDepthChunkBase.cpp. 00223 : 00224 _sfEnable (source._sfEnable ), 00225 _sfFunc (source._sfFunc ), 00226 _sfNear (source._sfNear ), 00227 _sfFar (source._sfFar ), 00228 _sfReadOnly (source._sfReadOnly ), 00229 Inherited (source) 00230 { 00231 }
|
|
|
Definition at line 235 of file OSGDepthChunkBase.cpp.
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 58 of file OSGDepthChunkBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 65 of file OSGDepthChunkBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 151 of file OSGDepthChunkBase.cpp. References _type. 00152 { 00153 return _type; 00154 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 156 of file OSGDepthChunkBase.cpp. References _type. 00157 { 00158 return _type; 00159 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 171 of file OSGDepthChunkBase.cpp. 00172 { 00173 return sizeof(DepthChunk); 00174 }
|
|
|
Definition at line 101 of file OSGDepthChunkBase.inl. References _sfEnable. 00102 { 00103 return &_sfEnable; 00104 }
|
|
|
Definition at line 108 of file OSGDepthChunkBase.inl. References _sfFunc. 00109 { 00110 return &_sfFunc; 00111 }
|
|
|
Definition at line 115 of file OSGDepthChunkBase.inl. References _sfNear. 00116 { 00117 return &_sfNear; 00118 }
|
|
|
Definition at line 122 of file OSGDepthChunkBase.inl. References _sfFar. 00123 { 00124 return &_sfFar; 00125 }
|
|
|
Definition at line 129 of file OSGDepthChunkBase.inl. References _sfReadOnly. 00130 { 00131 return &_sfReadOnly; 00132 }
|
|
|
Definition at line 137 of file OSGDepthChunkBase.inl. References _sfEnable, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::DepthChunk::activate(), osg::DepthChunk::deactivate(), and osg::DepthChunk::operator==(). 00138 { 00139 return _sfEnable.getValue(); 00140 }
|
|
|
Definition at line 144 of file OSGDepthChunkBase.inl. References _sfEnable, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00145 { 00146 return _sfEnable.getValue(); 00147 }
|
|
|
Definition at line 158 of file OSGDepthChunkBase.inl. References _sfFunc, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::DepthChunk::operator==(). 00159 { 00160 return _sfFunc.getValue(); 00161 }
|
|
|
Definition at line 165 of file OSGDepthChunkBase.inl. References _sfFunc, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00166 { 00167 return _sfFunc.getValue(); 00168 }
|
|
|
Definition at line 179 of file OSGDepthChunkBase.inl. References _sfNear, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::DepthChunk::activate(), osg::DepthChunk::deactivate(), and osg::DepthChunk::operator==(). 00180 { 00181 return _sfNear.getValue(); 00182 }
|
|
|
Definition at line 186 of file OSGDepthChunkBase.inl. References _sfNear, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00187 { 00188 return _sfNear.getValue(); 00189 }
|
|
|
Definition at line 200 of file OSGDepthChunkBase.inl. References _sfFar, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::DepthChunk::activate(), osg::DepthChunk::deactivate(), and osg::DepthChunk::operator==(). 00201 { 00202 return _sfFar.getValue(); 00203 }
|
|
|
Definition at line 207 of file OSGDepthChunkBase.inl. References _sfFar, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00208 { 00209 return _sfFar.getValue(); 00210 }
|
|
|
Definition at line 221 of file OSGDepthChunkBase.inl. References _sfReadOnly, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::DepthChunk::activate(), and osg::DepthChunk::operator==(). 00222 { 00223 return _sfReadOnly.getValue(); 00224 }
|
|
|
Definition at line 228 of file OSGDepthChunkBase.inl. References _sfReadOnly, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00229 { 00230 return _sfReadOnly.getValue(); 00231 }
|
|
|
Definition at line 151 of file OSGDepthChunkBase.inl. References _sfEnable, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 172 of file OSGDepthChunkBase.inl. References _sfFunc, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 193 of file OSGDepthChunkBase.inl. References _sfNear, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 214 of file OSGDepthChunkBase.inl. References _sfFar, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 235 of file OSGDepthChunkBase.inl. References _sfReadOnly, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00236 { 00237 _sfReadOnly.setValue(value); 00238 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 241 of file OSGDepthChunkBase.cpp. References _sfEnable, _sfFar, _sfFunc, _sfNear, _sfReadOnly, EnableFieldMask, FarFieldMask, FuncFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::StateChunkBase::getBinSize(), NearFieldMask, osg::FieldBits::NoField, and ReadOnlyFieldMask. 00242 { 00243 UInt32 returnValue = Inherited::getBinSize(whichField); 00244 00245 if(FieldBits::NoField != (EnableFieldMask & whichField)) 00246 { 00247 returnValue += _sfEnable.getBinSize(); 00248 } 00249 00250 if(FieldBits::NoField != (FuncFieldMask & whichField)) 00251 { 00252 returnValue += _sfFunc.getBinSize(); 00253 } 00254 00255 if(FieldBits::NoField != (NearFieldMask & whichField)) 00256 { 00257 returnValue += _sfNear.getBinSize(); 00258 } 00259 00260 if(FieldBits::NoField != (FarFieldMask & whichField)) 00261 { 00262 returnValue += _sfFar.getBinSize(); 00263 } 00264 00265 if(FieldBits::NoField != (ReadOnlyFieldMask & whichField)) 00266 { 00267 returnValue += _sfReadOnly.getBinSize(); 00268 } 00269 00270 00271 return returnValue; 00272 }
|
|
||||||||||||
|
||||||||||||
|
|
Reimplemented from osg::Attachment. Definition at line 72 of file OSGDepthChunkBase.inl. References osg::AttachmentPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 DepthChunkPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = DepthChunkPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 87 of file OSGDepthChunkBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 DepthChunkPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 162 of file OSGDepthChunkBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00163 { 00164 DepthChunkPtr returnValue; 00165 00166 newPtr(returnValue, dynamic_cast<const DepthChunk *>(this)); 00167 00168 return returnValue; 00169 }
|
|
||||||||||||
|
Definition at line 341 of file OSGDepthChunkBase.cpp. References _sfEnable, _sfFar, _sfFunc, _sfNear, _sfReadOnly, EnableFieldMask, osg::StateChunkBase::executeSyncImpl(), FarFieldMask, FuncFieldMask, NearFieldMask, osg::FieldBits::NoField, ReadOnlyFieldMask, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by executeSync(). 00343 { 00344 00345 Inherited::executeSyncImpl(pOther, whichField); 00346 00347 if(FieldBits::NoField != (EnableFieldMask & whichField)) 00348 _sfEnable.syncWith(pOther->_sfEnable); 00349 00350 if(FieldBits::NoField != (FuncFieldMask & whichField)) 00351 _sfFunc.syncWith(pOther->_sfFunc); 00352 00353 if(FieldBits::NoField != (NearFieldMask & whichField)) 00354 _sfNear.syncWith(pOther->_sfNear); 00355 00356 if(FieldBits::NoField != (FarFieldMask & whichField)) 00357 _sfFar.syncWith(pOther->_sfFar); 00358 00359 if(FieldBits::NoField != (ReadOnlyFieldMask & whichField)) 00360 _sfReadOnly.syncWith(pOther->_sfReadOnly); 00361 00362 00363 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Definition at line 178 of file OSGDepthChunkBase.cpp. References executeSyncImpl(). 00180 { 00181 this->executeSyncImpl((DepthChunkBase *) &other, whichField); 00182 }
|
|
|
|
|
|
Definition at line 48 of file OSGStateChunk.inl. References osg::StateChunk::getClass(), and osg::StateChunkClass::getId(). 00049 { 00050 return getClass()->getId(); 00051 }
|
|