class SG_EXPORT osg::Material: public Object


Inheritance:


Public Classes

[more]enum MaterialFace
[more]enum ColorMode

Public Methods

[more] Material( void )
[more]static Material* instance()
[more]virtual Object* clone() const
[more]virtual bool isSameKindAs(Object* obj)
[more]const char* className() const
[more]void apply( void )
[more]void setColorMode(ColorMode mode)
[more]void setAmbient( MaterialFace face, const Vec4& ambient )
[more]const Vec4& getAmbient(MaterialFace face) const
[more]bool getAmbientFrontAndBack()
[more]void setDiffuse( MaterialFace face, const Vec4& diffuse )
[more]const Vec4& getDiffuse(MaterialFace face) const
[more]bool getDiffuseFrontAndBack()
[more]void setSpecular( MaterialFace face, const Vec4& specular )
[more]const Vec4& getSpecular(MaterialFace face) const
[more]bool getSpecularFrontAndBack()
[more]void setEmission( MaterialFace face, const Vec4& emission )
[more]const Vec4& getEmission(MaterialFace face) const
[more]bool getEmissionFrontAndBack()
[more]void setShininess( MaterialFace face, float shininess )
[more]float getShininess(MaterialFace face) const
[more]bool getShininessFrontAndBack()

Protected Fields

[more]ColorMode _colorMode
[more]bool _ambientFrontAndBack
[more]Vec4 _ambientFront
[more]Vec4 _ambientBack
[more]bool _diffuseFrontAndBack
[more]Vec4 _diffuseFront
[more]Vec4 _diffuseBack
[more]bool _specularFrontAndBack
[more]Vec4 _specularFront
[more]Vec4 _specularBack
[more]bool _emissionFrontAndBack
[more]Vec4 _emissionFront
[more]Vec4 _emissionBack
[more]bool _shininessFrontAndBack
[more]float _shininessFront
[more]float _shininessBack

Protected Methods

[more]virtual ~Material( void )
[more]virtual bool readLocalData(Input& fr)
[more]virtual bool writeLocalData(Output& fw)
[more]bool matchFaceAndColor(Input& fr, const char* name, MaterialFace& mf, Vec4& color)


Inherited from Object:

Public Methods

ovirtual Object* readClone(Input& fr)
ovirtual bool write(Output& fw)


Inherited from Referenced:

Public Methods

oReferenced& operator = (Referenced&)
ovoid ref()
ovoid unref()
oint referenceCount()

Protected Fields

oint _refCount


Documentation

oenum MaterialFace

o FACE_FRONT

o FACE_BACK

o FACE_FRONT_AND_BACK

oenum ColorMode

o AMBIENT

o DIFFUSE

o SPECULAR

o EMISSION

o AMBIENT_AND_DIFFUSE

o OFF

o Material( void )

ostatic Material* instance()

ovirtual Object* clone() const

ovirtual bool isSameKindAs(Object* obj)

oconst char* className() const

ovoid apply( void )

ovoid setColorMode(ColorMode mode)

ovoid setAmbient( MaterialFace face, const Vec4& ambient )

oconst Vec4& getAmbient(MaterialFace face) const

obool getAmbientFrontAndBack()

ovoid setDiffuse( MaterialFace face, const Vec4& diffuse )

oconst Vec4& getDiffuse(MaterialFace face) const

obool getDiffuseFrontAndBack()

ovoid setSpecular( MaterialFace face, const Vec4& specular )

oconst Vec4& getSpecular(MaterialFace face) const

obool getSpecularFrontAndBack()

ovoid setEmission( MaterialFace face, const Vec4& emission )

oconst Vec4& getEmission(MaterialFace face) const

obool getEmissionFrontAndBack()

ovoid setShininess( MaterialFace face, float shininess )

ofloat getShininess(MaterialFace face) const

obool getShininessFrontAndBack()

ovirtual ~Material( void )

ovirtual bool readLocalData(Input& fr)

ovirtual bool writeLocalData(Output& fw)

obool matchFaceAndColor(Input& fr, const char* name, MaterialFace& mf, Vec4& color)

oColorMode _colorMode

obool _ambientFrontAndBack

oVec4 _ambientFront

oVec4 _ambientBack

obool _diffuseFrontAndBack

oVec4 _diffuseFront

oVec4 _diffuseBack

obool _specularFrontAndBack

oVec4 _specularFront

oVec4 _specularBack

obool _emissionFrontAndBack

oVec4 _emissionFront

oVec4 _emissionBack

obool _shininessFrontAndBack

ofloat _shininessFront

ofloat _shininessBack


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.