QGIS API Documentation  3.6.0-Noosa (5873452)
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...
 
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...
 

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::QgsPhongMaterialSettings ( )
inline

Definition at line 38 of file qgsphongmaterialsettings.h.

Member Function Documentation

◆ ambient()

QColor QgsPhongMaterialSettings::ambient ( ) const
inline

Returns ambient color component.

Definition at line 46 of file qgsphongmaterialsettings.h.

◆ diffuse()

QColor QgsPhongMaterialSettings::diffuse ( ) const
inline

Returns diffuse color component.

Definition at line 48 of file qgsphongmaterialsettings.h.

◆ operator==()

bool QgsPhongMaterialSettings::operator== ( const QgsPhongMaterialSettings other) const
inline

Definition at line 68 of file qgsphongmaterialsettings.h.

◆ readXml()

void QgsPhongMaterialSettings::readXml ( const QDomElement &  elem)

Reads settings from a DOM element.

Definition at line 21 of file qgsphongmaterialsettings.cpp.

◆ setAmbient()

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

Sets ambient color component.

Definition at line 55 of file qgsphongmaterialsettings.h.

◆ setDiffuse()

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

Sets diffuse color component.

Definition at line 57 of file qgsphongmaterialsettings.h.

◆ setShininess()

void QgsPhongMaterialSettings::setShininess ( float  shininess)
inline

Sets shininess of the surface.

Definition at line 61 of file qgsphongmaterialsettings.h.

◆ setSpecular()

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

Sets specular color component.

Definition at line 59 of file qgsphongmaterialsettings.h.

◆ shininess()

float QgsPhongMaterialSettings::shininess ( ) const
inline

Returns shininess of the surface.

Definition at line 52 of file qgsphongmaterialsettings.h.

◆ specular()

QColor QgsPhongMaterialSettings::specular ( ) const
inline

Returns specular color component.

Definition at line 50 of file qgsphongmaterialsettings.h.

◆ writeXml()

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: