|
Open CASCADE Technology
6.5.4
|
This class creates a dictionary of materials.
#include <Materials_MaterialsDictionary.hxx>

Public Member Functions | |
| Materials_MaterialsDictionary () | |
| Returns a MaterialsDictionary object which contains the sequence of all the materials the user wants to consider. | |
| Handle_Materials_Material | Material (const Standard_CString amaterial) const |
| Retrieves from the dictionary the object material with <amaterial> as name. If <amaterial> does not exist in the dictionary an exeption is raised. | |
| Standard_Boolean | ExistMaterial (const Standard_CString aName) const |
| True if the materialofname aName exists ... | |
| Standard_Integer | NumberOfMaterials () const |
| Returns the number of materials previously stored in the dictionary. | |
| Handle_Materials_Material | Material (const Standard_Integer anindex) const |
| This method used with the previous one, allow the exploration of all the dictionary. It returns a Material instance. | |
| Standard_Boolean | UpToDate () const |
| Returns true if there has been no modification of the file Materials.dat since the creation of the dictionary object, false otherwise. | |
| void | Dump (Standard_OStream &astream) const |
| Useful for debugging. | |
| void Materials_MaterialsDictionary::Dump | ( | Standard_OStream & | astream | ) | const |
| Handle_Materials_Material Materials_MaterialsDictionary::Material | ( | const Standard_CString | amaterial | ) | const |
| Handle_Materials_Material Materials_MaterialsDictionary::Material | ( | const Standard_Integer | anindex | ) | const |
1.8.0