Version: 6.3.1

src/GEOMImpl/GEOMImpl_IInsertOperations.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
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
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS