Walls And Holes  1
TileMaterial Class Reference

#include <tilematerial.h>

Inheritance diagram for TileMaterial:
Collaboration diagram for TileMaterial:

Signals

void nameChanged (QString newName)
 
void textureChanged ()
 
void phongParamsChanged ()
 
void aboutToBeRemoved ()
 

Public Member Functions

 TileMaterial (QObject *parent=nullptr)
 Creates a TileMaterial with a default material. More...
 
 TileMaterial (QString name, SharedImageAndSource texture, float ambient, float diffuse, float specular, float shininess, QObject *parent=nullptr)
 Creates a TileMaterial with the given material. More...
 
QString name () const
 
SharedImageAndSource texture () const
 
float ambient () const
 
float diffuse () const
 
float specular () const
 
float shininess () const
 
void setName (QString name)
 
void setTexture (SharedImageAndSource texture)
 
void setAmbient (float ambient)
 
void setDiffuse (float diffuse)
 
void setSpecular (float specular)
 
void setShininess (float shininess)
 
bool operator== (const TileMaterial &other)
 

Static Public Member Functions

static TileMaterialgetDefaultMaterial ()
 
static TileMaterialgetDefaultGroundMaterial ()
 

Constructor & Destructor Documentation

◆ TileMaterial() [1/2]

TileMaterial::TileMaterial ( QObject *  parent = nullptr)

Creates a TileMaterial with a default material.

Here is the caller graph for this function:

◆ TileMaterial() [2/2]

TileMaterial::TileMaterial ( QString  name,
SharedImageAndSource  texture,
float  ambient,
float  diffuse,
float  specular,
float  shininess,
QObject *  parent = nullptr 
)

Creates a TileMaterial with the given material.

Member Function Documentation

◆ aboutToBeRemoved

void TileMaterial::aboutToBeRemoved ( )
signal
Here is the caller graph for this function:

◆ ambient()

float TileMaterial::ambient ( ) const
Here is the caller graph for this function:

◆ diffuse()

float TileMaterial::diffuse ( ) const
Here is the caller graph for this function:

◆ getDefaultGroundMaterial()

TileMaterial * TileMaterial::getDefaultGroundMaterial ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDefaultMaterial()

TileMaterial * TileMaterial::getDefaultMaterial ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

QString TileMaterial::name ( ) const
Here is the caller graph for this function:

◆ nameChanged

void TileMaterial::nameChanged ( QString  newName)
signal
Here is the caller graph for this function:

◆ operator==()

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

◆ phongParamsChanged

void TileMaterial::phongParamsChanged ( )
signal
Here is the caller graph for this function:

◆ setAmbient()

void TileMaterial::setAmbient ( float  ambient)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDiffuse()

void TileMaterial::setDiffuse ( float  diffuse)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setName()

void TileMaterial::setName ( QString  name)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setShininess()

void TileMaterial::setShininess ( float  shininess)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSpecular()

void TileMaterial::setSpecular ( float  specular)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTexture()

void TileMaterial::setTexture ( SharedImageAndSource  texture)
Here is the call graph for this function:

◆ shininess()

float TileMaterial::shininess ( ) const
Here is the caller graph for this function:

◆ specular()

float TileMaterial::specular ( ) const
Here is the caller graph for this function:

◆ texture()

SharedImageAndSource TileMaterial::texture ( ) const
Here is the caller graph for this function:

◆ textureChanged

void TileMaterial::textureChanged ( )
signal
Here is the caller graph for this function:

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