KurusView  1.0
MMaterial Class Reference

Public Member Functions

 MMaterial (std::string name, std::string colour, double density, unsigned int id)
 Material - Sets the propeties of the material in the model. More...
 
unsigned int getId () const
 
std::string getName () const
 getName - Gets the name of the material More...
 
void setName (const std::string name)
 
std::string getColour () const
 getColour - Gets the colour of the material More...
 
void setColour (const std::string colour)
 setColour - Sets the colour of the material More...
 
double getDensity () const
 
void setDensity (double density)
 setDensity - Sets the density of the material More...
 

Friends

std::ofstream & operator<< (std::ofstream &os, MMaterial &obj)
 

Constructor & Destructor Documentation

MMaterial::MMaterial ( std::string  name,
std::string  colour,
double  density,
unsigned int  id 
)

Material - Sets the propeties of the material in the model.

Parameters
name- The name of the material
colour- Colour of the material
density- The density of the material
id- The id of the material

Member Function Documentation

std::string MMaterial::getColour ( ) const

getColour - Gets the colour of the material

Returns
colour - The colour of the material
double MMaterial::getDensity ( ) const

getDensity - Gets the density of the material

Returns
density - The density of the material
std::string MMaterial::getName ( ) const

getName - Gets the name of the material

Returns
name- The name of the material
void MMaterial::setColour ( const std::string  colour)

setColour - Sets the colour of the material

Parameters
colour- The colour set for the material
void MMaterial::setDensity ( double  density)

setDensity - Sets the density of the material

Parameters
density- The value set for the density of the material
void MMaterial::setName ( const std::string  name)

setName - Sets the name of the material

Parameters
name- The name of the material set

Friends And Related Function Documentation

std::ofstream& operator<< ( std::ofstream &  os,
MMaterial obj 
)
friend
Parameters
os
obj
Returns

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