// 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_HeaderFile #define _Materials_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Handle_Materials_MaterialsDictionary_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Materials_Material_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class Materials_MaterialsDictionary; class Materials_Material; class Materials_Color; class Materials_MaterialDefinition; class Materials_MaterialsDictionary; class Materials_FuzzyInstance; class Materials_Material; class Materials_MtsSequence; class Materials_MaterialsSequence; class Materials_SequenceNodeOfMtsSequence; //! This package is useful for creating Material objects,
//! which contain a sequence of physical properties. All
//! applications which request physical properties on a
//! given material, should reference this package.
//!
//! A predefined sequence of materials is given by the
//! dictionary of materials, and the sequence of known
//! properties is given by the material definition.
//!
//! Only the package methods are public, except the
//! DictionaryOfMaterials class which is called by the
//! method Material.
class Materials { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Sets the location and the name of the file defining
//! the definition of a material, in term of properties.
Standard_EXPORT static void MaterialFile(const Standard_CString afile) ; //! Sets the location and the name of the file defining
//! the dictionary of materials.
Standard_EXPORT static void MaterialsFile(const Standard_CString afile) ; //! Returns the location and the name of the dictionary
//! file of materials.
Standard_EXPORT static Standard_CString MaterialsFile() ; //! Returns the dictionary of materials.The dictionary is
//! created at the first call to this method, or if the
//! dictionary is not up to date with respect to the file
//! date.
Standard_EXPORT static Handle_Materials_MaterialsDictionary DictionaryOfMaterials() ; //! True if the materialofname aName exists ...
Standard_EXPORT static Standard_Boolean ExistMaterial(const Standard_CString aName) ; //! Retrieves from the dictionary the object material with
//! as name.
Standard_EXPORT static Handle_Materials_Material Material(const Standard_CString amaterial) ; //! Returns the number of materials previously stored in
//! the dictionary.
Standard_EXPORT static Standard_Integer NumberOfMaterials() ; //! This method used with the previous one, allows the
//! exploration of all the dictionary. It returns a
//! Material instance.
Standard_EXPORT static Handle_Materials_Material Material(const Standard_Integer anindex) ; protected: private: friend class Materials_Color; friend class Materials_MaterialDefinition; friend class Materials_MaterialsDictionary; friend class Materials_FuzzyInstance; friend class Materials_Material; friend class Materials_MtsSequence; friend class Materials_MaterialsSequence; friend class Materials_SequenceNodeOfMtsSequence; }; // other Inline functions and methods (like "C++: function call" methods) #endif