#include <OSGFresnelMaterialBase.h>
Inheritance diagram for osg::FresnelMaterialBase:

Rendering | |
| StatePtr | getState (void) |
| *typedef TypedFunctor1Base< Action::ResultE, PtrCallArg< DrawActionBase > > | DrawFunctor |
Public Types | |
| typedef FresnelMaterialPtr | Ptr |
| enum | { AmbientFieldId = Inherited::NextFieldId, DiffuseFieldId = AmbientFieldId + 1, SpecularFieldId = DiffuseFieldId + 1, ShininessFieldId = SpecularFieldId + 1, EmissionFieldId = ShininessFieldId + 1, TransparencyFieldId = EmissionFieldId + 1, LitFieldId = TransparencyFieldId + 1, ColorMaterialFieldId = LitFieldId + 1, IndexFieldId = ColorMaterialFieldId + 1, ScaleFieldId = IndexFieldId + 1, BiasFieldId = ScaleFieldId + 1, ImageFieldId = BiasFieldId + 1, NextFieldId = ImageFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFColor3f * | getSFAmbient (void) |
| Get the FresnelMaterial::_sfAmbient field. | |
| SFColor3f * | getSFDiffuse (void) |
| Get the FresnelMaterial::_sfDiffuse field. | |
| SFColor3f * | getSFSpecular (void) |
| Get the FresnelMaterial::_sfSpecular field. | |
| SFReal32 * | getSFShininess (void) |
| Get the FresnelMaterial::_sfShininess field. | |
| SFColor3f * | getSFEmission (void) |
| Get the FresnelMaterial::_sfEmission field. | |
| SFReal32 * | getSFTransparency (void) |
| Get the FresnelMaterial::_sfTransparency field. | |
| SFBool * | getSFLit (void) |
| Get the FresnelMaterial::_sfLit field. | |
| SFGLenum * | getSFColorMaterial (void) |
| Get the FresnelMaterial::_sfColorMaterial field. | |
| SFReal32 * | getSFIndex (void) |
| Get the FresnelMaterial::_sfIndex field. | |
| SFReal32 * | getSFScale (void) |
| Get the FresnelMaterial::_sfScale field. | |
| SFReal32 * | getSFBias (void) |
| Get the FresnelMaterial::_sfBias field. | |
| SFImagePtr * | getSFImage (void) |
| Get the FresnelMaterial::_sfImage field. | |
| Color3f & | getAmbient (void) |
| Get the value of the FresnelMaterial::_sfAmbient field. | |
| const Color3f & | getAmbient (void) const |
| Get the value of the FresnelMaterial::_sfAmbient field. | |
| Color3f & | getDiffuse (void) |
| Get the value of the FresnelMaterial::_sfDiffuse field. | |
| const Color3f & | getDiffuse (void) const |
| Get the value of the FresnelMaterial::_sfDiffuse field. | |
| Color3f & | getSpecular (void) |
| Get the value of the FresnelMaterial::_sfSpecular field. | |
| const Color3f & | getSpecular (void) const |
| Get the value of the FresnelMaterial::_sfSpecular field. | |
| Real32 & | getShininess (void) |
| Get the value of the FresnelMaterial::_sfShininess field. | |
| const Real32 & | getShininess (void) const |
| Get the value of the FresnelMaterial::_sfShininess field. | |
| Color3f & | getEmission (void) |
| Get the value of the FresnelMaterial::_sfEmission field. | |
| const Color3f & | getEmission (void) const |
| Get the value of the FresnelMaterial::_sfEmission field. | |
| Real32 & | getTransparency (void) |
| Get the value of the FresnelMaterial::_sfTransparency field. | |
| const Real32 & | getTransparency (void) const |
| Get the value of the FresnelMaterial::_sfTransparency field. | |
| bool & | getLit (void) |
| Get the value of the FresnelMaterial::_sfLit field. | |
| const bool & | getLit (void) const |
| Get the value of the FresnelMaterial::_sfLit field. | |
| GLenum & | getColorMaterial (void) |
| Get the value of the FresnelMaterial::_sfColorMaterial field. | |
| const GLenum & | getColorMaterial (void) const |
| Get the value of the FresnelMaterial::_sfColorMaterial field. | |
| Real32 & | getIndex (void) |
| Get the value of the FresnelMaterial::_sfIndex field. | |
| const Real32 & | getIndex (void) const |
| Get the value of the FresnelMaterial::_sfIndex field. | |
| Real32 & | getScale (void) |
| Get the value of the FresnelMaterial::_sfScale field. | |
| const Real32 & | getScale (void) const |
| Get the value of the FresnelMaterial::_sfScale field. | |
| Real32 & | getBias (void) |
| Get the value of the FresnelMaterial::_sfBias field. | |
| const Real32 & | getBias (void) const |
| Get the value of the FresnelMaterial::_sfBias field. | |
| ImagePtr & | getImage (void) |
| Get the value of the FresnelMaterial::_sfImage field. | |
| const ImagePtr & | getImage (void) const |
| Get the value of the FresnelMaterial::_sfImage field. | |
Field Set | |
| *void | setAmbient (const Color3f &value) |
| Set the value of the FresnelMaterial::_sfAmbient field. | |
| void | setDiffuse (const Color3f &value) |
| Set the value of the FresnelMaterial::_sfDiffuse field. | |
| void | setSpecular (const Color3f &value) |
| Set the value of the FresnelMaterial::_sfSpecular field. | |
| void | setShininess (const Real32 &value) |
| Set the value of the FresnelMaterial::_sfShininess field. | |
| void | setEmission (const Color3f &value) |
| Set the value of the FresnelMaterial::_sfEmission field. | |
| void | setTransparency (const Real32 &value) |
| Set the value of the FresnelMaterial::_sfTransparency field. | |
| void | setLit (const bool &value) |
| Set the value of the FresnelMaterial::_sfLit field. | |
| void | setColorMaterial (const GLenum &value) |
| Set the value of the FresnelMaterial::_sfColorMaterial field. | |
| void | setIndex (const Real32 &value) |
| Set the value of the FresnelMaterial::_sfIndex field. | |
| void | setScale (const Real32 &value) |
| Set the value of the FresnelMaterial::_sfScale field. | |
| void | setBias (const Real32 &value) |
| Set the value of the FresnelMaterial::_sfBias field. | |
| void | setImage (const ImagePtr &value) |
| Set the value of the FresnelMaterial::_sfImage field. | |
Binary Access | |
| *virtual UInt32 | getBinSize (const BitVector &whichField) |
| virtual void | copyToBin (BinaryDataHandler &pMem, const BitVector &whichField) |
| virtual void | copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField) |
Copy | |
| *virtual FieldContainerPtr | shallowCopy (void) const |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
Rendering | |
| *virtual void | draw (DrawFunctor &func, DrawActionBase *action) |
| virtual void | draw (Geometry *geo, DrawActionBase *action) |
| virtual StatePtr | makeState (void) |
| virtual void | rebuildState (void) |
| virtual bool | isTransparent (void) const |
Access | |
| *bool | addChunk (StateChunkPtr chunk, Int32 slot=State::AutoSlotReplace) |
| bool | subChunk (StateChunkPtr chunk, Int32 slot=State::AutoSlotReplace) |
| Int32 | find (StateChunkPtr chunk) |
| StateChunkPtr | find (const FieldContainerType &type, Int32 slot=State::AutoSlotReplace) |
| virtual bool | operator== (const Material &other) |
Comparison | |
| virtual bool | operator== (const Material &other) const |
| *virtual bool | operator< (const Material &other) const |
| virtual bool | operator!= (const Material &other) const |
Field Get | |
| *MFStateChunkPtr * | getMFChunks (void) |
| Get the ChunkMaterial::_mfChunks field. | |
| MFInt32 * | getMFSlots (void) |
| Get the ChunkMaterial::_mfSlots field. | |
| StateChunkPtr & | getChunks (const UInt32 index) |
| Get the value of the index element the ChunkMaterial::_mfChunks field. | |
| MFStateChunkPtr & | getChunks (void) |
| Get the ChunkMaterial::_mfChunks field. | |
| const MFStateChunkPtr & | getChunks (void) const |
| Get the ChunkMaterial::_mfChunks field. | |
| Int32 & | getSlots (const UInt32 index) |
| Get the value of the index element the ChunkMaterial::_mfSlots field. | |
| MFInt32 & | getSlots (void) |
| Get the ChunkMaterial::_mfSlots field. | |
| const MFInt32 & | getSlots (void) const |
| Get the ChunkMaterial::_mfSlots field. | |
Field Get | |
| *SFInt32 * | getSFSortKey (void) |
| Get the Material::_sfSortKey field. | |
| Int32 & | getSortKey (void) |
| Get the value of the Material::_sfSortKey field. | |
| const Int32 & | getSortKey (void) const |
| Get the value of the Material::_sfSortKey field. | |
Field Set | |
| *void | setSortKey (const Int32 &value) |
| Set the value of the Material::_sfSortKey field. | |
Static Public Member Functions | |
Class Get | |
| *static FieldContainerType & | getClassType (void) |
| access the type of the class | |
| static UInt32 | getClassTypeId (void) |
| access the numerical type of the class | |
Construction | |
| *static FresnelMaterialPtr | create (void) |
| create a new instance of the class | |
| static FresnelMaterialPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Class Get | |
| *static const char * | getClassname (void) |
Static Public Attributes | |
| static const osg::BitVector | AmbientFieldMask |
| static const osg::BitVector | DiffuseFieldMask |
| static const osg::BitVector | SpecularFieldMask |
| static const osg::BitVector | ShininessFieldMask |
| static const osg::BitVector | EmissionFieldMask |
| static const osg::BitVector | TransparencyFieldMask |
| static const osg::BitVector | LitFieldMask |
| static const osg::BitVector | ColorMaterialFieldMask |
| static const osg::BitVector | IndexFieldMask |
| static const osg::BitVector | ScaleFieldMask |
| static const osg::BitVector | BiasFieldMask |
| static const osg::BitVector | ImageFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const osg::BitVector | ChunksFieldMask |
| static const osg::BitVector | SlotsFieldMask |
| static const osg::BitVector | SortKeyFieldMask |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
Constants | |
| *static const Int32 | NoStateSorting = 0x7fffffff |
Protected Member Functions | |
Constructors | |
| * | FresnelMaterialBase (void) |
| FresnelMaterialBase (const FresnelMaterialBase &source) | |
Destructors | |
| *virtual | ~FresnelMaterialBase (void) |
Sync | |
| *void | executeSyncImpl (FresnelMaterialBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (ChunkMaterialBase *pOther, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (MaterialBase *pOther, const BitVector &whichField) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Protected Attributes | |
| StatePtr | _pState |
Fields | |
| *SFColor3f | _sfAmbient |
| SFColor3f | _sfDiffuse |
| SFColor3f | _sfSpecular |
| SFReal32 | _sfShininess |
| SFColor3f | _sfEmission |
| SFReal32 | _sfTransparency |
| SFBool | _sfLit |
| SFGLenum | _sfColorMaterial |
| SFReal32 | _sfIndex |
| SFReal32 | _sfScale |
| SFReal32 | _sfBias |
| SFImagePtr | _sfImage |
Fields | |
| *MFStateChunkPtr | _mfChunks |
| MFInt32 | _mfSlots |
Fields | |
| *SFInt32 | _sfSortKey |
Private Types | |
| typedef ChunkMaterial | Inherited |
Private Member Functions | |
| void | operator= (const FresnelMaterialBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| FresnelMaterial description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 92 of file OSGFresnelMaterialBase.h.
|
|
Reimplemented from osg::ChunkMaterial. Reimplemented in osg::FresnelMaterial. Definition at line 96 of file OSGFresnelMaterialBase.h. |
|
|
Reimplemented from osg::ChunkMaterialBase. Definition at line 101 of file OSGFresnelMaterialBase.h. |
|
|
Reimplemented from osg::ChunkMaterialBase. Definition at line 103 of file OSGFresnelMaterialBase.h. 00104 { 00105 AmbientFieldId = Inherited::NextFieldId, 00106 DiffuseFieldId = AmbientFieldId + 1, 00107 SpecularFieldId = DiffuseFieldId + 1, 00108 ShininessFieldId = SpecularFieldId + 1, 00109 EmissionFieldId = ShininessFieldId + 1, 00110 TransparencyFieldId = EmissionFieldId + 1, 00111 LitFieldId = TransparencyFieldId + 1, 00112 ColorMaterialFieldId = LitFieldId + 1, 00113 IndexFieldId = ColorMaterialFieldId + 1, 00114 ScaleFieldId = IndexFieldId + 1, 00115 BiasFieldId = ScaleFieldId + 1, 00116 ImageFieldId = BiasFieldId + 1, 00117 NextFieldId = ImageFieldId + 1 00118 };
|
|
|
Definition at line 286 of file OSGFresnelMaterialBase.cpp. 00286 : 00287 _sfAmbient (Color3f(0,0,0)), 00288 _sfDiffuse (Color3f(0,0,0)), 00289 _sfSpecular (Color3f(0,0,0)), 00290 _sfShininess (Real32(1)), 00291 _sfEmission (Color3f(0,0,0)), 00292 _sfTransparency (Real32(0)), 00293 _sfLit (bool(true)), 00294 _sfColorMaterial (GLenum(GL_DIFFUSE)), 00295 _sfIndex (Real32(0)), 00296 _sfScale (Real32(1)), 00297 _sfBias (Real32(1)), 00298 _sfImage (), 00299 Inherited() 00300 { 00301 }
|
|
|
Definition at line 307 of file OSGFresnelMaterialBase.cpp. 00307 : 00308 _sfAmbient (source._sfAmbient ), 00309 _sfDiffuse (source._sfDiffuse ), 00310 _sfSpecular (source._sfSpecular ), 00311 _sfShininess (source._sfShininess ), 00312 _sfEmission (source._sfEmission ), 00313 _sfTransparency (source._sfTransparency ), 00314 _sfLit (source._sfLit ), 00315 _sfColorMaterial (source._sfColorMaterial ), 00316 _sfIndex (source._sfIndex ), 00317 _sfScale (source._sfScale ), 00318 _sfBias (source._sfBias ), 00319 _sfImage (source._sfImage ), 00320 Inherited (source) 00321 { 00322 }
|
|
|
Definition at line 326 of file OSGFresnelMaterialBase.cpp.
|
|
|
Reimplemented from osg::ChunkMaterialBase. Definition at line 58 of file OSGFresnelMaterialBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::ChunkMaterialBase. Definition at line 65 of file OSGFresnelMaterialBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::ChunkMaterialBase. Definition at line 228 of file OSGFresnelMaterialBase.cpp. References _type. 00229 { 00230 return _type; 00231 }
|
|
|
Reimplemented from osg::ChunkMaterialBase. Definition at line 233 of file OSGFresnelMaterialBase.cpp. References _type. 00234 { 00235 return _type; 00236 }
|
|
|
Reimplemented from osg::ChunkMaterialBase. Definition at line 248 of file OSGFresnelMaterialBase.cpp. 00249 { 00250 return sizeof(FresnelMaterial); 00251 }
|
|
|
Definition at line 101 of file OSGFresnelMaterialBase.inl. References _sfAmbient. 00102 { 00103 return &_sfAmbient; 00104 }
|
|
|
Definition at line 108 of file OSGFresnelMaterialBase.inl. References _sfDiffuse. 00109 { 00110 return &_sfDiffuse; 00111 }
|
|
|
Definition at line 115 of file OSGFresnelMaterialBase.inl. References _sfSpecular. 00116 { 00117 return &_sfSpecular; 00118 }
|
|
|
Definition at line 122 of file OSGFresnelMaterialBase.inl. References _sfShininess. 00123 { 00124 return &_sfShininess; 00125 }
|
|
|
Definition at line 129 of file OSGFresnelMaterialBase.inl. References _sfEmission. 00130 { 00131 return &_sfEmission; 00132 }
|
|
|
Definition at line 136 of file OSGFresnelMaterialBase.inl. References _sfTransparency. 00137 { 00138 return &_sfTransparency; 00139 }
|
|
|
Definition at line 143 of file OSGFresnelMaterialBase.inl. References _sfLit. 00144 { 00145 return &_sfLit; 00146 }
|
|
|
Definition at line 150 of file OSGFresnelMaterialBase.inl. References _sfColorMaterial. 00151 { 00152 return &_sfColorMaterial; 00153 }
|
|
|
Definition at line 157 of file OSGFresnelMaterialBase.inl. References _sfIndex. 00158 { 00159 return &_sfIndex; 00160 }
|
|
|
Definition at line 164 of file OSGFresnelMaterialBase.inl. References _sfScale. 00165 { 00166 return &_sfScale; 00167 }
|
|
|
Definition at line 171 of file OSGFresnelMaterialBase.inl. References _sfBias. 00172 { 00173 return &_sfBias; 00174 }
|
|
|
Definition at line 178 of file OSGFresnelMaterialBase.inl. References _sfImage. 00179 { 00180 return &_sfImage; 00181 }
|
|
|
Definition at line 186 of file OSGFresnelMaterialBase.inl. References _sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::FresnelMaterial::makeState(), and osg::FresnelMaterial::rebuildState(). 00187 { 00188 return _sfAmbient.getValue(); 00189 }
|
|
|
Definition at line 193 of file OSGFresnelMaterialBase.inl. References _sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00194 { 00195 return _sfAmbient.getValue(); 00196 }
|
|
|
Definition at line 207 of file OSGFresnelMaterialBase.inl. References _sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::FresnelMaterial::makeState(), and osg::FresnelMaterial::rebuildState(). 00208 { 00209 return _sfDiffuse.getValue(); 00210 }
|
|
|
Definition at line 214 of file OSGFresnelMaterialBase.inl. References _sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00215 { 00216 return _sfDiffuse.getValue(); 00217 }
|
|
|
Definition at line 228 of file OSGFresnelMaterialBase.inl. References _sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::FresnelMaterial::makeState(), and osg::FresnelMaterial::rebuildState(). 00229 { 00230 return _sfSpecular.getValue(); 00231 }
|
|
|
Definition at line 235 of file OSGFresnelMaterialBase.inl. References _sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00236 { 00237 return _sfSpecular.getValue(); 00238 }
|