Back to index

salome-geom  6.5.0
GEOM_IHealingOperations_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 
00024 #ifndef _GEOM_IHealingOperations_i_HeaderFile
00025 #define _GEOM_IHealingOperations_i_HeaderFile
00026 
00027 #include "GEOMImpl_Gen.hxx"
00028 
00029 #include <SALOMEconfig.h>
00030 
00031 #include CORBA_SERVER_HEADER(GEOM_Gen)
00032 #include "GEOM_IOperations_i.hh"
00033 #include "GEOM_Object_i.hh"
00034 
00035 #include "GEOMImpl_IHealingOperations.hxx"
00036 
00037 #include <TColStd_HArray1OfExtendedString.hxx>
00038 #include <TColStd_HArray1OfInteger.hxx>
00039 
00040 class GEOM_I_EXPORT GEOM_IHealingOperations_i :
00041     public virtual POA_GEOM::GEOM_IHealingOperations,
00042     public virtual GEOM_IOperations_i
00043 {
00044  public:
00045    GEOM_IHealingOperations_i(PortableServer::POA_ptr thePOA,
00046                              GEOM::GEOM_Gen_ptr theEngine,
00047                              ::GEOMImpl_IHealingOperations* theImpl);
00048    ~GEOM_IHealingOperations_i();
00049 
00050    GEOM::GEOM_Object_ptr ProcessShape(GEOM::GEOM_Object_ptr theObject,
00051                                       const GEOM::string_array& theOperations,
00052                                       const GEOM::string_array& theParams,
00053                                       const GEOM::string_array& theValues);
00054 
00055    void GetShapeProcessParameters(GEOM::string_array_out theOperations,
00056                                   GEOM::string_array_out theParams,
00057                                   GEOM::string_array_out theValues);
00058 
00059    void GetOperatorParameters (const char* theOperator,
00060                                GEOM::string_array_out theParams,
00061                                GEOM::string_array_out theValues);
00062 
00063    GEOM::GEOM_Object_ptr SuppressFaces(GEOM::GEOM_Object_ptr theObject,
00064                                        const GEOM::short_array& theFaces);
00065 
00066    GEOM::GEOM_Object_ptr CloseContour (GEOM::GEOM_Object_ptr theObject,
00067                                        const GEOM::short_array& theWires,
00068                                        CORBA::Boolean isCommonVertex);
00069 
00070    GEOM::GEOM_Object_ptr RemoveIntWires (GEOM::GEOM_Object_ptr theObject,
00071                                          const GEOM::short_array& theWires);
00072 
00073    GEOM::GEOM_Object_ptr FillHoles (GEOM::GEOM_Object_ptr theObject,
00074                                     const GEOM::short_array& theWires);
00075 
00076    GEOM::GEOM_Object_ptr Sew (GEOM::GEOM_Object_ptr theObject,
00077                               CORBA::Double theTolerance);
00078 
00079    GEOM::GEOM_Object_ptr DivideEdge (GEOM::GEOM_Object_ptr theObject,
00080                                      CORBA::Short theIndex,
00081                                      CORBA::Double theValue,
00082                                      CORBA::Boolean isByParameter);
00083 
00084    CORBA::Boolean GetFreeBoundary(GEOM::GEOM_Object_ptr theObject,
00085                                   GEOM::ListOfGO_out theClosedWires,
00086                                   GEOM::ListOfGO_out theOpenWires );
00087 
00088    GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theObject);
00089    GEOM::GEOM_Object_ptr ChangeOrientationCopy (GEOM::GEOM_Object_ptr theObject);
00090 
00091    GEOM::GEOM_Object_ptr LimitTolerance (GEOM::GEOM_Object_ptr theObject,
00092                                          CORBA::Double theTolerance);
00093 
00094    ::GEOMImpl_IHealingOperations* GetOperations() { return (::GEOMImpl_IHealingOperations*)GetImpl(); }
00095 
00096 private:
00097          Handle(TColStd_HArray1OfExtendedString) Convert( const GEOM::string_array& );
00098          Handle(TColStd_HArray1OfInteger)        Convert( const GEOM::short_array& );
00099 
00100 };
00101 
00102 #endif