File indexing completed on 2025-01-18 10:04:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _RWObj_ObjMaterialMap_HeaderFiler
0015 #define _RWObj_ObjMaterialMap_HeaderFiler
0016
0017 #include <NCollection_DataMap.hxx>
0018 #include <RWMesh_MaterialMap.hxx>
0019
0020
0021 class RWObj_ObjMaterialMap : public RWMesh_MaterialMap
0022 {
0023 DEFINE_STANDARD_RTTIEXT(RWObj_ObjMaterialMap, RWMesh_MaterialMap)
0024 public:
0025
0026
0027 Standard_EXPORT RWObj_ObjMaterialMap (const TCollection_AsciiString& theFile);
0028
0029
0030 Standard_EXPORT virtual ~RWObj_ObjMaterialMap();
0031
0032
0033 Standard_EXPORT virtual TCollection_AsciiString AddMaterial (const XCAFPrs_Style& theStyle) Standard_OVERRIDE;
0034
0035
0036 Standard_EXPORT virtual void DefineMaterial (const XCAFPrs_Style& theStyle,
0037 const TCollection_AsciiString& theKey,
0038 const TCollection_AsciiString& theName) Standard_OVERRIDE;
0039
0040 private:
0041
0042 FILE* myFile;
0043 NCollection_DataMap<Handle(Image_Texture), TCollection_AsciiString> myImageMap;
0044
0045 };
0046
0047 #endif