// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Materials_MaterialsDictionary_HeaderFile #define _Materials_MaterialsDictionary_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Materials_MaterialsDictionary_HeaderFile #include #endif #ifndef _Handle_TCollection_HAsciiString_HeaderFile #include #endif #ifndef _Standard_Time_HeaderFile #include #endif #ifndef _Handle_Materials_MaterialsSequence_HeaderFile #include #endif #ifndef _Standard_Transient_HeaderFile #include #endif #ifndef _Handle_Materials_Material_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_OStream_HeaderFile #include #endif class TCollection_HAsciiString; class Materials_MaterialsSequence; class Standard_NoSuchObject; class Materials_Material; //! This class creates a dictionary of materials.
class Materials_MaterialsDictionary : public Standard_Transient { public: //! Returns a MaterialsDictionary object which contains
//! the sequence of all the materials the user wants to
//! consider.
Standard_EXPORT Materials_MaterialsDictionary(); //! Retrieves from the dictionary the object material with
//! as name. If does not exist in
//! the dictionary an exeption is raised.
Standard_EXPORT Handle_Materials_Material Material(const Standard_CString amaterial) const; //! True if the materialofname aName exists ...
Standard_EXPORT Standard_Boolean ExistMaterial(const Standard_CString aName) const; //! Returns the number of materials previously stored in
//! the dictionary.
Standard_EXPORT Standard_Integer NumberOfMaterials() const; //! This method used with the previous one, allow the
//! exploration of all the dictionary. It returns a
//! Material instance.
Standard_EXPORT Handle_Materials_Material Material(const Standard_Integer anindex) const; //! Returns true if there has been no modification of the
//! file Materials.dat since the creation of the dictionary
//! object, false otherwise.
Standard_EXPORT Standard_Boolean UpToDate() const; //! Useful for debugging.
Standard_EXPORT void Dump(Standard_OStream& astream) const; DEFINE_STANDARD_RTTI(Materials_MaterialsDictionary) protected: private: Handle_TCollection_HAsciiString thefilename; Standard_Time thetime; Handle_Materials_MaterialsSequence thematerialssequence; }; // other Inline functions and methods (like "C++: function call" methods) #endif