Back to index

salome-geom  6.5.0
GEOM_IInsertOperations_i.hh
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 _GEOM_IInsertOperations_i_HeaderFile
00024 #define _GEOM_IInsertOperations_i_HeaderFile
00025 
00026 #include "GEOMImpl_Gen.hxx"
00027 
00028 #include <SALOMEconfig.h>
00029 
00030 #include CORBA_SERVER_HEADER(GEOM_Gen)
00031 #include CORBA_CLIENT_HEADER(SALOMEDS)
00032 #include "GEOM_IOperations_i.hh"
00033 #include "GEOM_Object_i.hh"
00034 
00035 #include "GEOMImpl_IInsertOperations.hxx"
00036 
00037 class GEOM_I_EXPORT GEOM_IInsertOperations_i :
00038     public virtual POA_GEOM::GEOM_IInsertOperations,
00039     public virtual GEOM_IOperations_i
00040 {
00041  public:
00042   GEOM_IInsertOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
00043                            ::GEOMImpl_IInsertOperations* theImpl);
00044   ~GEOM_IInsertOperations_i();
00045 
00046   GEOM::GEOM_Object_ptr MakeCopy (GEOM::GEOM_Object_ptr theOriginal);
00047 
00048   void                  Export (GEOM::GEOM_Object_ptr theOriginal,
00049                                 const char*           theFileName,
00050                                 const char*           theFormatName);
00051 
00052   GEOM::GEOM_Object_ptr ImportFile (const char* theFileName,
00053                                     const char* theFormatName);
00054 
00055   void ImportTranslators (GEOM::string_array_out theFormats,
00056                           GEOM::string_array_out thePatterns);
00057 
00058   void ExportTranslators (GEOM::string_array_out theFormats,
00059                           GEOM::string_array_out thePatterns);
00060 
00061   CORBA::Long LoadTexture(const char* theTextureFile);
00062   CORBA::Long AddTexture(CORBA::Long theWidth, CORBA::Long theHeight,
00063                          const SALOMEDS::TMPFile& theTexture);
00064   SALOMEDS::TMPFile* GetTexture(CORBA::Long theID,
00065                                 CORBA::Long& theWidth,
00066                                 CORBA::Long& theHeight);
00067 
00068   GEOM::ListOfLong* GetAllTextures();
00069 
00070   ::GEOMImpl_IInsertOperations* GetOperations()
00071   { return (::GEOMImpl_IInsertOperations*)GetImpl(); }
00072 };
00073 
00074 #endif