#include <OSGColorMaskChunkBase.h>
Inheritance diagram for osg::ColorMaskChunkBase:

Public Types | |
| typedef ColorMaskChunkPtr | Ptr |
| enum | { MaskRFieldId = Inherited::NextFieldId, MaskGFieldId = MaskRFieldId + 1, MaskBFieldId = MaskGFieldId + 1, MaskAFieldId = MaskBFieldId + 1, NextFieldId = MaskAFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFBool * | getSFMaskR (void) |
| Get the ColorMaskChunk::_sfMaskR field. | |
| SFBool * | getSFMaskG (void) |
| Get the ColorMaskChunk::_sfMaskG field. | |
| SFBool * | getSFMaskB (void) |
| Get the ColorMaskChunk::_sfMaskB field. | |
| SFBool * | getSFMaskA (void) |
| Get the ColorMaskChunk::_sfMaskA field. | |
| bool & | getMaskR (void) |
| Get the value of the ColorMaskChunk::_sfMaskR field. | |
| const bool & | getMaskR (void) const |
| Get the value of the ColorMaskChunk::_sfMaskR field. | |
| bool & | getMaskG (void) |
| Get the value of the ColorMaskChunk::_sfMaskG field. | |
| const bool & | getMaskG (void) const |
| Get the value of the ColorMaskChunk::_sfMaskG field. | |
| bool & | getMaskB (void) |
| Get the value of the ColorMaskChunk::_sfMaskB field. | |
| const bool & | getMaskB (void) const |
| Get the value of the ColorMaskChunk::_sfMaskB field. | |
| bool & | getMaskA (void) |
| Get the value of the ColorMaskChunk::_sfMaskA field. | |
| const bool & | getMaskA (void) const |
| Get the value of the ColorMaskChunk::_sfMaskA field. | |
Field Set | |
| *void | setMaskR (const bool &value) |
| Set the value of the ColorMaskChunk::_sfMaskR field. | |
| void | setMaskG (const bool &value) |
| Set the value of the ColorMaskChunk::_sfMaskG field. | |
| void | setMaskB (const bool &value) |
| Set the value of the ColorMaskChunk::_sfMaskB field. | |
| void | setMaskA (const bool &value) |
| Set the value of the ColorMaskChunk::_sfMaskA 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 |
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 ColorMaskChunkPtr | create (void) |
| create a new instance of the class | |
| static ColorMaskChunkPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Public Attributes | |
| static const osg::BitVector | MaskRFieldMask |
| static const osg::BitVector | MaskGFieldMask |
| static const osg::BitVector | MaskBFieldMask |
| static const osg::BitVector | MaskAFieldMask |
| 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 | |
| * | ColorMaskChunkBase (void) |
| ColorMaskChunkBase (const ColorMaskChunkBase &source) | |
Destructors | |
| *virtual | ~ColorMaskChunkBase (void) |
Sync | |
| *void | executeSyncImpl (ColorMaskChunkBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Static Protected Member Functions | |
| static void | initMethod (void) |
Protected Attributes | |
Fields | |
| *SFBool | _sfMaskR |
| SFBool | _sfMaskG |
| SFBool | _sfMaskB |
| SFBool | _sfMaskA |
Private Types | |
| typedef StateChunk | Inherited |
Private Member Functions | |
| void | operator= (const ColorMaskChunkBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| ColorMaskChunk description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 84 of file OSGColorMaskChunkBase.h.
|
|
Reimplemented from osg::StateChunk. Reimplemented in osg::ColorMaskChunk. Definition at line 88 of file OSGColorMaskChunkBase.h. |
|
|
Reimplemented from osg::StateChunkBase. Definition at line 93 of file OSGColorMaskChunkBase.h. |
|
|
Reimplemented from osg::Attachment. Definition at line 95 of file OSGColorMaskChunkBase.h. 00096 { 00097 MaskRFieldId = Inherited::NextFieldId, 00098 MaskGFieldId = MaskRFieldId + 1, 00099 MaskBFieldId = MaskGFieldId + 1, 00100 MaskAFieldId = MaskBFieldId + 1, 00101 NextFieldId = MaskAFieldId + 1 00102 };
|
|
|
Definition at line 197 of file OSGColorMaskChunkBase.cpp. 00197 : 00198 _sfMaskR (bool(true)), 00199 _sfMaskG (bool(true)), 00200 _sfMaskB (bool(true)), 00201 _sfMaskA (bool(true)), 00202 Inherited() 00203 { 00204 }
|
|
|
Definition at line 210 of file OSGColorMaskChunkBase.cpp. 00210 : 00211 _sfMaskR (source._sfMaskR ), 00212 _sfMaskG (source._sfMaskG ), 00213 _sfMaskB (source._sfMaskB ), 00214 _sfMaskA (source._sfMaskA ), 00215 Inherited (source) 00216 { 00217 }
|
|
|
Definition at line 221 of file OSGColorMaskChunkBase.cpp.
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 58 of file OSGColorMaskChunkBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 65 of file OSGColorMaskChunkBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 139 of file OSGColorMaskChunkBase.cpp. References _type. 00140 { 00141 return _type; 00142 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 144 of file OSGColorMaskChunkBase.cpp. References _type. 00145 { 00146 return _type; 00147 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 159 of file OSGColorMaskChunkBase.cpp. 00160 { 00161 return sizeof(ColorMaskChunk); 00162 }
|
|
|
Definition at line 101 of file OSGColorMaskChunkBase.inl. References _sfMaskR. 00102 { 00103 return &_sfMaskR; 00104 }
|
|
|
Definition at line 108 of file OSGColorMaskChunkBase.inl. References _sfMaskG. 00109 { 00110 return &_sfMaskG; 00111 }
|
|
|
Definition at line 115 of file OSGColorMaskChunkBase.inl. References _sfMaskB. 00116 { 00117 return &_sfMaskB; 00118 }
|
|
|
Definition at line 122 of file OSGColorMaskChunkBase.inl. References _sfMaskA. 00123 { 00124 return &_sfMaskA; 00125 }
|
|
|
Definition at line 130 of file OSGColorMaskChunkBase.inl. References _sfMaskR, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ColorMaskChunk::activate(), and osg::ColorMaskChunk::operator==(). 00131 { 00132 return _sfMaskR.getValue(); 00133 }
|
|
|
Definition at line 137 of file OSGColorMaskChunkBase.inl. References _sfMaskR, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00138 { 00139 return _sfMaskR.getValue(); 00140 }
|
|
|
Definition at line 151 of file OSGColorMaskChunkBase.inl. References _sfMaskG, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ColorMaskChunk::activate(), and osg::ColorMaskChunk::operator==(). 00152 { 00153 return _sfMaskG.getValue(); 00154 }
|
|
|
Definition at line 158 of file OSGColorMaskChunkBase.inl. References _sfMaskG, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00159 { 00160 return _sfMaskG.getValue(); 00161 }
|
|
|
Definition at line 172 of file OSGColorMaskChunkBase.inl. References _sfMaskB, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ColorMaskChunk::activate(), and osg::ColorMaskChunk::operator==(). 00173 { 00174 return _sfMaskB.getValue(); 00175 }
|
|
|
Definition at line 179 of file OSGColorMaskChunkBase.inl. References _sfMaskB, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00180 { 00181 return _sfMaskB.getValue(); 00182 }
|
|
|
Definition at line 193 of file OSGColorMaskChunkBase.inl. References _sfMaskA, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ColorMaskChunk::activate(), and osg::ColorMaskChunk::operator==(). 00194 { 00195 return _sfMaskA.getValue(); 00196 }
|
|
|
Definition at line 200 of file OSGColorMaskChunkBase.inl. References _sfMaskA, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00201 { 00202 return _sfMaskA.getValue(); 00203 }
|
|
|
Definition at line 144 of file OSGColorMaskChunkBase.inl. References _sfMaskR, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 165 of file OSGColorMaskChunkBase.inl. References _sfMaskG, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 186 of file OSGColorMaskChunkBase.inl. References _sfMaskB, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 207 of file OSGColorMaskChunkBase.inl. References _sfMaskA, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 227 of file OSGColorMaskChunkBase.cpp. References _sfMaskA, _sfMaskB, _sfMaskG, _sfMaskR, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::StateChunkBase::getBinSize(), MaskAFieldMask, MaskBFieldMask, MaskGFieldMask, MaskRFieldMask, and osg::FieldBits::NoField. 00228 { 00229 UInt32 returnValue = Inherited::getBinSize(whichField); 00230 00231 if(FieldBits::NoField != (MaskRFieldMask & whichField)) 00232 { 00233 returnValue += _sfMaskR.getBinSize(); 00234 } 00235 00236 if(FieldBits::NoField != (MaskGFieldMask & whichField)) 00237 { 00238 returnValue += _sfMaskG.getBinSize(); 00239 } 00240 00241 if(FieldBits::NoField != (MaskBFieldMask & whichField)) 00242 { 00243 returnValue += _sfMaskB.getBinSize(); 00244 } 00245 00246 if(FieldBits::NoField != (MaskAFieldMask & whichField)) 00247 { 00248 returnValue += _sfMaskA.getBinSize(); 00249 } 00250 00251 00252 return returnValue; 00253 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Definition at line 255 of file OSGColorMaskChunkBase.cpp. References _sfMaskA, _sfMaskB, _sfMaskG, _sfMaskR, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::StateChunkBase::copyToBin(), MaskAFieldMask, MaskBFieldMask, MaskGFieldMask, MaskRFieldMask, and osg::FieldBits::NoField. 00257 { 00258 Inherited::copyToBin(pMem, whichField); 00259 00260 if(FieldBits::NoField != (MaskRFieldMask & whichField)) 00261 { 00262 _sfMaskR.copyToBin(pMem); 00263 } 00264 00265 if(FieldBits::NoField != (MaskGFieldMask & whichField)) 00266 { 00267 _sfMaskG.copyToBin(pMem); 00268 } 00269 00270 if(FieldBits::NoField != (MaskBFieldMask & whichField)) 00271 { 00272 _sfMaskB.copyToBin(pMem); 00273 } 00274 00275 if(FieldBits::NoField != (MaskAFieldMask & whichField)) 00276 { 00277 _sfMaskA.copyToBin(pMem); 00278 } 00279 00280 00281 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Definition at line 283 of file OSGColorMaskChunkBase.cpp. References _sfMaskA, _sfMaskB, _sfMaskG, _sfMaskR, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::StateChunkBase::copyFromBin(), MaskAFieldMask, MaskBFieldMask, MaskGFieldMask, MaskRFieldMask, and osg::FieldBits::NoField. 00285 { 00286 Inherited::copyFromBin(pMem, whichField); 00287 00288 if(FieldBits::NoField != (MaskRFieldMask & whichField)) 00289 { 00290 _sfMaskR.copyFromBin(pMem); 00291 } 00292 00293 if(FieldBits::NoField != (MaskGFieldMask & whichField)) 00294 { 00295 _sfMaskG.copyFromBin(pMem); 00296 } 00297 00298 if(FieldBits::NoField != (MaskBFieldMask & whichField)) 00299 { 00300 _sfMaskB.copyFromBin(pMem); 00301 } 00302 00303 if(FieldBits::NoField != (MaskAFieldMask & whichField)) 00304 { 00305 _sfMaskA.copyFromBin(pMem); 00306 } 00307 00308 00309 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 72 of file OSGColorMaskChunkBase.inl. References osg::AttachmentPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 ColorMaskChunkPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = ColorMaskChunkPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 87 of file OSGColorMaskChunkBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 ColorMaskChunkPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 150 of file OSGColorMaskChunkBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00151 { 00152 ColorMaskChunkPtr returnValue; 00153 00154 newPtr(returnValue, dynamic_cast<const ColorMaskChunk *>(this)); 00155 00156 return returnValue; 00157 }
|
|
||||||||||||
|
Definition at line 312 of file OSGColorMaskChunkBase.cpp. References _sfMaskA, _sfMaskB, _sfMaskG, _sfMaskR, osg::StateChunkBase::executeSyncImpl(), MaskAFieldMask, MaskBFieldMask, MaskGFieldMask, MaskRFieldMask, osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by executeSync(). 00314 { 00315 00316 Inherited::executeSyncImpl(pOther, whichField); 00317 00318 if(FieldBits::NoField != (MaskRFieldMask & whichField)) 00319 _sfMaskR.syncWith(pOther->_sfMaskR); 00320 00321 if(FieldBits::NoField != (MaskGFieldMask & whichField)) 00322 _sfMaskG.syncWith(pOther->_sfMaskG); 00323 00324 if(FieldBits::NoField != (MaskBFieldMask & whichField)) 00325 _sfMaskB.syncWith(pOther->_sfMaskB); 00326 00327 if(FieldBits::NoField != (MaskAFieldMask & whichField)) 00328 _sfMaskA.syncWith(pOther->_sfMaskA); 00329 00330 00331 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Definition at line 166 of file OSGColorMaskChunkBase.cpp. References executeSyncImpl(). 00168 { 00169 this->executeSyncImpl((ColorMaskChunkBase *) &other, whichField); 00170 }
|
|
|
|
|
|
Definition at line 48 of file OSGStateChunk.inl. References osg::StateChunk::getClass(), and osg::StateChunkClass::getId(). 00049 { 00050 return getClass()->getId(); 00051 }
|
|
|
|
Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, and osg::VertexProgramChunk. Definition at line 56 of file OSGStateChunk.inl. References osg::StateChunkClass::getId(), and osg::StateChunk::getStaticClass(). 00057 { 00058 return StateChunk::getStaticClass()->getId(); 00059 }
|
|
|
||||||||||||
|
||||||||||||