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

void add_material(const std::string &material_name, const const_ref<Base> &material)  

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

const Base & get_material(const std::string &material_name)  

Get material with given name

const std::string & get_name() const  

Get catalog name

void set_name(const std::string &name)  

Set catalog name

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Jan 8 00:47:24 2012 using MkDoc