13CAD
CAD-like software based on C++, Qt and VTK.
 All Classes Files Functions Variables Friends
Public Member Functions | Friends | List of all members
Material Class Reference

#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)
 

Detailed Description

Material with specific density and colour.

Member Function Documentation

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

Friends And Related Function Documentation

bool operator== ( const Material lhsMaterial,
const Material rhsMaterial 
)
friend

Equality operator between two materials


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