#include <material.h>
Public Member Functions | |
Material (int id, double density, std::string colour, std::string name) | |
int | getId () |
double | getDensity () |
std::string | getColour () |
std::string | getName () |
void | setId (int id) |
void | setDensity (double density) |
void | setColour (std::string colour) |
void | setName (std::string name) |
Friends | |
bool | operator== (const Material &lhsMaterial, const Material &rhsMaterial) |
Material with specific density and colour.
std::string Material::getColour | ( | ) |
Return material's colour
double Material::getDensity | ( | ) |
Return material's density
int Material::getId | ( | ) |
Return material's ID
std::string Material::getName | ( | ) |
Return material's name
void Material::setColour | ( | std::string | colour | ) |
Set material's colour
void Material::setDensity | ( | double | density | ) |
Set material's density
void Material::setId | ( | int | id | ) |
Set material's ID
void Material::setName | ( | std::string | name | ) |
Set material's name
Equality operator between two materials