QGIS API Documentation  3.2.0-Bonn (bc43194)
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.

Since
QGIS 3.0

Definition at line 31 of file qgsphongmaterialsettings.h.

Constructor & Destructor Documentation

◆ QgsPhongMaterialSettings()

QgsPhongMaterialSettings::QgsPhongMaterialSettings ( )
inline

Definition at line 34 of file qgsphongmaterialsettings.h.

Member Function Documentation

◆ ambient()

QColor QgsPhongMaterialSettings::ambient ( ) const
inline

Returns ambient color component.

Definition at line 42 of file qgsphongmaterialsettings.h.

◆ diffuse()

QColor QgsPhongMaterialSettings::diffuse ( ) const
inline

Returns diffuse color component.

Definition at line 44 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 51 of file qgsphongmaterialsettings.h.

◆ setDiffuse()

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

Sets diffuse color component.

Definition at line 53 of file qgsphongmaterialsettings.h.

◆ setShininess()

void QgsPhongMaterialSettings::setShininess ( float  shininess)
inline

Sets shininess of the surface.

Definition at line 57 of file qgsphongmaterialsettings.h.

◆ setSpecular()

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

Sets specular color component.

Definition at line 55 of file qgsphongmaterialsettings.h.

◆ shininess()

float QgsPhongMaterialSettings::shininess ( ) const
inline

Returns shininess of the surface.

Definition at line 48 of file qgsphongmaterialsettings.h.

◆ specular()

QColor QgsPhongMaterialSettings::specular ( ) const
inline

Returns specular color component.

Definition at line 46 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: