16 #ifndef QGSPHONGMATERIALSETTINGS_H 17 #define QGSPHONGMATERIALSETTINGS_H 35 : mAmbient( QColor::fromRgbF( 0.1
f, 0.1
f, 0.1
f, 1.0
f ) )
36 , mDiffuse( QColor::fromRgbF( 0.7
f, 0.7
f, 0.7
f, 1.0
f ) )
37 , mSpecular( QColor::fromRgbF( 1.0
f, 1.0
f, 1.0
f, 1.0
f ) )
42 QColor
ambient()
const {
return mAmbient; }
44 QColor
diffuse()
const {
return mDiffuse; }
51 void setAmbient(
const QColor &ambient ) { mAmbient = ambient; }
53 void setDiffuse(
const QColor &diffuse ) { mDiffuse = diffuse; }
55 void setSpecular(
const QColor &specular ) { mSpecular = specular; }
60 void readXml(
const QDomElement &elem );
62 void writeXml( QDomElement &elem )
const;
68 float mShininess = 0.0f;
72 #endif // QGSPHONGMATERIALSETTINGS_H float shininess() const
Returns shininess of the surface.
QColor specular() const
Returns specular color component.
3 Basic shading material used for rendering based on the Phong shading model with three color compone...
QgsPhongMaterialSettings()
void setShininess(float shininess)
Sets shininess of the surface.
QColor ambient() const
Returns ambient color component.
void setDiffuse(const QColor &diffuse)
Sets diffuse color component.
QColor diffuse() const
Returns diffuse color component.
void setAmbient(const QColor &ambient)
Sets ambient color component.
void setSpecular(const QColor &specular)
Sets specular color component.