QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | List of all members
QgsPhongMaterialSettings Class Reference

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...
 

Detailed Description

3 Basic shading material used for rendering based on the Phong shading model with three color components: ambient, diffuse and specular.

Warning
This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.
Since
QGIS 3.0

Definition at line 35 of file qgsphongmaterialsettings.h.

Constructor & Destructor Documentation

QgsPhongMaterialSettings::QgsPhongMaterialSettings ( )
inline

Definition at line 38 of file qgsphongmaterialsettings.h.

Member Function Documentation

QColor QgsPhongMaterialSettings::ambient ( ) const
inline

Returns ambient color component.

Definition at line 46 of file qgsphongmaterialsettings.h.

QColor QgsPhongMaterialSettings::diffuse ( ) const
inline

Returns diffuse color component.

Definition at line 48 of file qgsphongmaterialsettings.h.

void QgsPhongMaterialSettings::readXml ( const QDomElement &  elem)

Reads settings from a DOM element.

Definition at line 21 of file qgsphongmaterialsettings.cpp.

void QgsPhongMaterialSettings::setAmbient ( const QColor &  ambient)
inline

Sets ambient color component.

Definition at line 55 of file qgsphongmaterialsettings.h.

void QgsPhongMaterialSettings::setDiffuse ( const QColor &  diffuse)
inline

Sets diffuse color component.

Definition at line 57 of file qgsphongmaterialsettings.h.

void QgsPhongMaterialSettings::setShininess ( float  shininess)
inline

Sets shininess of the surface.

Definition at line 61 of file qgsphongmaterialsettings.h.

void QgsPhongMaterialSettings::setSpecular ( const QColor &  specular)
inline

Sets specular color component.

Definition at line 59 of file qgsphongmaterialsettings.h.

float QgsPhongMaterialSettings::shininess ( ) const
inline

Returns shininess of the surface.

Definition at line 52 of file qgsphongmaterialsettings.h.

QColor QgsPhongMaterialSettings::specular ( ) const
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.


The documentation for this class was generated from the following files: