32 name =
"unknown material";
Base class of Event, Material, PostFilter, Ray, Repere, Scene, Shape, Simulation, Source.
std::string name
Each instantiated object may be named.
A manager class for Material.
unsigned int counterKey
Counter of materials into the list.
~MaterialManager()
Destructor.
Material * requestMaterial(unsigned int key)
Return a material from the list by its index.
MaterialManager()
Constructor.
void print()
Print the materials list.
std::map< unsigned int, Material * > materials
Pointer list to materials.
unsigned int registerNewMaterial(Material *m)
Register a new material into the list.
Material()
Default constructor.
bool isNatural
Flag to define a natural material.
Material(const Material &other)
Copy constructor.
unsigned int id
Identification set by the MaterialManager.
Material(std::string _name)
Constructor by giving a name to the material.