QGIS API Documentation
3.0.2-Girona (307d082)
|
3 Basic shading material used for rendering based on the Phong shading model with three color components: ambient, diffuse and specular. More...
#include <qgsphongmaterialsettings.h>
Public Member Functions | |
QgsPhongMaterialSettings () | |
QColor | ambient () const |
Returns ambient color component. More... | |
QColor | diffuse () const |
Returns diffuse color component. More... | |
void | readXml (const QDomElement &elem) |
Reads settings from a DOM element. More... | |
void | setAmbient (const QColor &ambient) |
Sets ambient color component. More... | |
void | setDiffuse (const QColor &diffuse) |
Sets diffuse color component. More... | |
void | setShininess (float shininess) |
Sets shininess of the surface. More... | |
void | setSpecular (const QColor &specular) |
Sets specular color component. More... | |
float | shininess () const |
Returns shininess of the surface. More... | |
QColor | specular () const |
Returns specular color component. More... | |
void | writeXml (QDomElement &elem) const |
Writes settings to a DOM element. More... | |
3 Basic shading material used for rendering based on the Phong shading model with three color components: ambient, diffuse and specular.
Definition at line 31 of file qgsphongmaterialsettings.h.
|
inline |
Definition at line 34 of file qgsphongmaterialsettings.h.
|
inline |
Returns ambient color component.
Definition at line 42 of file qgsphongmaterialsettings.h.
|
inline |
Returns diffuse color component.
Definition at line 44 of file qgsphongmaterialsettings.h.
void QgsPhongMaterialSettings::readXml | ( | const QDomElement & | elem | ) |
Reads settings from a DOM element.
Definition at line 21 of file qgsphongmaterialsettings.cpp.
|
inline |
Sets ambient color component.
Definition at line 51 of file qgsphongmaterialsettings.h.
|
inline |
Sets diffuse color component.
Definition at line 53 of file qgsphongmaterialsettings.h.
|
inline |
Sets shininess of the surface.
Definition at line 57 of file qgsphongmaterialsettings.h.
|
inline |
Sets specular color component.
Definition at line 55 of file qgsphongmaterialsettings.h.
|
inline |
Returns shininess of the surface.
Definition at line 48 of file qgsphongmaterialsettings.h.
|
inline |
Returns specular color component.
Definition at line 46 of file qgsphongmaterialsettings.h.
void QgsPhongMaterialSettings::writeXml | ( | QDomElement & | elem | ) | const |
Writes settings to a DOM element.
Definition at line 29 of file qgsphongmaterialsettings.cpp.