Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Materials_MaterialsDictionary Class Reference

This class creates a dictionary of materials.

#include <Materials_MaterialsDictionary.hxx>

Inheritance diagram for Materials_MaterialsDictionary:
Inheritance graph
[legend]

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.


Constructor & Destructor Documentation


Member Function Documentation

Handle_Materials_Material Materials_MaterialsDictionary::Material ( const Standard_CString  amaterial) const
Handle_Materials_Material Materials_MaterialsDictionary::Material ( const Standard_Integer  anindex) const

The documentation for this class was generated from the following file: