Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _GEOMImpl_IInsertOperations_HXX_
00024 #define _GEOMImpl_IInsertOperations_HXX_
00025
00026 #include "Utils_SALOME_Exception.hxx"
00027 #include "GEOM_IOperations.hxx"
00028 #include "GEOM_Engine.hxx"
00029 #include "GEOM_Object.hxx"
00030 #include <TDocStd_Document.hxx>
00031 #include <TColStd_HSequenceOfAsciiString.hxx>
00032 #include <TCollection_HAsciiString.hxx>
00033 #include <Resource_Manager.hxx>
00034 #include <list>
00035
00036 class Handle_TDataStd_HArray1OfByte;
00037
00038 class GEOMImpl_IInsertOperations : public GEOM_IOperations {
00039 public:
00040 Standard_EXPORT GEOMImpl_IInsertOperations(GEOM_Engine* theEngine, int theDocID);
00041 Standard_EXPORT ~GEOMImpl_IInsertOperations();
00042
00043
00044 Standard_EXPORT Handle(GEOM_Object) MakeCopy (Handle(GEOM_Object) theOriginal);
00045
00046 Standard_EXPORT Handle(GEOM_Object) Import (const TCollection_AsciiString& theFileName,
00047 const TCollection_AsciiString& theFormatType);
00048
00049 Standard_EXPORT void Export (const Handle(GEOM_Object) theOriginal,
00050 const TCollection_AsciiString& theFileName,
00051 const TCollection_AsciiString& theFormatType);
00052
00053 Standard_EXPORT Standard_Boolean ImportTranslators (Handle(TColStd_HSequenceOfAsciiString)& theFormats,
00054 Handle(TColStd_HSequenceOfAsciiString)& thePatterns);
00055
00056 Standard_EXPORT Standard_Boolean ExportTranslators (Handle(TColStd_HSequenceOfAsciiString)& theFormats,
00057 Handle(TColStd_HSequenceOfAsciiString)& thePatterns);
00058
00059 Standard_EXPORT Standard_Boolean IsSupported (const Standard_Boolean isImport,
00060 const TCollection_AsciiString& theFormat,
00061 Handle(TCollection_HAsciiString)& theLibName);
00062
00063 Standard_EXPORT int LoadTexture(const TCollection_AsciiString& theTextureFile);
00064
00065 Standard_EXPORT int AddTexture(int theWidth, int theHeight,
00066 const Handle(TDataStd_HArray1OfByte)& theTexture);
00067
00068 Standard_EXPORT Handle(TDataStd_HArray1OfByte) GetTexture(int theTextureId,
00069 int& theWidth, int& theHeight);
00070
00071 Standard_EXPORT std::list<int> GetAllTextures();
00072
00073 private:
00074 Standard_Boolean InitResMgr ();
00075
00076 private:
00077 Handle(Resource_Manager) myResMgr;
00078 Handle(Resource_Manager) myResMgrUser;
00079 };
00080
00081 #endif