MaterialIO.Materials Class Reference


Detailed Description

Materials is an iterable container of materials.

It provides a dictionary-like interface for adding, retrieving, and removing a material, with the key being the material's name.

#include <class_material_i_o_1_1_materials.h>

List of all members.

Public Member Functions

  __init__ ()
  setProAssetReader ()
  getProAssetReader ()
  getTable ()
  setTable ()
  getLabel ()
  setLabel ()
  getNamespace ()
  setNamespace ()
  getUniqueName ()
  Returns a unique material name among the materials in this container based on the given name.
  clear ()
  delete ()
  contains ()
  fillTable ()
  Adds the material using the material name as the key.
  __setitem__ ()
  Adds the material using the material name as the key.
  __getitem__ ()
  Returns the material corresponding to the given material name.
  __delitem__ ()
  Removes the material corresponding to the given name.
  __contains__ ()
  Returns True if this contains a material with the given name.
  __len__ ()
  Returns the number of materials in this container.
  __iter__ ()
  Yield the materials in this container sorted by the labels.

Member Function Documentation

MaterialIO.Materials.__init__ ( )
MaterialIO.Materials.setProAssetReader ( )
MaterialIO.Materials.getProAssetReader ( )
MaterialIO.Materials.getTable ( )
MaterialIO.Materials.setTable ( )
MaterialIO.Materials.getLabel ( )
MaterialIO.Materials.setLabel ( )
MaterialIO.Materials.getNamespace ( )
MaterialIO.Materials.setNamespace ( )
MaterialIO.Materials.getUniqueName ( )

Returns a unique material name among the materials in this container based on the given name.

MaterialIO.Materials.clear ( )
MaterialIO.Materials.delete ( )
MaterialIO.Materials.contains ( )
MaterialIO.Materials.fillTable ( )

Adds the material using the material name as the key.

MaterialIO.Materials.__setitem__ ( )

Adds the material using the material name as the key.

MaterialIO.Materials.__getitem__ ( )

Returns the material corresponding to the given material name.

MaterialIO.Materials.__delitem__ ( )

Removes the material corresponding to the given name.

MaterialIO.Materials.__contains__ ( )

Returns True if this contains a material with the given name.

MaterialIO.Materials.__len__ ( )

Returns the number of materials in this container.

MaterialIO.Materials.__iter__ ( )

Yield the materials in this container sorted by the labels.


MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials
MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials MaterialIO.Materials