SimpleTexturedMaterial Base Class.
#include <OSGSimpleTexturedMaterialBase.h>
Definition at line 85 of file OSGSimpleTexturedMaterialBase.h.
typedef SimpleMaterial osg::SimpleTexturedMaterialBase::Inherited [private] |
Reimplemented from osg::SimpleMaterial.
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 89 of file OSGSimpleTexturedMaterialBase.h.
Reimplemented from osg::SimpleMaterialBase.
Definition at line 94 of file OSGSimpleTexturedMaterialBase.h.
typedef TypedFunctor1Base<Action::ResultE, PtrCallArg<DrawActionBase> > osg::Material::DrawFunctor [inherited] |
Definition at line 107 of file OSGMaterial.h.
| anonymous enum |
Definition at line 96 of file OSGSimpleTexturedMaterialBase.h.
00097 { 00098 ImageFieldId = Inherited::NextFieldId, 00099 MinFilterFieldId = ImageFieldId + 1, 00100 MagFilterFieldId = MinFilterFieldId + 1, 00101 EnvModeFieldId = MagFilterFieldId + 1, 00102 EnvMapFieldId = EnvModeFieldId + 1, 00103 NextFieldId = EnvMapFieldId + 1 00104 };
anonymous enum [inherited] |
| AmbientFieldId | |
| DiffuseFieldId | |
| SpecularFieldId | |
| ShininessFieldId | |
| EmissionFieldId | |
| TransparencyFieldId | |
| LitFieldId | |
| ColorMaterialFieldId | |
| NextFieldId |
Definition at line 99 of file OSGSimpleMaterialBase.h.
00100 { 00101 AmbientFieldId = Inherited::NextFieldId, 00102 DiffuseFieldId = AmbientFieldId + 1, 00103 SpecularFieldId = DiffuseFieldId + 1, 00104 ShininessFieldId = SpecularFieldId + 1, 00105 EmissionFieldId = ShininessFieldId + 1, 00106 TransparencyFieldId = EmissionFieldId + 1, 00107 LitFieldId = TransparencyFieldId + 1, 00108 ColorMaterialFieldId = LitFieldId + 1, 00109 NextFieldId = ColorMaterialFieldId + 1 00110 };
anonymous enum [inherited] |
Definition at line 93 of file OSGChunkMaterialBase.h.
00094 { 00095 ChunksFieldId = Inherited::NextFieldId, 00096 SlotsFieldId = ChunksFieldId + 1, 00097 NextFieldId = SlotsFieldId + 1 00098 };
anonymous enum [inherited] |
Definition at line 93 of file OSGMaterialBase.h.
00094 { 00095 SortKeyFieldId = Inherited::NextFieldId, 00096 TransparencyModeFieldId = SortKeyFieldId + 1, 00097 NextFieldId = TransparencyModeFieldId + 1 00098 };
anonymous enum [inherited] |
Definition at line 78 of file OSGAttachmentContainerImpl.h.
00079 { 00080 AttachmentsFieldId = Inherited::NextFieldId, 00081 NextFieldId = AttachmentsFieldId + 1 00082 };
anonymous enum [inherited] |
Definition at line 73 of file OSGFieldContainerImpl.h.
00073 { NextFieldId = 1 };
| osg::SimpleTexturedMaterialBase::SimpleTexturedMaterialBase | ( | void | ) | [protected] |
Definition at line 212 of file OSGSimpleTexturedMaterialBase.cpp.
00212 : 00213 _sfImage (), 00214 _sfMinFilter (GLenum(GL_LINEAR_MIPMAP_LINEAR)), 00215 _sfMagFilter (GLenum(GL_LINEAR)), 00216 _sfEnvMode (GLenum(GL_REPLACE)), 00217 _sfEnvMap (bool(false)), 00218 Inherited() 00219 { 00220 }
| osg::SimpleTexturedMaterialBase::SimpleTexturedMaterialBase | ( | const SimpleTexturedMaterialBase & | source | ) | [protected] |
Definition at line 226 of file OSGSimpleTexturedMaterialBase.cpp.
00226 : 00227 _sfImage (source._sfImage ), 00228 _sfMinFilter (source._sfMinFilter ), 00229 _sfMagFilter (source._sfMagFilter ), 00230 _sfEnvMode (source._sfEnvMode ), 00231 _sfEnvMap (source._sfEnvMap ), 00232 Inherited (source) 00233 { 00234 }
| osg::SimpleTexturedMaterialBase::~SimpleTexturedMaterialBase | ( | void | ) | [protected, virtual] |
Definition at line 238 of file OSGSimpleTexturedMaterialBase.cpp.
| osg::FieldContainerType & osg::SimpleTexturedMaterialBase::getClassType | ( | void | ) | [inline, static] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 58 of file OSGSimpleTexturedMaterialBase.inl.
References _type.
Referenced by create().
00059 { 00060 return _type; 00061 }
| osg::UInt32 osg::SimpleTexturedMaterialBase::getClassTypeId | ( | void | ) | [inline, static] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 65 of file OSGSimpleTexturedMaterialBase.inl.
References _type, and osg::TypeBase::getId().
00066 { 00067 return _type.getId(); 00068 }
| FieldContainerType & osg::SimpleTexturedMaterialBase::getType | ( | void | ) | [virtual] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 153 of file OSGSimpleTexturedMaterialBase.cpp.
References _type.
00154 { 00155 return _type; 00156 }
| const FieldContainerType & osg::SimpleTexturedMaterialBase::getType | ( | void | ) | const [virtual] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 158 of file OSGSimpleTexturedMaterialBase.cpp.
References _type.
00159 { 00160 return _type; 00161 }
| UInt32 osg::SimpleTexturedMaterialBase::getContainerSize | ( | void | ) | const [virtual] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 173 of file OSGSimpleTexturedMaterialBase.cpp.
| SFImagePtr * osg::SimpleTexturedMaterialBase::editSFImage | ( | void | ) | [inline] |
Definition at line 108 of file OSGSimpleTexturedMaterialBase.inl.
References _sfImage.
00109 { 00110 return &_sfImage; 00111 }
| const SFImagePtr * osg::SimpleTexturedMaterialBase::getSFImage | ( | void | ) | const [inline] |
Definition at line 101 of file OSGSimpleTexturedMaterialBase.inl.
References _sfImage.
00102 { 00103 return &_sfImage; 00104 }
| SFImagePtr * osg::SimpleTexturedMaterialBase::getSFImage | ( | void | ) | [inline] |
Definition at line 116 of file OSGSimpleTexturedMaterialBase.inl.
References _sfImage.
00117 { 00118 return &_sfImage; 00119 }
| SFGLenum * osg::SimpleTexturedMaterialBase::editSFMinFilter | ( | void | ) | [inline] |
Definition at line 131 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMinFilter.
00132 { 00133 return &_sfMinFilter; 00134 }
| const SFGLenum * osg::SimpleTexturedMaterialBase::getSFMinFilter | ( | void | ) | const [inline] |
Definition at line 124 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMinFilter.
00125 { 00126 return &_sfMinFilter; 00127 }
| SFGLenum * osg::SimpleTexturedMaterialBase::getSFMinFilter | ( | void | ) | [inline] |
Definition at line 139 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMinFilter.
00140 { 00141 return &_sfMinFilter; 00142 }
| SFGLenum * osg::SimpleTexturedMaterialBase::editSFMagFilter | ( | void | ) | [inline] |
Definition at line 154 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMagFilter.
00155 { 00156 return &_sfMagFilter; 00157 }
| const SFGLenum * osg::SimpleTexturedMaterialBase::getSFMagFilter | ( | void | ) | const [inline] |
Definition at line 147 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMagFilter.
00148 { 00149 return &_sfMagFilter; 00150 }
| SFGLenum * osg::SimpleTexturedMaterialBase::getSFMagFilter | ( | void | ) | [inline] |
Definition at line 162 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMagFilter.
00163 { 00164 return &_sfMagFilter; 00165 }
| SFGLenum * osg::SimpleTexturedMaterialBase::editSFEnvMode | ( | void | ) | [inline] |
Definition at line 177 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMode.
00178 { 00179 return &_sfEnvMode; 00180 }
| const SFGLenum * osg::SimpleTexturedMaterialBase::getSFEnvMode | ( | void | ) | const [inline] |
Definition at line 170 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMode.
00171 { 00172 return &_sfEnvMode; 00173 }
| SFGLenum * osg::SimpleTexturedMaterialBase::getSFEnvMode | ( | void | ) | [inline] |
Definition at line 185 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMode.
00186 { 00187 return &_sfEnvMode; 00188 }
| SFBool * osg::SimpleTexturedMaterialBase::editSFEnvMap | ( | void | ) | [inline] |
Definition at line 200 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMap.
00201 { 00202 return &_sfEnvMap; 00203 }
| const SFBool * osg::SimpleTexturedMaterialBase::getSFEnvMap | ( | void | ) | const [inline] |
Definition at line 193 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMap.
00194 { 00195 return &_sfEnvMap; 00196 }
| SFBool * osg::SimpleTexturedMaterialBase::getSFEnvMap | ( | void | ) | [inline] |
Definition at line 208 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMap.
00209 { 00210 return &_sfEnvMap; 00211 }
| ImagePtr & osg::SimpleTexturedMaterialBase::editImage | ( | void | ) | [inline] |
Definition at line 217 of file OSGSimpleTexturedMaterialBase.inl.
References _sfImage, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00218 { 00219 return _sfImage.getValue(); 00220 }
| const ImagePtr & osg::SimpleTexturedMaterialBase::getImage | ( | void | ) | const [inline] |
Definition at line 224 of file OSGSimpleTexturedMaterialBase.inl.
References _sfImage, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleTexturedMaterial::changed(), osg::SimpleTexturedMaterial::isTransparent(), osg::SimpleTexturedMaterial::makeState(), and osg::SimpleTexturedMaterial::rebuildState().
00225 { 00226 return _sfImage.getValue(); 00227 }
| ImagePtr & osg::SimpleTexturedMaterialBase::getImage | ( | void | ) | [inline] |
Definition at line 232 of file OSGSimpleTexturedMaterialBase.inl.
References _sfImage, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00233 { 00234 return _sfImage.getValue(); 00235 }
| GLenum & osg::SimpleTexturedMaterialBase::editMinFilter | ( | void | ) | [inline] |
Definition at line 247 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMinFilter, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00248 { 00249 return _sfMinFilter.getValue(); 00250 }
| const GLenum & osg::SimpleTexturedMaterialBase::getMinFilter | ( | void | ) | const [inline] |
Definition at line 254 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMinFilter, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleTexturedMaterial::changed().
00255 { 00256 return _sfMinFilter.getValue(); 00257 }
| GLenum & osg::SimpleTexturedMaterialBase::getMinFilter | ( | void | ) | [inline] |
Definition at line 262 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMinFilter, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00263 { 00264 return _sfMinFilter.getValue(); 00265 }
| GLenum & osg::SimpleTexturedMaterialBase::editMagFilter | ( | void | ) | [inline] |
Definition at line 277 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMagFilter, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00278 { 00279 return _sfMagFilter.getValue(); 00280 }
| const GLenum & osg::SimpleTexturedMaterialBase::getMagFilter | ( | void | ) | const [inline] |
Definition at line 284 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMagFilter, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleTexturedMaterial::changed().
00285 { 00286 return _sfMagFilter.getValue(); 00287 }
| GLenum & osg::SimpleTexturedMaterialBase::getMagFilter | ( | void | ) | [inline] |
Definition at line 292 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMagFilter, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00293 { 00294 return _sfMagFilter.getValue(); 00295 }
| GLenum & osg::SimpleTexturedMaterialBase::editEnvMode | ( | void | ) | [inline] |
Definition at line 307 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00308 { 00309 return _sfEnvMode.getValue(); 00310 }
| const GLenum & osg::SimpleTexturedMaterialBase::getEnvMode | ( | void | ) | const [inline] |
Definition at line 314 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleTexturedMaterial::changed(), osg::SimpleTexturedMaterial::isTransparent(), osg::SimpleTexturedMaterial::makeState(), and osg::SimpleTexturedMaterial::rebuildState().
00315 { 00316 return _sfEnvMode.getValue(); 00317 }
| GLenum & osg::SimpleTexturedMaterialBase::getEnvMode | ( | void | ) | [inline] |
Definition at line 322 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00323 { 00324 return _sfEnvMode.getValue(); 00325 }
| bool & osg::SimpleTexturedMaterialBase::editEnvMap | ( | void | ) | [inline] |
Definition at line 337 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMap, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00338 { 00339 return _sfEnvMap.getValue(); 00340 }
| const bool & osg::SimpleTexturedMaterialBase::getEnvMap | ( | void | ) | const [inline] |
Definition at line 344 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMap, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleTexturedMaterial::changed().
00345 { 00346 return _sfEnvMap.getValue(); 00347 }
| bool & osg::SimpleTexturedMaterialBase::getEnvMap | ( | void | ) | [inline] |
Definition at line 352 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMap, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00353 { 00354 return _sfEnvMap.getValue(); 00355 }
| void osg::SimpleTexturedMaterialBase::setImage | ( | const ImagePtr & | value | ) | [inline] |
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 240 of file OSGSimpleTexturedMaterialBase.inl.
References _sfImage, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
| void osg::SimpleTexturedMaterialBase::setMinFilter | ( | const GLenum & | value | ) | [inline] |
Definition at line 270 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMinFilter, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00271 { 00272 _sfMinFilter.setValue(value); 00273 }
| void osg::SimpleTexturedMaterialBase::setMagFilter | ( | const GLenum & | value | ) | [inline] |
Definition at line 300 of file OSGSimpleTexturedMaterialBase.inl.
References _sfMagFilter, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00301 { 00302 _sfMagFilter.setValue(value); 00303 }
| void osg::SimpleTexturedMaterialBase::setEnvMode | ( | const GLenum & | value | ) | [inline] |
Definition at line 330 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMode, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00331 { 00332 _sfEnvMode.setValue(value); 00333 }
| void osg::SimpleTexturedMaterialBase::setEnvMap | ( | const bool & | value | ) | [inline] |
Definition at line 360 of file OSGSimpleTexturedMaterialBase.inl.
References _sfEnvMap, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
Reimplemented from osg::SimpleMaterialBase.
Definition at line 244 of file OSGSimpleTexturedMaterialBase.cpp.
References _sfEnvMap, _sfEnvMode, _sfImage, _sfMagFilter, _sfMinFilter, EnvMapFieldMask, EnvModeFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::SimpleMaterialBase::getBinSize(), ImageFieldMask, MagFilterFieldMask, MinFilterFieldMask, and osg::FieldBits::NoField.
00245 { 00246 UInt32 returnValue = Inherited::getBinSize(whichField); 00247 00248 if(FieldBits::NoField != (ImageFieldMask & whichField)) 00249 { 00250 returnValue += _sfImage.getBinSize(); 00251 } 00252 00253 if(FieldBits::NoField != (MinFilterFieldMask & whichField)) 00254 { 00255 returnValue += _sfMinFilter.getBinSize(); 00256 } 00257 00258 if(FieldBits::NoField != (MagFilterFieldMask & whichField)) 00259 { 00260 returnValue += _sfMagFilter.getBinSize(); 00261 } 00262 00263 if(FieldBits::NoField != (EnvModeFieldMask & whichField)) 00264 { 00265 returnValue += _sfEnvMode.getBinSize(); 00266 } 00267 00268 if(FieldBits::NoField != (EnvMapFieldMask & whichField)) 00269 { 00270 returnValue += _sfEnvMap.getBinSize(); 00271 } 00272 00273 00274 return returnValue; 00275 }
| void osg::SimpleTexturedMaterialBase::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const BitVector & | whichField | |||
| ) | [virtual] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 277 of file OSGSimpleTexturedMaterialBase.cpp.
References _sfEnvMap, _sfEnvMode, _sfImage, _sfMagFilter, _sfMinFilter, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::SimpleMaterialBase::copyToBin(), EnvMapFieldMask, EnvModeFieldMask, ImageFieldMask, MagFilterFieldMask, MinFilterFieldMask, and osg::FieldBits::NoField.
00279 { 00280 Inherited::copyToBin(pMem, whichField); 00281 00282 if(FieldBits::NoField != (ImageFieldMask & whichField)) 00283 { 00284 _sfImage.copyToBin(pMem); 00285 } 00286 00287 if(FieldBits::NoField != (MinFilterFieldMask & whichField)) 00288 { 00289 _sfMinFilter.copyToBin(pMem); 00290 } 00291 00292 if(FieldBits::NoField != (MagFilterFieldMask & whichField)) 00293 { 00294 _sfMagFilter.copyToBin(pMem); 00295 } 00296 00297 if(FieldBits::NoField != (EnvModeFieldMask & whichField)) 00298 { 00299 _sfEnvMode.copyToBin(pMem); 00300 } 00301 00302 if(FieldBits::NoField != (EnvMapFieldMask & whichField)) 00303 { 00304 _sfEnvMap.copyToBin(pMem); 00305 } 00306 00307 00308 }
| void osg::SimpleTexturedMaterialBase::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| const BitVector & | whichField | |||
| ) | [virtual] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 310 of file OSGSimpleTexturedMaterialBase.cpp.
References _sfEnvMap, _sfEnvMode, _sfImage, _sfMagFilter, _sfMinFilter, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::SimpleMaterialBase::copyFromBin(), EnvMapFieldMask, EnvModeFieldMask, ImageFieldMask, MagFilterFieldMask, MinFilterFieldMask, and osg::FieldBits::NoField.
00312 { 00313 Inherited::copyFromBin(pMem, whichField); 00314 00315 if(FieldBits::NoField != (ImageFieldMask & whichField)) 00316 { 00317 _sfImage.copyFromBin(pMem); 00318 } 00319 00320 if(FieldBits::NoField != (MinFilterFieldMask & whichField)) 00321 { 00322 _sfMinFilter.copyFromBin(pMem); 00323 } 00324 00325 if(FieldBits::NoField != (MagFilterFieldMask & whichField)) 00326 { 00327 _sfMagFilter.copyFromBin(pMem); 00328 } 00329 00330 if(FieldBits::NoField != (EnvModeFieldMask & whichField)) 00331 { 00332 _sfEnvMode.copyFromBin(pMem); 00333 } 00334 00335 if(FieldBits::NoField != (EnvMapFieldMask & whichField)) 00336 { 00337 _sfEnvMap.copyFromBin(pMem); 00338 } 00339 00340 00341 }
| SimpleTexturedMaterialPtr osg::SimpleTexturedMaterialBase::create | ( | void | ) | [inline, static] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 72 of file OSGSimpleTexturedMaterialBase.inl.
References osg::AttachmentContainerPtr::dcast(), getClassType(), osg::NullFC, and shallowCopy().
Referenced by osg::SimpleTexturedMaterial::prepareLocalChunks(), osg::OBJSceneFileType::read(), and osg::OBJSceneFileType::readMTL().
00073 { 00074 SimpleTexturedMaterialPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = SimpleTexturedMaterialPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
| SimpleTexturedMaterialPtr osg::SimpleTexturedMaterialBase::createEmpty | ( | void | ) | [inline, static] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 87 of file OSGSimpleTexturedMaterialBase.inl.
References osg::FieldContainer::newPtr().
00088 { 00089 SimpleTexturedMaterialPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
| FieldContainerPtr osg::SimpleTexturedMaterialBase::shallowCopy | ( | void | ) | const [virtual] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 164 of file OSGSimpleTexturedMaterialBase.cpp.
References osg::FieldContainer::newPtr().
Referenced by create().
00165 { 00166 SimpleTexturedMaterialPtr returnValue; 00167 00168 newPtr(returnValue, dynamic_cast<const SimpleTexturedMaterial *>(this)); 00169 00170 return returnValue; 00171 }
| void osg::SimpleTexturedMaterialBase::executeSyncImpl | ( | SimpleTexturedMaterialBase * | pOther, | |
| const BitVector & | whichField | |||
| ) | [protected] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 344 of file OSGSimpleTexturedMaterialBase.cpp.
References _sfEnvMap, _sfEnvMode, _sfImage, _sfMagFilter, _sfMinFilter, EnvMapFieldMask, EnvModeFieldMask, osg::SimpleMaterialBase::executeSyncImpl(), ImageFieldMask, MagFilterFieldMask, MinFilterFieldMask, osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith().
Referenced by executeSync().
00346 { 00347 00348 Inherited::executeSyncImpl(pOther, whichField); 00349 00350 if(FieldBits::NoField != (ImageFieldMask & whichField)) 00351 _sfImage.syncWith(pOther->_sfImage); 00352 00353 if(FieldBits::NoField != (MinFilterFieldMask & whichField)) 00354 _sfMinFilter.syncWith(pOther->_sfMinFilter); 00355 00356 if(FieldBits::NoField != (MagFilterFieldMask & whichField)) 00357 _sfMagFilter.syncWith(pOther->_sfMagFilter); 00358 00359 if(FieldBits::NoField != (EnvModeFieldMask & whichField)) 00360 _sfEnvMode.syncWith(pOther->_sfEnvMode); 00361 00362 if(FieldBits::NoField != (EnvMapFieldMask & whichField)) 00363 _sfEnvMap.syncWith(pOther->_sfEnvMap); 00364 00365 00366 }
| void osg::SimpleTexturedMaterialBase::executeSync | ( | FieldContainer & | other, | |
| const BitVector & | whichField | |||
| ) | [protected, virtual] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 180 of file OSGSimpleTexturedMaterialBase.cpp.
References executeSyncImpl().
00182 { 00183 this->executeSyncImpl(static_cast<SimpleTexturedMaterialBase *>(&other), 00184 whichField); 00185 }
| void osg::SimpleTexturedMaterialBase::operator= | ( | const SimpleTexturedMaterialBase & | source | ) | [private] |
Reimplemented from osg::SimpleMaterial.
Reimplemented in osg::SimpleTexturedMaterial.
| static const char* osg::SimpleMaterial::getClassname | ( | void | ) | [inline, static, inherited] |
Reimplemented from osg::ChunkMaterial.
Definition at line 66 of file OSGSimpleMaterial.h.
Reimplemented from osg::ChunkMaterial.
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 157 of file OSGSimpleMaterial.cpp.
References osg::ChunkMaterial::changed().
Referenced by osg::SimpleTexturedMaterial::changed().
00158 { 00159 Inherited::changed(whichField, origin); 00160 }
| void SimpleMaterial::dump | ( | UInt32 | uiIndent = 0, |
|
| const BitVector | bvFlags = 0 | |||
| ) | const [virtual, inherited] |
Reimplemented from osg::ChunkMaterial.
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 276 of file OSGSimpleMaterial.cpp.
References osg::ChunkMaterialBase::_mfChunks, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::FieldContainerPtrBase::dump(), osg::MField< FieldTypeT, fieldNameSpace >::end(), osg::SimpleMaterialBase::getAmbient(), osg::SimpleMaterialBase::getDiffuse(), osg::SimpleMaterialBase::getEmission(), osg::SimpleMaterialBase::getLit(), osg::SimpleMaterialBase::getShininess(), osg::SimpleMaterialBase::getSpecular(), osg::SimpleMaterialBase::getTransparency(), osg::indentLog(), PLOG, and osg::FCDumpFlags::RefCount.
00278 { 00279 00280 SimpleMaterialPtr thisP(*this); 00281 00282 thisP.dump(uiIndent, FCDumpFlags::RefCount); 00283 00284 indentLog(uiIndent, PLOG); 00285 PLOG << "SimpleMaterial at " << this << std::endl; 00286 00287 indentLog(uiIndent, PLOG); 00288 PLOG << "\tambient: " << getAmbient() << std::endl; 00289 00290 indentLog(uiIndent, PLOG); 00291 PLOG << "\tdiffuse: " << getDiffuse() << std::endl; 00292 00293 indentLog(uiIndent, PLOG); 00294 PLOG << "\tspecular: " << getSpecular() << std::endl; 00295 00296 indentLog(uiIndent, PLOG); 00297 PLOG << "\tshininess: " << getShininess() << std::endl; 00298 00299 indentLog(uiIndent, PLOG); 00300 PLOG << "\temission: " << getEmission() << std::endl; 00301 00302 indentLog(uiIndent, PLOG); 00303 PLOG << "\ttransparency: " << getTransparency() << std::endl; 00304 00305 indentLog(uiIndent, PLOG); 00306 PLOG << "\tlit: " << getLit() << std::endl; 00307 00308 indentLog(uiIndent, PLOG); 00309 PLOG << "\tChunks: " << std::endl; 00310 00311 for(MFStateChunkPtr::const_iterator i = _mfChunks.begin(); 00312 i != _mfChunks.end(); i++) 00313 { 00314 indentLog(uiIndent, PLOG); 00315 PLOG << "\t" << *i << std::endl; 00316 } 00317 00318 indentLog(uiIndent, PLOG); 00319 PLOG << "SimpleMaterial end " << this << std::endl; 00320 }
| StatePtr SimpleMaterial::makeState | ( | void | ) | [virtual, inherited] |
Reimplemented from osg::ChunkMaterial.
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 164 of file OSGSimpleMaterial.cpp.
References osg::SimpleMaterial::_blendChunk, osg::SimpleMaterial::_materialChunk, osg::ChunkMaterial::addChunks(), osg::beginEditCP(), osg::SimpleMaterialBase::create(), osg::endEditCP(), osg::SimpleMaterialBase::getAmbient(), osg::SimpleMaterialBase::getColorMaterial(), osg::SimpleMaterialBase::getDiffuse(), osg::SimpleMaterialBase::getEmission(), osg::SimpleMaterialBase::getLit(), osg::SimpleMaterialBase::getShininess(), osg::SimpleMaterialBase::getSpecular(), osg::SimpleMaterialBase::getTransparency(), osg::SimpleMaterial::isTransparent(), osg::SimpleMaterial::prepareLocalChunks(), and osg::Color4< ValueTypeT >::setValuesRGBA().
Referenced by osg::SimpleTexturedMaterial::makeState().
00165 { 00166 StatePtr state = State::create(); 00167 00168 Color3f v3; 00169 Color4f v4; 00170 float alpha = 1.f - getTransparency(); 00171 00172 prepareLocalChunks(); 00173 00174 beginEditCP(_materialChunk); 00175 { 00176 v3 = getAmbient(); 00177 v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha); 00178 _materialChunk->setAmbient(v4); 00179 00180 v3 = getDiffuse(); 00181 v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha); 00182 _materialChunk->setDiffuse(v4); 00183 00184 v3 = getSpecular(); 00185 v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha); 00186 _materialChunk->setSpecular(v4); 00187 00188 _materialChunk->setShininess(getShininess()); 00189 00190 v3 = getEmission(); 00191 v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha); 00192 _materialChunk->setEmission(v4); 00193 00194 _materialChunk->setLit(getLit()); 00195 _materialChunk->setColorMaterial(getColorMaterial()); 00196 } 00197 endEditCP (_materialChunk); 00198 00199 state->addChunk(_materialChunk); 00200 00201 if(isTransparent()) 00202 { 00203 state->addChunk(_blendChunk); 00204 } 00205 00206 addChunks(state); // XXX DR This is a hack. Should call Inherited 00207 00208 return state; 00209 }
| void SimpleMaterial::rebuildState | ( | void | ) | [virtual, inherited] |
Reimplemented from osg::ChunkMaterial.
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 211 of file OSGSimpleMaterial.cpp.
References osg::SimpleMaterial::_blendChunk, osg::SimpleMaterial::_materialChunk, osg::Material::_pState, osg::ChunkMaterial::addChunks(), osg::addRefCP(), osg::beginEditCP(), osg::SimpleMaterialBase::create(), osg::endEditCP(), osg::SimpleMaterialBase::getAmbient(), osg::SimpleMaterialBase::getColorMaterial(), osg::SimpleMaterialBase::getDiffuse(), osg::SimpleMaterialBase::getEmission(), osg::SimpleMaterialBase::getLit(), osg::SimpleMaterialBase::getShininess(), osg::SimpleMaterialBase::getSpecular(), osg::SimpleMaterialBase::getTransparency(), osg::SimpleMaterial::isTransparent(), osg::NullFC, osg::SimpleMaterial::prepareLocalChunks(), and osg::Color4< ValueTypeT >::setValuesRGBA().
Referenced by osg::SimpleTexturedMaterial::rebuildState().
00212 { 00213 Color3f v3; 00214 Color4f v4; 00215 Real32 alpha = 1.f - getTransparency(); 00216 00217 if(_pState != NullFC) 00218 { 00219 _pState->clearChunks(); 00220 } 00221 else 00222 { 00223 _pState = State::create(); 00224 00225 addRefCP(_pState); 00226 } 00227 00228 prepareLocalChunks(); 00229 00230 beginEditCP(_materialChunk); 00231 { 00232 v3 = getAmbient(); 00233 v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha); 00234 00235 _materialChunk->setAmbient(v4); 00236 00237 v3 = getDiffuse(); 00238 v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha); 00239 00240 _materialChunk->setDiffuse(v4); 00241 00242 v3 = getSpecular(); 00243 v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha); 00244 00245 _materialChunk->setSpecular(v4); 00246 00247 _materialChunk->setShininess(getShininess()); 00248 00249 v3 = getEmission(); 00250 v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha); 00251 00252 _materialChunk->setEmission(v4); 00253 00254 _materialChunk->setLit(getLit()); 00255 _materialChunk->setColorMaterial(getColorMaterial()); 00256 } 00257 endEditCP (_materialChunk); 00258 00259 _pState->addChunk(_materialChunk); 00260 00261 if(isTransparent()) 00262 { 00263 _pState->addChunk(_blendChunk); 00264 } 00265 00266 addChunks(_pState); // XXX DR This is a hack. Should call Inherited 00267 }
| bool SimpleMaterial::isTransparent | ( | void | ) | const [virtual, inherited] |
Reimplemented from osg::ChunkMaterial.
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 269 of file OSGSimpleMaterial.cpp.
References osg::Eps, osg::SimpleMaterialBase::getTransparency(), and osg::ChunkMaterial::isTransparent().
Referenced by osg::SimpleTexturedMaterial::isTransparent(), osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00270 { 00271 return ((getTransparency() > Eps) || (Inherited::isTransparent())); 00272 }
| void SimpleMaterial::prepareLocalChunks | ( | void | ) | [protected, inherited] |
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 95 of file OSGSimpleMaterial.cpp.
References osg::SimpleMaterial::_blendChunk, osg::SimpleMaterial::_materialChunk, osg::addRefCP(), osg::beginEditCP(), osg::SimpleMaterialBase::create(), osg::endEditCP(), and osg::NullFC.
Referenced by osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00096 { 00097 if(_materialChunk == NullFC) 00098 { 00099 _materialChunk = MaterialChunk::create(); 00100 00101 addRefCP(_materialChunk); 00102 } 00103 00104 if(_blendChunk == NullFC) 00105 { 00106 _blendChunk = BlendChunk ::create(); 00107 00108 beginEditCP(_blendChunk); 00109 { 00110 _blendChunk->setSrcFactor (GL_SRC_ALPHA); 00111 _blendChunk->setDestFactor(GL_ONE_MINUS_SRC_ALPHA); 00112 } 00113 endEditCP (_blendChunk); 00114 00115 addRefCP (_blendChunk); 00116 } 00117 }
| SFColor3f * osg::SimpleMaterialBase::editSFAmbient | ( | void | ) | [inline, inherited] |
Definition at line 108 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfAmbient.
00109 { 00110 return &_sfAmbient; 00111 }
| const SFColor3f * osg::SimpleMaterialBase::getSFAmbient | ( | void | ) | const [inline, inherited] |
Definition at line 101 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfAmbient.
00102 { 00103 return &_sfAmbient; 00104 }
| SFColor3f * osg::SimpleMaterialBase::getSFAmbient | ( | void | ) | [inline, inherited] |
Definition at line 116 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfAmbient.
00117 { 00118 return &_sfAmbient; 00119 }
| SFColor3f * osg::SimpleMaterialBase::editSFDiffuse | ( | void | ) | [inline, inherited] |
Definition at line 131 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfDiffuse.
00132 { 00133 return &_sfDiffuse; 00134 }
| const SFColor3f * osg::SimpleMaterialBase::getSFDiffuse | ( | void | ) | const [inline, inherited] |
Definition at line 124 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfDiffuse.
00125 { 00126 return &_sfDiffuse; 00127 }
| SFColor3f * osg::SimpleMaterialBase::getSFDiffuse | ( | void | ) | [inline, inherited] |
Definition at line 139 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfDiffuse.
00140 { 00141 return &_sfDiffuse; 00142 }
| SFColor3f * osg::SimpleMaterialBase::editSFSpecular | ( | void | ) | [inline, inherited] |
Definition at line 154 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfSpecular.
00155 { 00156 return &_sfSpecular; 00157 }
| const SFColor3f * osg::SimpleMaterialBase::getSFSpecular | ( | void | ) | const [inline, inherited] |
Definition at line 147 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfSpecular.
00148 { 00149 return &_sfSpecular; 00150 }
| SFColor3f * osg::SimpleMaterialBase::getSFSpecular | ( | void | ) | [inline, inherited] |
Definition at line 162 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfSpecular.
00163 { 00164 return &_sfSpecular; 00165 }
| SFReal32 * osg::SimpleMaterialBase::editSFShininess | ( | void | ) | [inline, inherited] |
Definition at line 177 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfShininess.
00178 { 00179 return &_sfShininess; 00180 }
| const SFReal32 * osg::SimpleMaterialBase::getSFShininess | ( | void | ) | const [inline, inherited] |
Definition at line 170 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfShininess.
00171 { 00172 return &_sfShininess; 00173 }
| SFReal32 * osg::SimpleMaterialBase::getSFShininess | ( | void | ) | [inline, inherited] |
Definition at line 185 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfShininess.
00186 { 00187 return &_sfShininess; 00188 }
| SFColor3f * osg::SimpleMaterialBase::editSFEmission | ( | void | ) | [inline, inherited] |
Definition at line 200 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfEmission.
00201 { 00202 return &_sfEmission; 00203 }
| const SFColor3f * osg::SimpleMaterialBase::getSFEmission | ( | void | ) | const [inline, inherited] |
Definition at line 193 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfEmission.
00194 { 00195 return &_sfEmission; 00196 }
| SFColor3f * osg::SimpleMaterialBase::getSFEmission | ( | void | ) | [inline, inherited] |
Definition at line 208 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfEmission.
00209 { 00210 return &_sfEmission; 00211 }
| SFReal32 * osg::SimpleMaterialBase::editSFTransparency | ( | void | ) | [inline, inherited] |
Definition at line 223 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfTransparency.
00224 { 00225 return &_sfTransparency; 00226 }
| const SFReal32 * osg::SimpleMaterialBase::getSFTransparency | ( | void | ) | const [inline, inherited] |
Definition at line 216 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfTransparency.
00217 { 00218 return &_sfTransparency; 00219 }
| SFReal32 * osg::SimpleMaterialBase::getSFTransparency | ( | void | ) | [inline, inherited] |
Definition at line 231 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfTransparency.
00232 { 00233 return &_sfTransparency; 00234 }
| SFBool * osg::SimpleMaterialBase::editSFLit | ( | void | ) | [inline, inherited] |
Definition at line 246 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfLit.
00247 { 00248 return &_sfLit; 00249 }
| const SFBool * osg::SimpleMaterialBase::getSFLit | ( | void | ) | const [inline, inherited] |
Definition at line 239 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfLit.
00240 { 00241 return &_sfLit; 00242 }
| SFBool * osg::SimpleMaterialBase::getSFLit | ( | void | ) | [inline, inherited] |
Definition at line 254 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfLit.
00255 { 00256 return &_sfLit; 00257 }
| SFGLenum * osg::SimpleMaterialBase::editSFColorMaterial | ( | void | ) | [inline, inherited] |
Definition at line 269 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfColorMaterial.
00270 { 00271 return &_sfColorMaterial; 00272 }
| const SFGLenum * osg::SimpleMaterialBase::getSFColorMaterial | ( | void | ) | const [inline, inherited] |
Definition at line 262 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfColorMaterial.
00263 { 00264 return &_sfColorMaterial; 00265 }
| SFGLenum * osg::SimpleMaterialBase::getSFColorMaterial | ( | void | ) | [inline, inherited] |
Definition at line 277 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfColorMaterial.
00278 { 00279 return &_sfColorMaterial; 00280 }
| Color3f & osg::SimpleMaterialBase::editAmbient | ( | void | ) | [inline, inherited] |
Definition at line 286 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00287 { 00288 return _sfAmbient.getValue(); 00289 }
| const Color3f & osg::SimpleMaterialBase::getAmbient | ( | void | ) | const [inline, inherited] |
Definition at line 293 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleMaterial::dump(), osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00294 { 00295 return _sfAmbient.getValue(); 00296 }
| Color3f & osg::SimpleMaterialBase::getAmbient | ( | void | ) | [inline, inherited] |
Definition at line 301 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00302 { 00303 return _sfAmbient.getValue(); 00304 }
| Color3f & osg::SimpleMaterialBase::editDiffuse | ( | void | ) | [inline, inherited] |
Definition at line 316 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00317 { 00318 return _sfDiffuse.getValue(); 00319 }
| const Color3f & osg::SimpleMaterialBase::getDiffuse | ( | void | ) | const [inline, inherited] |
Definition at line 323 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleMaterial::dump(), osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00324 { 00325 return _sfDiffuse.getValue(); 00326 }
| Color3f & osg::SimpleMaterialBase::getDiffuse | ( | void | ) | [inline, inherited] |
Definition at line 331 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00332 { 00333 return _sfDiffuse.getValue(); 00334 }
| Color3f & osg::SimpleMaterialBase::editSpecular | ( | void | ) | [inline, inherited] |
Definition at line 346 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00347 { 00348 return _sfSpecular.getValue(); 00349 }
| const Color3f & osg::SimpleMaterialBase::getSpecular | ( | void | ) | const [inline, inherited] |
Definition at line 353 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleMaterial::dump(), osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00354 { 00355 return _sfSpecular.getValue(); 00356 }
| Color3f & osg::SimpleMaterialBase::getSpecular | ( | void | ) | [inline, inherited] |
Definition at line 361 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00362 { 00363 return _sfSpecular.getValue(); 00364 }
| Real32 & osg::SimpleMaterialBase::editShininess | ( | void | ) | [inline, inherited] |
Definition at line 376 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfShininess, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00377 { 00378 return _sfShininess.getValue(); 00379 }
| const Real32 & osg::SimpleMaterialBase::getShininess | ( | void | ) | const [inline, inherited] |
Definition at line 383 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfShininess, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleMaterial::dump(), osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00384 { 00385 return _sfShininess.getValue(); 00386 }
| Real32 & osg::SimpleMaterialBase::getShininess | ( | void | ) | [inline, inherited] |
Definition at line 391 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfShininess, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00392 { 00393 return _sfShininess.getValue(); 00394 }
| Color3f & osg::SimpleMaterialBase::editEmission | ( | void | ) | [inline, inherited] |
Definition at line 406 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfEmission, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00407 { 00408 return _sfEmission.getValue(); 00409 }
| const Color3f & osg::SimpleMaterialBase::getEmission | ( | void | ) | const [inline, inherited] |
Definition at line 413 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfEmission, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleMaterial::dump(), osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00414 { 00415 return _sfEmission.getValue(); 00416 }
| Color3f & osg::SimpleMaterialBase::getEmission | ( | void | ) | [inline, inherited] |
Definition at line 421 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfEmission, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00422 { 00423 return _sfEmission.getValue(); 00424 }
| Real32 & osg::SimpleMaterialBase::editTransparency | ( | void | ) | [inline, inherited] |
Definition at line 436 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfTransparency, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00437 { 00438 return _sfTransparency.getValue(); 00439 }
| const Real32 & osg::SimpleMaterialBase::getTransparency | ( | void | ) | const [inline, inherited] |
Definition at line 443 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfTransparency, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleMaterial::dump(), osg::SimpleMaterial::isTransparent(), osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00444 { 00445 return _sfTransparency.getValue(); 00446 }
| Real32 & osg::SimpleMaterialBase::getTransparency | ( | void | ) | [inline, inherited] |
Definition at line 451 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfTransparency, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00452 { 00453 return _sfTransparency.getValue(); 00454 }
| bool & osg::SimpleMaterialBase::editLit | ( | void | ) | [inline, inherited] |
Definition at line 466 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfLit, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00467 { 00468 return _sfLit.getValue(); 00469 }
| const bool & osg::SimpleMaterialBase::getLit | ( | void | ) | const [inline, inherited] |
Definition at line 473 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfLit, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleMaterial::dump(), osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00474 { 00475 return _sfLit.getValue(); 00476 }
| bool & osg::SimpleMaterialBase::getLit | ( | void | ) | [inline, inherited] |
Definition at line 481 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfLit, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00482 { 00483 return _sfLit.getValue(); 00484 }
| GLenum & osg::SimpleMaterialBase::editColorMaterial | ( | void | ) | [inline, inherited] |
Definition at line 496 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfColorMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00497 { 00498 return _sfColorMaterial.getValue(); 00499 }
| const GLenum & osg::SimpleMaterialBase::getColorMaterial | ( | void | ) | const [inline, inherited] |
Definition at line 503 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfColorMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::SimpleMaterial::makeState(), and osg::SimpleMaterial::rebuildState().
00504 { 00505 return _sfColorMaterial.getValue(); 00506 }
| GLenum & osg::SimpleMaterialBase::getColorMaterial | ( | void | ) | [inline, inherited] |
Definition at line 511 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfColorMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00512 { 00513 return _sfColorMaterial.getValue(); 00514 }
| void osg::SimpleMaterialBase::setAmbient | ( | const Color3f & | value | ) | [inline, inherited] |
Definition at line 309 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00310 { 00311 _sfAmbient.setValue(value); 00312 }
| void osg::SimpleMaterialBase::setDiffuse | ( | const Color3f & | value | ) | [inline, inherited] |
Definition at line 339 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00340 { 00341 _sfDiffuse.setValue(value); 00342 }
| void osg::SimpleMaterialBase::setSpecular | ( | const Color3f & | value | ) | [inline, inherited] |
Definition at line 369 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00370 { 00371 _sfSpecular.setValue(value); 00372 }
| void osg::SimpleMaterialBase::setShininess | ( | const Real32 & | value | ) | [inline, inherited] |
Definition at line 399 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfShininess, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00400 { 00401 _sfShininess.setValue(value); 00402 }
| void osg::SimpleMaterialBase::setEmission | ( | const Color3f & | value | ) | [inline, inherited] |
Definition at line 429 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfEmission, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00430 { 00431 _sfEmission.setValue(value); 00432 }
| void osg::SimpleMaterialBase::setTransparency | ( | const Real32 & | value | ) | [inline, inherited] |
Definition at line 459 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfTransparency, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00460 { 00461 _sfTransparency.setValue(value); 00462 }
| void osg::SimpleMaterialBase::setLit | ( | const bool & | value | ) | [inline, inherited] |
Definition at line 489 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfLit, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
| void osg::SimpleMaterialBase::setColorMaterial | ( | const GLenum & | value | ) | [inline, inherited] |
Definition at line 519 of file OSGSimpleMaterialBase.inl.
References osg::SimpleMaterialBase::_sfColorMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00520 { 00521 _sfColorMaterial.setValue(value); 00522 }
| virtual void osg::FieldContainer::executeSync | ( | FieldContainer & | other, | |
| const BitVector & | whichField | |||
| ) | [protected, pure virtual, inherited] |
Referenced by osg::FieldContainerPtrBase::executeSync().
| void ChunkMaterial::draw | ( | DrawFunctor & | func, | |
| DrawActionBase * | action | |||
| ) | [virtual, inherited] |
Draw the function behind the functor with this material. The functored function should be very careful changing OpenGL state, better just use glBegin(), glEnd() and the standard stuff in between.
Implements osg::Material.
Definition at line 285 of file OSGChunkMaterial.cpp.
References osg::addRefCP(), osg::TypedFunctor1Base< RetT, CallArgT, SizeTraitsT >::call(), osg::ChunkMaterial::makeState(), and osg::subRefCP().
| void ChunkMaterial::draw | ( | Geometry * | geo, | |
| DrawActionBase * | action | |||
| ) | [virtual, inherited] |
Draw the geometry with this material.
Implements osg::Material.
Definition at line 265 of file OSGChunkMaterial.cpp.
References osg::addRefCP(), osg::Geometry::drawPrimitives(), osg::ChunkMaterial::makeState(), and osg::subRefCP().
00266 { 00267 StatePtr state = makeState(); 00268 00269 addRefCP(state); 00270 00271 state->activate(action); 00272 00273 geo->drawPrimitives(action); 00274 00275 state->deactivate(action); 00276 00277 subRefCP(state); // kill it 00278 }
| bool ChunkMaterial::addChunk | ( | StateChunkPtr | chunk, | |
| Int32 | slot = State::AutoSlotReplace | |||
| ) | [inherited] |
Add the given chunk to the material. It is possible to specify which slot this chunk should be associated with. See StateChunkClass for a general description of the slots concept. The default slot is State::AutoSlotReplace.
Definition at line 140 of file OSGChunkMaterial.cpp.
References osg::ChunkMaterialBase::_mfChunks, osg::ChunkMaterialBase::_mfSlots, osg::addRefCP(), osg::State::AutoSlotReplace, osg::MField< FieldTypeT, fieldNameSpace >::push_back(), and osg::MField< FieldTypeT, fieldNameSpace >::size().
00141 { 00142 if(slot != State::AutoSlotReplace) 00143 { 00144 while(_mfSlots.size() < _mfChunks.size()) 00145 _mfSlots.push_back(State::AutoSlotReplace); 00146 } 00147 00148 _mfChunks.push_back(chunk); 00149 00150 if(slot != State::AutoSlotReplace) 00151 _mfSlots.push_back(slot); 00152 00153 addRefCP(chunk); 00154 00155 return true; 00156 }
| bool ChunkMaterial::subChunk | ( | StateChunkPtr | chunk, | |
| Int32 | slot = State::AutoSlotReplace | |||
| ) | [inherited] |
Remove the given chunk from the material. If the slot is not State::AutoSlotReplace, only the given slot will be searched and removed if found. Returns true if the chunk couldn't be found.
Definition at line 162 of file OSGChunkMaterial.cpp.
References osg::ChunkMaterialBase::_mfChunks, osg::ChunkMaterialBase::_mfSlots, osg::State::AutoSlotReplace, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::MField< FieldTypeT, fieldNameSpace >::erase(), osg::MField< FieldTypeT, fieldNameSpace >::size(), osg::subRefCP(), and SWARNING.
00163 { 00164 UInt32 i; 00165 00166 for(i = 0; i < _mfChunks.size(); ++i) 00167 { 00168 if(_mfChunks[i] == chunk && 00169 ((i < _mfSlots.size() && _mfSlots[i] == slot) || 00170 slot == State::AutoSlotReplace)) 00171 { 00172 subRefCP(chunk); 00173 _mfChunks.erase(_mfChunks.begin() + i); 00174 if(i < _mfSlots.size()) 00175 _mfSlots.erase(_mfSlots.begin() + i); 00176 return false; 00177 } 00178 } 00179 00180 SWARNING << "ChunkMaterial::subChunk(" << this << ") has no chunk " 00181 << chunk << " with slot " << slot << std::endl; 00182 00183 return true; 00184 }
| Int32 ChunkMaterial::find | ( | StateChunkPtr | chunk | ) | [inherited] |
Search the list of chunks for the given chunk. Returns its index, -1 if the chunk is not used in the material.
Definition at line 190 of file OSGChunkMaterial.cpp.
References osg::ChunkMaterialBase::_mfChunks, and osg::MField< FieldTypeT, fieldNameSpace >::size().
| StateChunkPtr ChunkMaterial::find | ( | const FieldContainerType & | type, | |
| Int32 | slot = State::AutoSlotReplace | |||
| ) | [inherited] |
Search the list of chunks for a chunk of the given type and the given slot. If slot is State::AutoSlotReplace, all slots are searched and the first found chunk is returned. For searching a specific chunk with a AutoSlotReplace slot, the slot parameter is interpreted as a index.
Definition at line 210 of file OSGChunkMaterial.cpp.
References osg::ChunkMaterialBase::_mfChunks, osg::State::AutoSlotReplace, osg::ChunkMaterialBase::getMFSlots(), osg::ChunkMaterialBase::getSlots(), osg::NullFC, and osg::MField< FieldTypeT, fieldNameSpace >::size().
00212 { 00213 UInt32 index = 0; 00214 for(UInt32 i = 0; i < _mfChunks.size(); ++i) 00215 { 00216 StateChunkPtr p = _mfChunks[i]; 00217 Int32 s = State::AutoSlotReplace; 00218 00219 if(i < getMFSlots()->size()) 00220 s = getSlots(i); 00221 00222 if(s == State::AutoSlotReplace) 00223 s = index; 00224 00225 if(p->getType() == type) 00226 { 00227 if(slot == State::AutoSlotReplace || slot == s) 00228 return (p); 00229 ++index; 00230 } 00231 } 00232 return NullFC; 00233 }
| void ChunkMaterial::clearChunks | ( | void | ) | [inherited] |
Add the given chunk to the material. It is possible to specify which slot this chunk should be associated with. See StateChunkClass for a general description of the slots concept. The default slot is State::AutoSlotReplace.
Definition at line 235 of file OSGChunkMaterial.cpp.
References osg::ChunkMaterialBase::_mfChunks, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::MField< FieldTypeT, fieldNameSpace >::clear(), osg::MField< FieldTypeT, fieldNameSpace >::end(), and osg::subRefCP().
Referenced by osg::ChunkMaterial::~ChunkMaterial().
00236 { 00237 MFStateChunkPtr::iterator matIt = _mfChunks.begin(); 00238 MFStateChunkPtr::iterator matEnd = _mfChunks.end (); 00239 00240 while(matIt != matEnd) 00241 { 00242 subRefCP(*matIt); 00243 ++matIt; 00244 } 00245 _mfChunks.clear(); 00246 }
| bool ChunkMaterial::operator== | ( | const Material & | other | ) | const [virtual, inherited] |
Add the given chunk to the material. It is possible to specify which slot this chunk should be associated with. See StateChunkClass for a general description of the slots concept. The default slot is State::AutoSlotReplace.
Definition at line 248 of file OSGChunkMaterial.cpp.
00249 { 00250 const Material& thisBase = *this; 00251 if (!(thisBase == other)) 00252 return false; 00253 00254 const ChunkMaterial* othercm = dynamic_cast<const ChunkMaterial*>(&other); 00255 if (!othercm) 00256 return false; 00257 00258 // ? 00259 return false; 00260 }
| bool Material::operator== | ( | const Material & | other | ) | const [virtual, inherited] |
Definition at line 207 of file OSGMaterial.cpp.
References osg::Material::_pState.
| void ChunkMaterial::addChunks | ( | StatePtr | state | ) | [protected, inherited] |
Add chunks to the given state. Needed for ordering in the drived materials.
Definition at line 304 of file OSGChunkMaterial.cpp.
References osg::ChunkMaterialBase::_mfChunks, osg::ChunkMaterialBase::_mfSlots, osg::State::AutoSlotReplace, and osg::MField< FieldTypeT, fieldNameSpace >::size().
Referenced by osg::SimpleMaterial::makeState(), osg::ChunkMaterial::makeState(), osg::SimpleMaterial::rebuildState(), and osg::ChunkMaterial::rebuildState().
| MFStateChunkPtr * osg::ChunkMaterialBase::editMFChunks | ( | void | ) | [inline, inherited] |
Definition at line 108 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfChunks.
00109 { 00110 return &_mfChunks; 00111 }
| const MFStateChunkPtr * osg::ChunkMaterialBase::getMFChunks | ( | void | ) | const [inline, inherited] |
Definition at line 101 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfChunks.
00102 { 00103 return &_mfChunks; 00104 }
| MFStateChunkPtr * osg::ChunkMaterialBase::getMFChunks | ( | void | ) | [inline, inherited] |
Definition at line 116 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfChunks.
00117 { 00118 return &_mfChunks; 00119 }
| MFInt32 * osg::ChunkMaterialBase::editMFSlots | ( | void | ) | [inline, inherited] |
Definition at line 131 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfSlots.
00132 { 00133 return &_mfSlots; 00134 }
| const MFInt32 * osg::ChunkMaterialBase::getMFSlots | ( | void | ) | const [inline, inherited] |
Definition at line 124 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfSlots.
Referenced by osg::ChunkMaterial::find().
00125 { 00126 return &_mfSlots; 00127 }
| MFInt32 * osg::ChunkMaterialBase::getMFSlots | ( | void | ) | [inline, inherited] |
Definition at line 139 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfSlots.
00140 { 00141 return &_mfSlots; 00142 }
| StateChunkPtr & osg::ChunkMaterialBase::editChunks | ( | const UInt32 | index | ) | [inline, inherited] |
Definition at line 149 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfChunks.
00150 { 00151 return _mfChunks[index]; 00152 }
| const StateChunkPtr & osg::ChunkMaterialBase::getChunks | ( | const UInt32 | index | ) | const [inline, inherited] |
Definition at line 156 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfChunks.
00157 { 00158 return _mfChunks[index]; 00159 }
| StateChunkPtr & osg::ChunkMaterialBase::getChunks | ( | const UInt32 | index | ) | [inline, inherited] |
Definition at line 164 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfChunks.
00165 { 00166 return _mfChunks[index]; 00167 }
| MFStateChunkPtr & osg::ChunkMaterialBase::getChunks | ( | void | ) | [inline, inherited] |
Definition at line 171 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfChunks.
00172 { 00173 return _mfChunks; 00174 }
| const MFStateChunkPtr & osg::ChunkMaterialBase::getChunks | ( | void | ) | const [inline, inherited] |
Definition at line 178 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfChunks.
00179 { 00180 return _mfChunks; 00181 }
Definition at line 187 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfSlots.
00188 { 00189 return _mfSlots[index]; 00190 }
Definition at line 194 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfSlots.
00195 { 00196 return _mfSlots[index]; 00197 }
Definition at line 202 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfSlots.
00203 { 00204 return _mfSlots[index]; 00205 }
| MFInt32 & osg::ChunkMaterialBase::getSlots | ( | void | ) | [inline, inherited] |
Definition at line 209 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfSlots.
Referenced by osg::ChunkMaterial::find().
00210 { 00211 return _mfSlots; 00212 }
| const MFInt32 & osg::ChunkMaterialBase::getSlots | ( | void | ) | const [inline, inherited] |
Definition at line 216 of file OSGChunkMaterialBase.inl.
References osg::ChunkMaterialBase::_mfSlots.
00217 { 00218 return _mfSlots; 00219 }
Reimplemented in osg::MultiPassMaterial, and osg::SwitchMaterial.
Definition at line 164 of file OSGMaterial.cpp.
References osg::Material::_pState.
Referenced by osg::RenderAction::getMaterialStates().
00165 { 00166 return _pState; 00167 }
| bool Material::isMultiPass | ( | void | ) | const [virtual, inherited] |
Reimplemented in osg::MultiPassMaterial, and osg::SwitchMaterial.
Definition at line 169 of file OSGMaterial.cpp.
Referenced by osg::RenderAction::dropFunctor(), osg::RenderAction::dropGeometry(), and osg::RenderAction::getMaterialStates().
| UInt32 Material::getNPasses | ( | void | ) | const [virtual, inherited] |
Reimplemented in osg::MultiPassMaterial, and osg::SwitchMaterial.
Definition at line 174 of file OSGMaterial.cpp.
Referenced by osg::RenderAction::getMaterialStates().
| Int32 Material::getRealSortKey | ( | void | ) | const [virtual, inherited] |
Reimplemented in osg::SwitchMaterial.
Definition at line 186 of file OSGMaterial.cpp.
References osg::MaterialBase::_sfSortKey, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::RenderAction::dropFunctor(), osg::RenderAction::dropGeometry(), and osg::SwitchMaterial::getRealSortKey().
00187 { 00188 return _sfSortKey.getValue(); 00189 }
| bool Material::operator< | ( | const Material & | other | ) | const [virtual, inherited] |
Definition at line 202 of file OSGMaterial.cpp.
| bool Material::operator!= | ( | const Material & | other | ) | const [virtual, inherited] |
Definition at line 212 of file OSGMaterial.cpp.
| SFInt32 * osg::MaterialBase::editSFSortKey | ( | void | ) | [inline, inherited] |
Definition at line 82 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfSortKey.
00083 { 00084 return &_sfSortKey; 00085 }
| const SFInt32 * osg::MaterialBase::getSFSortKey | ( | void | ) | const [inline, inherited] |
Definition at line 75 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfSortKey.
00076 { 00077 return &_sfSortKey; 00078 }
| SFInt32 * osg::MaterialBase::getSFSortKey | ( | void | ) | [inline, inherited] |
Definition at line 90 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfSortKey.
00091 { 00092 return &_sfSortKey; 00093 }
| SFInt32 * osg::MaterialBase::editSFTransparencyMode | ( | void | ) | [inline, inherited] |
Definition at line 105 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfTransparencyMode.
00106 { 00107 return &_sfTransparencyMode; 00108 }
| const SFInt32 * osg::MaterialBase::getSFTransparencyMode | ( | void | ) | const [inline, inherited] |
Definition at line 98 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfTransparencyMode.
00099 { 00100 return &_sfTransparencyMode; 00101 }
| SFInt32 * osg::MaterialBase::getSFTransparencyMode | ( | void | ) | [inline, inherited] |
Definition at line 113 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfTransparencyMode.
00114 { 00115 return &_sfTransparencyMode; 00116 }
| Int32 & osg::MaterialBase::editSortKey | ( | void | ) | [inline, inherited] |
Definition at line 122 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfSortKey, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00123 { 00124 return _sfSortKey.getValue(); 00125 }
| const Int32 & osg::MaterialBase::getSortKey | ( | void | ) | const [inline, inherited] |
Definition at line 129 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfSortKey, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00130 { 00131 return _sfSortKey.getValue(); 00132 }
| Int32 & osg::MaterialBase::getSortKey | ( | void | ) | [inline, inherited] |
Definition at line 137 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfSortKey, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00138 { 00139 return _sfSortKey.getValue(); 00140 }
| Int32 & osg::MaterialBase::editTransparencyMode | ( | void | ) | [inline, inherited] |
Definition at line 152 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfTransparencyMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00153 { 00154 return _sfTransparencyMode.getValue(); 00155 }
| const Int32 & osg::MaterialBase::getTransparencyMode | ( | void | ) | const [inline, inherited] |
Definition at line 159 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfTransparencyMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
Referenced by osg::MultiPassMaterial::isTransparent(), and osg::ChunkMaterial::isTransparent().
00160 { 00161 return _sfTransparencyMode.getValue(); 00162 }
| Int32 & osg::MaterialBase::getTransparencyMode | ( | void | ) | [inline, inherited] |
Definition at line 167 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfTransparencyMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().
00168 { 00169 return _sfTransparencyMode.getValue(); 00170 }
| void osg::MaterialBase::setSortKey | ( | const Int32 & | value | ) | [inline, inherited] |
Definition at line 145 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfSortKey, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00146 { 00147 _sfSortKey.setValue(value); 00148 }
| void osg::MaterialBase::setTransparencyMode | ( | const Int32 & | value | ) | [inline, inherited] |
Definition at line 175 of file OSGMaterialBase.inl.
References osg::MaterialBase::_sfTransparencyMode, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
00176 { 00177 _sfTransparencyMode.setValue(value); 00178 }
| void AttachmentContainer::addAttachment | ( | const AttachmentPtr & | fieldContainerP, | |
| UInt16 | binding = 0 | |||
| ) | [inherited] |
Definition at line 84 of file OSGAttachmentContainer.cpp.
References osg::addRefCP(), osg::beginEditCP(), osg::endEditCP(), osg::NullFC, and osg::subRefCP().
Referenced by osg::AttachmentContainer::AttachmentContainer(), osg::Node::onCreate(), and osg::Image::setAttachmentField().
00086 { 00087 UInt32 key; 00088 00089 if(fieldContainerP == NullFC) 00090 return; 00091 00092 key = (UInt32 (fieldContainerP->getGroupId()) << 16) | binding; 00093 00094 addRefCP(fieldContainerP); 00095 00096 beginEditCP(fieldContainerP, Attachment::ParentsFieldMask); 00097 { 00098 fieldContainerP->addParent(getPtr()); 00099 } 00100 endEditCP (fieldContainerP, Attachment::ParentsFieldMask); 00101 00102 AttachmentMap::iterator fcI = _attachmentMap.getValue().find(key); 00103 00104 if(fcI != _attachmentMap.getValue().end()) 00105 { 00106 beginEditCP((*fcI).second, Attachment::ParentsFieldMask); 00107 { 00108 (*fcI).second->subParent(getPtr()); 00109 } 00110 endEditCP ((*fcI).second, Attachment::ParentsFieldMask); 00111 00112 subRefCP((*fcI).second); 00113 00114 (*fcI).second = fieldContainerP; 00115 } 00116 else 00117 { 00118 _attachmentMap.getValue()[key] = fieldContainerP; 00119 } 00120 }
| void AttachmentContainer::subAttachment | ( | const AttachmentPtr & | fieldContainerP, | |
| UInt16 | binding = 0 | |||
| ) | [inherited] |
Definition at line 122 of file OSGAttachmentContainer.cpp.
References osg::AttachmentContainer::_attachmentMap, osg::beginEditCP(), osg::endEditCP(), osg::AttachmentContainer::getPtr(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::NullFC, osg::Attachment::ParentsFieldMask, and osg::subRefCP().
00124 { 00125 UInt32 key; 00126 00127 AttachmentMap::iterator fcI; 00128 00129 if(fieldContainerP == NullFC) 00130 return; 00131 00132 key = (UInt32(fieldContainerP->getGroupId()) << 16) | binding; 00133 00134 fcI = _attachmentMap.getValue().find(key); 00135 00136 if(fcI != _attachmentMap.getValue().end()) 00137 { 00138 beginEditCP(fieldContainerP, Attachment::ParentsFieldMask); 00139 { 00140 (*fcI).second->subParent(getPtr()); 00141 } 00142 endEditCP (fieldContainerP, Attachment::ParentsFieldMask); 00143 00144 subRefCP((*fcI).second); 00145 00146 _attachmentMap.getValue().erase(fcI); 00147 } 00148 }
| AttachmentPtr AttachmentContainer::findAttachment | ( | UInt32 | groupId, | |
| UInt16 | binding = 0 | |||
| ) | [inherited] |
Definition at line 150 of file OSGAttachmentContainer.cpp.
References osg::AttachmentContainer::_attachmentMap, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), and osg::NullFC.
Referenced by osg::Image::findAttachmentField(), and osg::Image::setAttachmentField().
00152 { 00153 UInt32 key = (UInt32(groupId) << 16) | binding; 00154 00155 AttachmentMap::iterator fcI = _attachmentMap.getValue().find(key); 00156 00157 if(fcI == _attachmentMap.getValue().end()) 00158 { 00159 return NullFC; 00160 } 00161 else 00162 { 00163 return (*fcI).second; 00164 } 00165 }
| AttachmentPtr osg::AttachmentContainer::findAttachment | ( | const FieldContainerType & | type, | |
| UInt16 | binding = 0 | |||
| ) | [inline, inherited] |
Definition at line 57 of file OSGAttachmentContainerImpl.inl.
00060 { 00061 return findAttachment(type.getGroupId(), binding); 00062 }
| SFAttachmentMap * AttachmentContainer::getSFAttachments | ( | void | ) | [inherited] |
Field Access
Definition at line 170 of file OSGAttachmentContainer.cpp.
References osg::AttachmentContainer::_attachmentMap.
00171 { 00172 return &_attachmentMap; 00173 }
| AttachmentContainerPtr AttachmentContainer::getPtr | ( | void | ) | [protected, inherited] |
Definition at line 353 of file OSGAttachmentContainer.cpp.
Referenced by osg::FileGrabForeground::draw(), osg::FBOViewport::render(), osg::AttachmentContainer::subAttachment(), and osg::AttachmentContainer::~AttachmentContainer().
00354 { 00355 return AttachmentContainerPtr(*this); 00356 }
| UInt16 osg::FieldContainer::getClassGroupId | ( | void | ) | [inline, static, inherited] |
Definition at line 71 of file OSGFieldContainerImpl.inl.
References osg::FieldContainer::_type, and osg::FieldContainerType::getGroupId().
00072 { 00073 return _type.getGroupId(); 00074 }
| UInt32 osg::FieldContainer::getTypeId | ( | void | ) | const [inline, inherited] |
Definition at line 77 of file OSGFieldContainerImpl.inl.
References osg::TypeBase::getId(), and osg::FieldContainer::getType().
Referenced by osg::TextureChunk::changeFrom(), and osg::CubeTextureChunk::changeFrom().
00078 { 00079 return getType().getId(); 00080 }
| UInt16 osg::FieldContainer::getGroupId | ( | void | ) | const [inline, inherited] |
Definition at line 83 of file OSGFieldContainerImpl.inl.
References osg::FieldContainerType::getGroupId(), and osg::FieldContainer::getType().
Referenced by osg::Image::setAttachmentField().
00084 { 00085 return getType().getGroupId(); 00086 }
| const Char8 * osg::FieldContainer::getTypeName | ( | void | ) | const [inline, inherited] |
Definition at line 89 of file OSGFieldContainerImpl.inl.
References osg::TypeBase::getCName(), and osg::FieldContainer::getType().
00090 { 00091 return getType().getCName(); 00092 }
Generic Field Access
Definition at line 95 of file OSGFieldContainerImpl.inl.
References osg::FieldDescription::getField(), osg::FieldContainerType::getFieldDescription(), and osg::FieldContainer::getType().
Referenced by osg::QFCItem::expand(), osg::VRMLShapeDesc::getFieldAndDesc(), osg::QFieldViewBase::getFieldPtr(), osg::QFieldEditorBase::getFieldPtr(), osg::getParentsField(), and osg::QFCItem::setup().
00096 { 00097 const FieldDescription *desc = getType().getFieldDescription(fieldId); 00098 00099 return desc ? desc->getField(*this) : NULL; 00100 }
Generic Field Access
Definition at line 103 of file OSGFieldContainerImpl.inl.
References osg::FieldContainerType::findFieldDescription(), osg::FieldDescription::getField(), and osg::FieldContainer::getType().
00104 { 00105 const FieldDescription *desc =getType().findFieldDescription(fieldName); 00106 00107 return desc ? desc->getField(*this) : NULL; 00108 }
| void osg::FieldContainer::newPtr | ( | ObjectPtrT & | result, | |
| const typename ObjectPtrT::StoredObjectType * | prototypeP | |||
| ) | [inline, static, protected, inherited] |
Definition at line 138 of file OSGFieldContainerImpl.inl.
References osg::ChangeList::addCreated(), osg::PThreadBase::getAspect(), osg::PThreadBase::getCurrentChangeList(), osg::ThreadManager::getNumAspects(), osg::FieldContainerFactory::registerFieldContainer(), and osg::FieldContainerFactory::the().
Referenced by osg::XWindowBase::createEmpty(), osg::WIN32WindowBase::createEmpty(), osg::ViewportBase::createEmpty(), osg::VertexProgramChunkBase::createEmpty(), osg::TwoSidedLightingChunkBase::createEmpty(), osg::TransformChunkBase::createEmpty(), osg::TransformBase::createEmpty(), osg::TileCameraDecoratorBase::createEmpty(), osg::TextureTransformChunkBase::createEmpty(), osg::TextureGrabForegroundBase::createEmpty(), osg::TextureGrabBackgroundBase::createEmpty(), osg::TextureChunkBase::createEmpty(), osg::TextureBackgroundBase::createEmpty(), osg::TexGenChunkBase::createEmpty(), osg::SwitchMaterialBase::createEmpty(), osg::SwitchBase::createEmpty(), osg::SurfaceBase::createEmpty(), osg::StringAttributeMapBase::createEmpty(), osg::StereoBufferViewportBase::createEmpty(), osg::StencilChunkBase::createEmpty(), osg::StateSortingGroupBase::createEmpty(), osg::StateBase::createEmpty(), osg::SpotLightBase::createEmpty(), osg::SortFirstWindowBase::createEmpty(), osg::SolidBackgroundBase::createEmpty(), osg::SlicesBase::createEmpty(), osg::SkyBackgroundBase::createEmpty(), createEmpty(), osg::SimpleStatisticsForegroundBase::createEmpty(), osg::SimpleMaterialBase::createEmpty(), osg::SHLParameterChunkBase::createEmpty(), osg::SHLChunkBase::createEmpty(), osg::ShearedStereoCameraDecoratorBase::createEmpty(), osg::ShaderParameterVec4fBase::createEmpty(), osg::ShaderParameterVec3fBase::createEmpty(), osg::ShaderParameterVec2fBase::createEmpty(), osg::ShaderParameterStringBase::createEmpty(), osg::ShaderParameterRealBase::createEmpty(), osg::ShaderParameterMVec4fBase::createEmpty(), osg::ShaderParameterMVec3fBase::createEmpty(), osg::ShaderParameterMVec2fBase::createEmpty(), osg::ShaderParameterMRealBase::createEmpty(), osg::ShaderParameterMMatrixBase::createEmpty(), osg::ShaderParameterMIntBase::createEmpty(), osg::ShaderParameterMatrixBase::createEmpty(), osg::ShaderParameterIntBase::createEmpty(), osg::ShaderParameterBoolBase::createEmpty(), osg::ShadeModelChunkBase::createEmpty(), osg::ScreenGroupBase::createEmpty(), osg::SClipPlaneChunkBase::createEmpty(), osg::ResolutionDisplayFilterBase::createEmpty(), osg::RenderOptionsBase::createEmpty(), osg::RegisterCombinersChunkBase::createEmpty(), osg::QTWindowBase::createEmpty(), osg::ProxyGroupBase::createEmpty(), osg::ProjectionCameraDecoratorBase::createEmpty(), osg::PolygonForegroundBase::createEmpty(), osg::PolygonChunkBase::createEmpty(), osg::PolygonBackgroundBase::createEmpty(), osg::PointLightBase::createEmpty(), osg::PointChunkBase::createEmpty(), osg::PhongMaterialBase::createEmpty(), osg::PerspectiveCameraBase::createEmpty(), osg::PassiveWindowBase::createEmpty(), osg::PassiveViewportBase::createEmpty(), osg::PassiveBackgroundBase::createEmpty(), osg::ParticlesBase::createEmpty(), osg::OrthographicCameraBase::createEmpty(), osg::OffsetCameraDecoratorBase::createEmpty(), osg::OffCenterPerspectiveCameraBase::createEmpty(), osg::MultiSwitchBase::createEmpty(), osg::MultiPassMaterialBase::createEmpty(), osg::MultiDisplayWindowBase::createEmpty(), osg::MatrixCameraDecoratorBase::createEmpty(), osg::MatrixCameraBase::createEmpty(), osg::MaterialPoolBase::createEmpty(), osg::MaterialGroupBase::createEmpty(), osg::MaterialChunkBase::createEmpty(), osg::LogicOpChunkBase::createEmpty(), osg::LineChunkBase::createEmpty(), osg::LightModelChunkBase::createEmpty(), osg::LightEnvBase::createEmpty(), osg::LightChunkBase::createEmpty(), osg::InverseTransformBase::createEmpty(), osg::InlineBase::createEmpty(), osg::ImageForegroundBase::createEmpty(), osg::ImageBase::createEmpty(), osg::ImageBackgroundBase::createEmpty(), osg::GroupBase::createEmpty(), osg::GraphicStatisticsForegroundBase::createEmpty(), osg::GradientBackgroundBase::createEmpty(), osg::GrabForegroundBase::createEmpty(), osg::GLUTWindowBase::createEmpty(), osg::GeometryBase::createEmpty(), osg::FresnelMaterialBase::createEmpty(), osg::FragmentProgramChunkBase::createEmpty(), osg::FogChunkBase::createEmpty(), osg::FogBase::createEmpty(), osg::FileGrabForegroundBase::createEmpty(), osg::FCPtrAttributeMapBase::createEmpty(), osg::FBOViewportBase::createEmpty(), osg::FatBorderChunkBase::createEmpty(), osg::DVRVolumeTextureBase::createEmpty(), osg::DVRVolumeBase::createEmpty(), osg::DVRSimpleShaderBase::createEmpty(), osg::DVRSimpleLUTShaderBase::createEmpty(), osg::DVRMtexLUTShaderBase::createEmpty(), osg::DVRLookupTableBase::createEmpty(), osg::DVRIsoSurfaceBase::createEmpty(), osg::DVRIsoShaderBase::createEmpty(), osg::DVRGeometryBase::createEmpty(), osg::DVRClipObjectsBase::createEmpty(), osg::DVRClipGeometryBase::createEmpty(), osg::DVRAppearanceBase::createEmpty(), osg::DistortionDisplayFilterBase::createEmpty(), osg::DistanceLODBase::createEmpty(), osg::DisplayFilterForegroundBase::createEmpty(), osg::DisplayCalibrationBase::createEmpty(), osg::DirectionalLightBase::createEmpty(), osg::DepthClearBackgroundBase::createEmpty(), osg::DepthChunkBase::createEmpty(), osg::CubeTextureChunkBase::createEmpty(), osg::ComponentTransformBase::createEmpty(), osg::ColorMaskChunkBase::createEmpty(), osg::ColorDisplayFilterBase::createEmpty(), osg::ColorBufferViewportBase::createEmpty(), osg::ClusterWindowBase::createEmpty(), osg::ClipPlaneChunkBase::createEmpty(), osg::ClipPlaneBase::createEmpty(), osg::ChunkMaterialBase::createEmpty(), osg::BlendChunkBase::createEmpty(), osg::BillboardBase::createEmpty(), osg::XWindowBase::shallowCopy(), osg::WIN32WindowBase::shallowCopy(), osg::ViewportBase::shallowCopy(), osg::VertexProgramChunkBase::shallowCopy(), osg::TwoSidedLightingChunkBase::shallowCopy(), osg::TransformChunkBase::shallowCopy(), osg::TransformBase::shallowCopy(), osg::TileCameraDecoratorBase::shallowCopy(), osg::TextureTransformChunkBase::shallowCopy(), osg::TextureGrabForegroundBase::shallowCopy(), osg::TextureGrabBackgroundBase::shallowCopy(), osg::TextureChunkBase::shallowCopy(), osg::TextureBackgroundBase::shallowCopy(), osg::TexGenChunkBase::shallowCopy(), osg::SwitchMaterialBase::shallowCopy(), osg::SwitchBase::shallowCopy(), osg::SurfaceBase::shallowCopy(), osg::StringAttributeMapBase::shallowCopy(), osg::StereoBufferViewportBase::shallowCopy(), osg::StencilChunkBase::shallowCopy(), osg::StateSortingGroupBase::shallowCopy(), osg::StateBase::shallowCopy(), osg::SpotLightBase::shallowCopy(), osg::SortFirstWindowBase::shallowCopy(), osg::SolidBackgroundBase::shallowCopy(), osg::SlicesBase::shallowCopy(), osg::SkyBackgroundBase::shallowCopy(), shallowCopy(), osg::SimpleStatisticsForegroundBase::shallowCopy(), osg::SimpleMaterialBase::shallowCopy(), osg::SHLParameterChunkBase::shallowCopy(), osg::SHLChunkBase::shallowCopy(), osg::ShearedStereoCameraDecoratorBase::shallowCopy(), osg::ShaderParameterVec4fBase::shallowCopy(), osg::ShaderParameterVec3fBase::shallowCopy(), osg::ShaderParameterVec2fBase::shallowCopy(), osg::ShaderParameterStringBase::shallowCopy(), osg::ShaderParameterRealBase::shallowCopy(), osg::ShaderParameterMVec4fBase::shallowCopy(), osg::ShaderParameterMVec3fBase::shallowCopy(), osg::ShaderParameterMVec2fBase::shallowCopy(), osg::ShaderParameterMRealBase::shallowCopy(), osg::ShaderParameterMMatrixBase::shallowCopy(), osg::ShaderParameterMIntBase::shallowCopy(), osg::ShaderParameterMatrixBase::shallowCopy(), osg::ShaderParameterIntBase::shallowCopy(), osg::ShaderParameterBoolBase::shallowCopy(), osg::ShadeModelChunkBase::shallowCopy(), osg::ScreenGroupBase::shallowCopy(), osg::SClipPlaneChunkBase::shallowCopy(), osg::ResolutionDisplayFilterBase::shallowCopy(), osg::RenderOptionsBase::shallowCopy(), osg::RegisterCombinersChunkBase::shallowCopy(), osg::QTWindowBase::shallowCopy(), osg::ProxyGroupBase::shallowCopy(), osg::ProjectionCameraDecoratorBase::shallowCopy(), osg::PolygonForegroundBase::shallowCopy(), osg::PolygonChunkBase::shallowCopy(), osg::PolygonBackgroundBase::shallowCopy(), osg::PointLightBase::shallowCopy(), osg::PointChunkBase::shallowCopy(), osg::PhongMaterialBase::shallowCopy(), osg::PerspectiveCameraBase::shallowCopy(), osg::PassiveWindowBase::shallowCopy(), osg::PassiveViewportBase::shallowCopy(), osg::PassiveBackgroundBase::shallowCopy(), osg::ParticlesBase::shallowCopy(), osg::OrthographicCameraBase::shallowCopy(), osg::OffsetCameraDecoratorBase::shallowCopy(), osg::OffCenterPerspectiveCameraBase::shallowCopy(), osg::MultiSwitchBase::shallowCopy(), osg::MultiPassMaterialBase::shallowCopy(), osg::MultiDisplayWindowBase::shallowCopy(), osg::MatrixCameraDecoratorBase::shallowCopy(), osg::MatrixCameraBase::shallowCopy(), osg::MaterialPoolBase::shallowCopy(), osg::MaterialGroupBase::shallowCopy(), osg::MaterialChunkBase::shallowCopy(), osg::LogicOpChunkBase::shallowCopy(), osg::LineChunkBase::shallowCopy(), osg::LightModelChunkBase::shallowCopy(), osg::LightEnvBase::shallowCopy(), osg::LightChunkBase::shallowCopy(), osg::InverseTransformBase::shallowCopy(), osg::InlineBase::shallowCopy(), osg::ImageForegroundBase::shallowCopy(), osg::ImageBase::shallowCopy(), osg::ImageBackgroundBase::shallowCopy(), osg::GroupBase::shallowCopy(), osg::GraphicStatisticsForegroundBase::shallowCopy(), osg::GradientBackgroundBase::shallowCopy(), osg::GrabForegroundBase::shallowCopy(), osg::GLUTWindowBase::shallowCopy(), osg::GeometryBase::shallowCopy(), osg::FresnelMaterialBase::shallowCopy(), osg::FragmentProgramChunkBase::shallowCopy(), osg::FogChunkBase::shallowCopy(), osg::FogBase::shallowCopy(), osg::FileGrabForegroundBase::shallowCopy(), osg::FCPtrAttributeMapBase::shallowCopy(), osg::FBOViewportBase::shallowCopy(), osg::FatBorderChunkBase::shallowCopy(), osg::DVRVolumeTextureBase::shallowCopy(), osg::DVRVolumeBase::shallowCopy(), osg::DVRSimpleShaderBase::shallowCopy(), osg::DVRSimpleLUTShaderBase::shallowCopy(), osg::DVRMtexLUTShaderBase::shallowCopy(), osg::DVRLookupTableBase::shallowCopy(), osg::DVRIsoSurfaceBase::shallowCopy(), osg::DVRIsoShaderBase::shallowCopy(), osg::DVRGeometryBase::shallowCopy(), osg::DVRClipObjectsBase::shallowCopy(), osg::DVRClipGeometryBase::shallowCopy(), osg::DVRAppearanceBase::shallowCopy(), osg::DistortionDisplayFilterBase::shallowCopy(), osg::DistanceLODBase::shallowCopy(), osg::DisplayFilterForegroundBase::shallowCopy(), osg::DisplayCalibrationBase::shallowCopy(), osg::DirectionalLightBase::shallowCopy(), osg::DepthClearBackgroundBase::shallowCopy(), osg::DepthChunkBase::shallowCopy(), osg::CubeTextureChunkBase::shallowCopy(), osg::ComponentTransformBase::shallowCopy(), osg::ColorMaskChunkBase::shallowCopy(), osg::ColorDisplayFilterBase::shallowCopy(), osg::ColorBufferViewportBase::shallowCopy(), osg::ClusterWindowBase::shallowCopy(), osg::ClipPlaneChunkBase::shallowCopy(), osg::ClipPlaneBase::shallowCopy(), osg::ChunkMaterialBase::shallowCopy(), osg::BlendChunkBase::shallowCopy(), and osg::BillboardBase::shallowCopy().
00141 { 00142 typedef typename ObjectPtrT::StoredObjectType ObjectType; 00143 00144 UInt8 *pTmp; 00145 00146 result._containerSize = sizeof(ObjectType); 00147 00148 pTmp = 00149 static_cast<UInt8 *>(operator new( 00150 sizeof(Int32) + // ReferenceCount 00151 sizeof(UInt32) + // ContainerId 00152 sizeof(ObjectType) * ThreadManager::getNumAspects())); 00153 00154 *(reinterpret_cast<Int32 *>(pTmp)) = 0; 00155 00156 pTmp += sizeof(Int32); 00157 00158 result._storeP = (pTmp + sizeof(UInt32)); 00159 00160 #ifdef OSG_DEBUG_FCPTR 00161 result._typedStoreP = reinterpret_cast<FieldContainer *>(result._storeP); 00162 #endif 00163 00164 *(reinterpret_cast<UInt32 *>(pTmp)) = 00165 FieldContainerFactory::the()->registerFieldContainer(result); 00166 00167 #ifdef OSG_INVALID_PTR_CHECK 00168 result._id = *(reinterpret_cast<UInt32 *>(pTmp)); 00169 #endif 00170 00171 Thread::getCurrentChangeList()->addCreated( 00172 *(reinterpret_cast<UInt32 *>(pTmp))); 00173 00174 pTmp += sizeof(UInt32); 00175 00176 ObjectType *aObject = reinterpret_cast<ObjectType *>(pTmp); 00177 00178 for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++) 00179 { 00180 pTmp = 00181 reinterpret_cast<UInt8 *>(new (pTmp) ObjectType(*prototypeP)); 00182 00183 pTmp += sizeof(ObjectType); 00184 } 00185 00186 result->onCreate(prototypeP); 00187 00188 for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++) 00189 { 00190 aObject[i].onCreateAspect(aObject, prototypeP); 00191 } 00192 00193 #if defined(OSG_GV_BETA) && defined(OSG_DBG_MEM) 00194 00195 fprintf(stderr, "GV_MEM_FC_DBG : (%u) cc (%p|%u)\n", 00196 Thread::getAspect(), 00197 result._storeP, 00198 // ObjectType::getClassType().getCName(), 00199 ObjectType::getClassType().getId()); 00200 #endif 00201 00202 #ifdef OSG_DEBUG_TYPED_FCPTR 00203 result.updateTypedStore(); 00204 #endif 00205 }
| void osg::FieldContainer::newPtr | ( | ObjectPtrT & | result | ) | [inline, static, protected, inherited] |
Definition at line 208 of file OSGFieldContainerImpl.inl.
References osg::ChangeList::addCreated(), osg::PThreadBase::getAspect(), osg::PThreadBase::getCurrentChangeList(), osg::ThreadManager::getNumAspects(), osg::FieldContainerFactory::registerFieldContainer(), and osg::FieldContainerFactory::the().
00209 { 00210 typedef typename ObjectPtrT::StoredObjectType ObjectType; 00211 00212 UInt8 *pTmp; 00213 00214 result._containerSize = sizeof(ObjectType); 00215 00216 pTmp = 00217 static_cast<UInt8 *>(operator new( 00218 sizeof(Int32) + // ReferenceCount 00219 sizeof(UInt32) + // ContainerId 00220 sizeof(ObjectType) * ThreadManager::getNumAspects())); 00221 00222 *(reinterpret_cast<Int32 *>(pTmp)) = 0; 00223 00224 pTmp += sizeof(Int32); 00225 00226 result._storeP = (pTmp + sizeof(UInt32)); 00227 00228 #ifdef OSG_DEBUG_FCPTR 00229 result._typedStoreP = reinterpret_cast<FieldContainer *>(result._storeP); 00230 #endif 00231 00232 *(reinterpret_cast<UInt32 *>(pTmp)) = 00233 FieldContainerFactory::the()->registerFieldContainer(result); 00234 00235 #ifdef OSG_INVALID_PTR_CHECK 00236 result._id = *(reinterpret_cast<UInt32 *>(pTmp)); 00237 #endif 00238 00239 Thread::getCurrentChangeList()->addCreated( 00240 *(reinterpret_cast<UInt32 *>(pTmp))); 00241 00242 pTmp += sizeof(UInt32); 00243 00244 ObjectType *aObject = reinterpret_cast<ObjectType *>(pTmp); 00245 00246 for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++) 00247 { 00248 pTmp = reinterpret_cast<UInt8 *>(new (pTmp) ObjectType()); 00249 00250 pTmp += sizeof(ObjectType); 00251 } 00252 00253 result->onCreate(); 00254 00255 for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++) 00256 { 00257 aObject[i].onCreateAspect(aObject); 00258 } 00259 00260 #if defined(OSG_GV_BETA) && defined(OSG_DBG_MEM) 00261 fprintf(stderr, "GV_MEM_FC_DBG : (%u) c (%p|%u)\n", 00262 Thread::getAspect(), 00263 result._storeP, 00264 // ObjectType::getClassType().getCName(), 00265 ObjectType::getClassType().getId()); 00266 #endif 00267 00268 #ifdef OSG_DEBUG_TYPED_FCPTR 00269 result.updateTypedStore(); 00270 #endif 00271 }
| void osg::FieldContainer::beginEditX | ( | const BitVector & | whichField, | |
| FieldTypeT & | field | |||
| ) | [inline, protected, inherited] |
Definition at line 293 of file OSGFieldContainerImpl.inl.
| void osg::FieldContainer::endEditX | ( | const BitVector & | whichField, | |
| FieldTypeT & | field | |||
| ) | [inline, protected, inherited] |
Definition at line 299 of file OSGFieldContainerImpl.inl.
References osg::endEditCP().
00300 { 00301 FieldContainerPtr tmpPtr(this); 00302 endEditCP(tmpPtr, whichField); 00303 }
| void osg::FieldContainer::onCreate | ( | const FieldContainer * | source = NULL |
) | [inline, protected, inherited] |
Reimplemented in osg::Node, osg::Geometry, osg::FatBorderChunk, osg::Surface, osg::CubeTextureChunk, osg::FragmentProgramChunk, osg::ProgramChunk, osg::TextureChunk, osg::VertexProgramChunk, osg::FBOViewport, osg::SkyBackground, osg::Window, osg::ShaderParameterChunk, and osg::SHLChunk.
Definition at line 326 of file OSGFieldContainerImpl.inl.
Referenced by osg::SkyBackground::onCreate(), and osg::ShaderParameterChunk::onCreate().
| void osg::FieldContainer::onCreateAspect | ( | const FieldContainer * | aspect0, | |
| const FieldContainer * | source = NULL | |||
| ) | [inline, protected, inherited] |
Reimplemented in osg::Window.
Definition at line 331 of file OSGFieldContainerImpl.inl.
| void FieldContainer::onDestroy | ( | void | ) | [protected, virtual, inherited] |
Reimplemented in osg::NodeCore, osg::Attachment, osg::Geometry, osg::Surface, osg::MaterialPool, osg::CubeTextureChunk, osg::TextureChunk, osg::FBOViewport, osg::SkyBackground, osg::Window, osg::ShaderParameterChunk, and osg::SHLChunk.
Definition at line 98 of file OSGFieldContainer.cpp.
Referenced by osg::SkyBackground::onDestroy().
friend class FieldContainer [friend] |
Reimplemented from osg::SimpleMaterial.
Reimplemented in osg::SimpleTexturedMaterial.
Definition at line 307 of file OSGSimpleTexturedMaterialBase.h.
const osg::BitVector osg::SimpleTexturedMaterialBase::ImageFieldMask [static] |
(TypeTraits<BitVector>::One << SimpleTexturedMaterialBase::ImageFieldId)
Definition at line 106 of file OSGSimpleTexturedMaterialBase.h.
Referenced by osg::SimpleTexturedMaterial::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().
(TypeTraits<BitVector>::One << SimpleTexturedMaterialBase::MinFilterFieldId)
Definition at line 107 of file OSGSimpleTexturedMaterialBase.h.
Referenced by osg::SimpleTexturedMaterial::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().
(TypeTraits<BitVector>::One << SimpleTexturedMaterialBase::MagFilterFieldId)
Definition at line 108 of file OSGSimpleTexturedMaterialBase.h.
Referenced by osg::SimpleTexturedMaterial::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().
const osg::BitVector osg::SimpleTexturedMaterialBase::EnvModeFieldMask [static] |
(TypeTraits<BitVector>::One << SimpleTexturedMaterialBase::EnvModeFieldId)
Definition at line 109 of file OSGSimpleTexturedMaterialBase.h.
Referenced by osg::SimpleTexturedMaterial::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().
const osg::BitVector osg::SimpleTexturedMaterialBase::EnvMapFieldMask [static] |
(TypeTraits<BitVector>::One << SimpleTexturedMaterialBase::EnvMapFieldId)
Definition at line 110 of file OSGSimpleTexturedMaterialBase.h.
Referenced by osg::SimpleTexturedMaterial::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().
const osg::BitVector osg::SimpleTexturedMaterialBase::MTInfluenceMask [static] |
(Inherited::MTInfluenceMask) |
(static_cast<BitVector>(0x0) << Inherited::NextFieldId)
Reimplemented from osg::SimpleMaterialBase.
Definition at line 113 of file OSGSimpleTexturedMaterialBase.h.
ImagePtr osg::SimpleTexturedMaterialBase::_sfImage [protected] |
Defines the texture image.
Definition at line 251 of file OSGSimpleTexturedMaterialBase.h.
Referenced by copyFromBin(), copyToBin(), editImage(), editSFImage(), executeSyncImpl(), getBinSize(), getImage(), getSFImage(), setImage(), osg::SimpleTexturedMaterial::setImage(), and osg::SimpleTexturedMaterial::~SimpleTexturedMaterial().
GLenum osg::SimpleTexturedMaterialBase::_sfMinFilter [protected] |
Defines the minification filter, see glTexParameter for details. Default: GL_LINEAR_MIPMAP_LINEAR.
Definition at line 252 of file OSGSimpleTexturedMaterialBase.h.
Referenced by copyFromBin(), copyToBin(), editMinFilter(), editSFMinFilter(), executeSyncImpl(), getBinSize(), getMinFilter(), getSFMinFilter(), and setMinFilter().
GLenum osg::SimpleTexturedMaterialBase::_sfMagFilter [protected] |
Defines the magnification filter, see glTexParameter for details. Default: GL_LINEAR
Definition at line 253 of file OSGSimpleTexturedMaterialBase.h.
Referenced by copyFromBin(), copyToBin(), editMagFilter(), editSFMagFilter(), executeSyncImpl(), getBinSize(), getMagFilter(), getSFMagFilter(), and setMagFilter().
GLenum osg::SimpleTexturedMaterialBase::_sfEnvMode [protected] |
Sets the environment mode, defining how texture and lighting color interact. Default: GL_REPLACE.
Definition at line 254 of file OSGSimpleTexturedMaterialBase.h.
Referenced by copyFromBin(), copyToBin(), editEnvMode(), editSFEnvMode(), executeSyncImpl(), getBinSize(), getEnvMode(), getSFEnvMode(), and setEnvMode().
bool osg::SimpleTexturedMaterialBase::_sfEnvMap [protected] |
Defines whether to use the texture as a spherical environment map.
Definition at line 255 of file OSGSimpleTexturedMaterialBase.h.
Referenced by copyFromBin(), copyToBin(), editEnvMap(), editSFEnvMap(), executeSyncImpl(), getBinSize(), getEnvMap(), getSFEnvMap(), and setEnvMap().
FieldDescription * osg::SimpleTexturedMaterialBase::_desc [static, private] |
{
new FieldDescription(SFImagePtr::getClassType(),
"image",
ImageFieldId, ImageFieldMask,
false,
reinterpret_cast<FieldAccessMethod>(&SimpleTexturedMaterialBase::editSFImage)),
new FieldDescription(SFGLenum::getClassType(),
"minFilter",
MinFilterFieldId, MinFilterFieldMask,
false,
reinterpret_cast<FieldAccessMethod>(&SimpleTexturedMaterialBase::editSFMinFilter)),
new FieldDescription(SFGLenum::getClassType(),
"magFilter",
MagFilterFieldId, MagFilterFieldMask,
false,
reinterpret_cast<FieldAccessMethod>(&SimpleTexturedMaterialBase::editSFMagFilter)),
new FieldDescription(SFGLenum::getClassType(),
"envMode",
EnvModeFieldId, EnvModeFieldMask,
false,
reinterpret_cast<FieldAccessMethod>(&SimpleTexturedMaterialBase::editSFEnvMode)),
new FieldDescription(SFBool::getClassType(),
"envMap",
EnvMapFieldId, EnvMapFieldMask,
false,
reinterpret_cast<FieldAccessMethod>(&SimpleTexturedMaterialBase::editSFEnvMap))
}
Reimplemented from osg::SimpleMaterialBase.
Definition at line 309 of file OSGSimpleTexturedMaterialBase.h.
FieldContainerType osg::SimpleTexturedMaterialBase::_type [static, private] |
Reimplemented from osg::SimpleMaterialBase.
Definition at line 310 of file OSGSimpleTexturedMaterialBase.h.
Referenced by getClassType(), getClassTypeId(), and getType().
MaterialChunkPtr osg::SimpleMaterial::_materialChunk [protected, inherited] |
Definition at line 126 of file OSGSimpleMaterial.h.
Referenced by osg::SimpleMaterial::makeState(), osg::SimpleMaterial::prepareLocalChunks(), osg::SimpleMaterial::rebuildState(), and osg::SimpleMaterial::~SimpleMaterial().
BlendChunkPtr osg::SimpleMaterial::_blendChunk [protected, inherited] |
Definition at line 127 of file OSGSimpleMaterial.h.
Referenced by osg::SimpleTexturedMaterial::makeState(), osg::SimpleMaterial::makeState(), osg::SimpleMaterial::prepareLocalChunks(), osg::SimpleTexturedMaterial::rebuildState(), osg::SimpleMaterial::rebuildState(), and osg::SimpleMaterial::~SimpleMaterial().
const osg::BitVector osg::SimpleMaterialBase::AmbientFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << SimpleMaterialBase::AmbientFieldId)
Definition at line 112 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::executeSyncImpl(), and osg::SimpleMaterialBase::getBinSize().
const osg::BitVector osg::SimpleMaterialBase::DiffuseFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << SimpleMaterialBase::DiffuseFieldId)
Definition at line 113 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::executeSyncImpl(), and osg::SimpleMaterialBase::getBinSize().
const osg::BitVector osg::SimpleMaterialBase::SpecularFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << SimpleMaterialBase::SpecularFieldId)
Definition at line 114 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::executeSyncImpl(), and osg::SimpleMaterialBase::getBinSize().
const osg::BitVector osg::SimpleMaterialBase::ShininessFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << SimpleMaterialBase::ShininessFieldId)
Definition at line 115 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::executeSyncImpl(), and osg::SimpleMaterialBase::getBinSize().
const osg::BitVector osg::SimpleMaterialBase::EmissionFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << SimpleMaterialBase::EmissionFieldId)
Definition at line 116 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::executeSyncImpl(), and osg::SimpleMaterialBase::getBinSize().
const osg::BitVector osg::SimpleMaterialBase::TransparencyFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << SimpleMaterialBase::TransparencyFieldId)
Definition at line 117 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::executeSyncImpl(), and osg::SimpleMaterialBase::getBinSize().
const osg::BitVector osg::SimpleMaterialBase::LitFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << SimpleMaterialBase::LitFieldId)
Definition at line 118 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::executeSyncImpl(), and osg::SimpleMaterialBase::getBinSize().
const osg::BitVector osg::SimpleMaterialBase::ColorMaterialFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << SimpleMaterialBase::ColorMaterialFieldId)
Definition at line 119 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::executeSyncImpl(), and osg::SimpleMaterialBase::getBinSize().
Color3f osg::SimpleMaterialBase::_sfAmbient [protected, inherited] |
Definition at line 299 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::editAmbient(), osg::SimpleMaterialBase::editSFAmbient(), osg::SimpleMaterialBase::executeSyncImpl(), osg::SimpleMaterialBase::getAmbient(), osg::SimpleMaterialBase::getBinSize(), osg::SimpleMaterialBase::getSFAmbient(), and osg::SimpleMaterialBase::setAmbient().
Color3f osg::SimpleMaterialBase::_sfDiffuse [protected, inherited] |
Definition at line 300 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::editDiffuse(), osg::SimpleMaterialBase::editSFDiffuse(), osg::SimpleMaterialBase::executeSyncImpl(), osg::SimpleMaterialBase::getBinSize(), osg::SimpleMaterialBase::getDiffuse(), osg::SimpleMaterialBase::getSFDiffuse(), and osg::SimpleMaterialBase::setDiffuse().
Color3f osg::SimpleMaterialBase::_sfSpecular [protected, inherited] |
Definition at line 301 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::editSFSpecular(), osg::SimpleMaterialBase::editSpecular(), osg::SimpleMaterialBase::executeSyncImpl(), osg::SimpleMaterialBase::getBinSize(), osg::SimpleMaterialBase::getSFSpecular(), osg::SimpleMaterialBase::getSpecular(), and osg::SimpleMaterialBase::setSpecular().
Real32 osg::SimpleMaterialBase::_sfShininess [protected, inherited] |
Definition at line 302 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::editSFShininess(), osg::SimpleMaterialBase::editShininess(), osg::SimpleMaterialBase::executeSyncImpl(), osg::SimpleMaterialBase::getBinSize(), osg::SimpleMaterialBase::getSFShininess(), osg::SimpleMaterialBase::getShininess(), and osg::SimpleMaterialBase::setShininess().
Color3f osg::SimpleMaterialBase::_sfEmission [protected, inherited] |
Definition at line 303 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::editEmission(), osg::SimpleMaterialBase::editSFEmission(), osg::SimpleMaterialBase::executeSyncImpl(), osg::SimpleMaterialBase::getBinSize(), osg::SimpleMaterialBase::getEmission(), osg::SimpleMaterialBase::getSFEmission(), and osg::SimpleMaterialBase::setEmission().
Real32 osg::SimpleMaterialBase::_sfTransparency [protected, inherited] |
Definition at line 304 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::editSFTransparency(), osg::SimpleMaterialBase::editTransparency(), osg::SimpleMaterialBase::executeSyncImpl(), osg::SimpleMaterialBase::getBinSize(), osg::SimpleMaterialBase::getSFTransparency(), osg::SimpleMaterialBase::getTransparency(), and osg::SimpleMaterialBase::setTransparency().
bool osg::SimpleMaterialBase::_sfLit [protected, inherited] |
Definition at line 305 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::editLit(), osg::SimpleMaterialBase::editSFLit(), osg::SimpleMaterialBase::executeSyncImpl(), osg::SimpleMaterialBase::getBinSize(), osg::SimpleMaterialBase::getLit(), osg::SimpleMaterialBase::getSFLit(), and osg::SimpleMaterialBase::setLit().
GLenum osg::SimpleMaterialBase::_sfColorMaterial [protected, inherited] |
Definition at line 306 of file OSGSimpleMaterialBase.h.
Referenced by osg::SimpleMaterialBase::copyFromBin(), osg::SimpleMaterialBase::copyToBin(), osg::SimpleMaterialBase::editColorMaterial(), osg::SimpleMaterialBase::editSFColorMaterial(), osg::SimpleMaterialBase::executeSyncImpl(), osg::SimpleMaterialBase::getBinSize(), osg::SimpleMaterialBase::getColorMaterial(), osg::SimpleMaterialBase::getSFColorMaterial(), and osg::SimpleMaterialBase::setColorMaterial().
const osg::BitVector osg::ChunkMaterialBase::ChunksFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << ChunkMaterialBase::ChunksFieldId)
Definition at line 100 of file OSGChunkMaterialBase.h.
Referenced by osg::ChunkMaterialBase::copyFromBin(), osg::ChunkMaterialBase::copyToBin(), osg::PhongMaterial::createChunkMaterial(), osg::VRMLAppearanceDesc::endNode(), osg::ChunkMaterialBase::executeSyncImpl(), osg::ChunkMaterialBase::getBinSize(), and modifyMaterial().
const osg::BitVector osg::ChunkMaterialBase::SlotsFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << ChunkMaterialBase::SlotsFieldId)
Definition at line 101 of file OSGChunkMaterialBase.h.
Referenced by osg::ChunkMaterialBase::copyFromBin(), osg::ChunkMaterialBase::copyToBin(), osg::ChunkMaterialBase::executeSyncImpl(), and osg::ChunkMaterialBase::getBinSize().
StateChunkPtr osg::ChunkMaterialBase::_mfChunks [protected, inherited] |
Definition at line 205 of file OSGChunkMaterialBase.h.
Referenced by osg::ChunkMaterial::addChunk(), osg::ChunkMaterial::addChunks(), osg::ChunkMaterial::changed(), osg::ChunkMaterial::clearChunks(), osg::ChunkMaterialBase::copyFromBin(), osg::ChunkMaterialBase::copyToBin(), osg::PhongMaterial::createFragmentProgram(), osg::SimpleMaterial::dump(), osg::ChunkMaterial::dump(), osg::ChunkMaterialBase::editChunks(), osg::ChunkMaterialBase::editMFChunks(), osg::ChunkMaterialBase::executeSyncImpl(), osg::ChunkMaterial::find(), osg::ChunkMaterialBase::getBinSize(), osg::ChunkMaterialBase::getChunks(), osg::ChunkMaterialBase::getMFChunks(), osg::ChunkMaterial::isTransparent(), osg::PhongMaterial::makeState(), osg::FresnelMaterial::makeState(), osg::PhongMaterial::rebuildState(), osg::FresnelMaterial::rebuildState(), and osg::ChunkMaterial::subChunk().
Int32 osg::ChunkMaterialBase::_mfSlots [protected, inherited] |
Definition at line 206 of file OSGChunkMaterialBase.h.
Referenced by osg::ChunkMaterial::addChunk(), osg::ChunkMaterial::addChunks(), osg::ChunkMaterialBase::copyFromBin(), osg::ChunkMaterialBase::copyToBin(), osg::ChunkMaterial::dump(), osg::ChunkMaterialBase::editMFSlots(), osg::ChunkMaterialBase::editSlots(), osg::ChunkMaterialBase::executeSyncImpl(), osg::ChunkMaterialBase::getBinSize(), osg::ChunkMaterialBase::getMFSlots(), osg::ChunkMaterialBase::getSlots(), and osg::ChunkMaterial::subChunk().
const Int32 Material::NoStateSorting = 0x7fffffff [static, inherited] |
Definition at line 78 of file OSGMaterial.h.
Referenced by osg::RenderAction::dropFunctor(), and osg::RenderAction::dropGeometry().
const Int32 Material::TransparencyAutoDetection = 0 [static, inherited] |
Definition at line 79 of file OSGMaterial.h.
Referenced by osg::MultiPassMaterial::isTransparent(), and osg::ChunkMaterial::isTransparent().
const Int32 Material::TransparencyForceTransparent = 1 [static, inherited] |
Definition at line 80 of file OSGMaterial.h.
Referenced by osg::MultiPassMaterial::isTransparent(), and osg::ChunkMaterial::isTransparent().
const Int32 Material::TransparencyForceOpaque = 2 [static, inherited] |
Definition at line 81 of file OSGMaterial.h.
StatePtr osg::Material::_pState [protected, inherited] |
Definition at line 142 of file OSGMaterial.h.
Referenced by osg::Material::getState(), osg::Material::operator==(), osg::SimpleTexturedMaterial::rebuildState(), osg::SimpleMaterial::rebuildState(), osg::PhongMaterial::rebuildState(), osg::FresnelMaterial::rebuildState(), osg::ChunkMaterial::rebuildState(), osg::Material::~Material(), and osg::SwitchMaterial::~SwitchMaterial().
const osg::BitVector osg::MaterialBase::SortKeyFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << MaterialBase::SortKeyFieldId)
Definition at line 100 of file OSGMaterialBase.h.
Referenced by osg::MaterialBase::copyFromBin(), osg::MaterialBase::copyToBin(), osg::MaterialBase::executeSyncImpl(), and osg::MaterialBase::getBinSize().
const osg::BitVector osg::MaterialBase::TransparencyModeFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << MaterialBase::TransparencyModeFieldId)
Definition at line 101 of file OSGMaterialBase.h.
Referenced by osg::MaterialBase::copyFromBin(), osg::MaterialBase::copyToBin(), osg::MaterialBase::executeSyncImpl(), and osg::MaterialBase::getBinSize().
Int32 osg::MaterialBase::_sfSortKey [protected, inherited] |
Definition at line 187 of file OSGMaterialBase.h.
Referenced by osg::MaterialBase::copyFromBin(), osg::MaterialBase::copyToBin(), osg::MaterialBase::editSFSortKey(), osg::MaterialBase::editSortKey(), osg::MaterialBase::executeSyncImpl(), osg::MaterialBase::getBinSize(), osg::Material::getRealSortKey(), osg::MaterialBase::getSFSortKey(), osg::MaterialBase::getSortKey(), and osg::MaterialBase::setSortKey().
Int32 osg::MaterialBase::_sfTransparencyMode [protected, inherited] |
Set the transparency mode, possible values are TransparencyAutoDetection, TransparencyForceTransparent and TransparencyForceOpaque
Definition at line 188 of file OSGMaterialBase.h.
Referenced by osg::MaterialBase::copyFromBin(), osg::MaterialBase::copyToBin(), osg::MaterialBase::editSFTransparencyMode(), osg::MaterialBase::editTransparencyMode(), osg::MaterialBase::executeSyncImpl(), osg::MaterialBase::getBinSize(), osg::MaterialBase::getSFTransparencyMode(), osg::MaterialBase::getTransparencyMode(), and osg::MaterialBase::setTransparencyMode().
const BitVector AttachmentContainer::AttachmentsFieldMask [static, inherited] |
(TypeTraits<BitVector>::One <<
AttachmentContainer::AttachmentsFieldId)
Definition at line 84 of file OSGAttachmentContainerImpl.h.
Referenced by osg::VRMLFile::beginNode(), osg::AttachmentContainer::changed(), osg::AttachmentContainer::copyFromBin(), osg::AttachmentContainer::copyToBin(), osg::deepCloneAttachments(), osg::VRMLAppearanceDesc::endNode(), osg::AttachmentContainer::executeSyncImpl(), and osg::AttachmentContainer::getBinSize().
SFAttachmentMap osg::AttachmentContainer::_attachmentMap [protected, inherited] |
Definition at line 161 of file OSGAttachmentContainerImpl.h.
Referenced by osg::AttachmentContainer::AttachmentContainer(), osg::AttachmentContainer::changed(), osg::AttachmentContainer::copyFromBin(), osg::AttachmentContainer::copyToBin(), osg::NodeCore::dump(), osg::Node::dump(), osg::Geometry::dump(), osg::AttachmentContainer::dump(), osg::AttachmentContainer::executeSyncImpl(), osg::AttachmentContainer::findAttachment(), osg::AttachmentContainer::getBinSize(), osg::AttachmentContainer::getSFAttachments(), osg::Node::onCreate(), osg::AttachmentContainer::subAttachment(), and osg::AttachmentContainer::~AttachmentContainer().
const BitVector osg::FieldContainer::NextFieldMask [static, inherited] |
(TypeTraits<BitVector>::One << NextFieldId)
Definition at line 75 of file OSGFieldContainerImpl.h.
const bool osg::FieldContainer::isNodeCore = false [static, inherited] |
Reimplemented in osg::NodeCore.
Definition at line 181 of file OSGFieldContainerImpl.h.
UInt32 osg::FieldContainer::_shares [protected, inherited] |
Definition at line 199 of file OSGFieldContainerImpl.h.
1.6.1