Material::Catalog class reference
[Core module]
Declaration
#include <Goptical/Material/Catalog>
namespace Goptical {
namespace Material {
class Catalog;
};
};
This class is a member of the Material namespace.
Inheritance
Description
Hold a glass material catalog
Members
See also the full member list section for this class.
Functions
- Catalog(const std::string &name = [...])
- void add_material(const std::string &material_name, const const_ref<Base> &material)
- void del_material(const std::string &material_name)
- const Base & get_material(const std::string &material_name)
- const std::string & get_name() const
- void set_name(const std::string &name)
Members detail
Catalog(const std::string &name = "")
Create a catalog with given name
Add a material to catalog. material object will be deleted on catalog destruction if owner is set.
void del_material(const std::string &material_name)
Remove a material from catalog
Get material with given name
const std::string & get_name() const
Get catalog name
void set_name(const std::string &name)
Set catalog name