QGIS API Documentation
3.6.0-Noosa (5873452)
|
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... | |
bool | operator== (const QgsPhongMaterialSettings &other) const |
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 35 of file qgsphongmaterialsettings.h.
|
inline |
Definition at line 38 of file qgsphongmaterialsettings.h.
|
inline |
Returns ambient color component.
Definition at line 46 of file qgsphongmaterialsettings.h.
|
inline |
Returns diffuse color component.
Definition at line 48 of file qgsphongmaterialsettings.h.
|
inline |
Definition at line 68 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 55 of file qgsphongmaterialsettings.h.
|
inline |
Sets diffuse color component.
Definition at line 57 of file qgsphongmaterialsettings.h.
|
inline |
Sets shininess of the surface.
Definition at line 61 of file qgsphongmaterialsettings.h.
|
inline |
Sets specular color component.
Definition at line 59 of file qgsphongmaterialsettings.h.
|
inline |
Returns shininess of the surface.
Definition at line 52 of file qgsphongmaterialsettings.h.
|
inline |
Returns specular color component.
Definition at line 50 of file qgsphongmaterialsettings.h.
void QgsPhongMaterialSettings::writeXml | ( | QDomElement & | elem | ) | const |
Writes settings to a DOM element.
Definition at line 29 of file qgsphongmaterialsettings.cpp.