Back to index

salome-geom  6.5.0
GEOMImpl_IHealingOperations.hxx
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 _GEOMImpl_IHealingOperations_HXX_
00024 #define _GEOMImpl_IHealingOperations_HXX_
00025 
00026 #include "GEOM_IOperations.hxx"
00027 #include "GEOM_Engine.hxx"
00028 #include "GEOM_Object.hxx"
00029 
00030 #include <TColStd_HArray1OfExtendedString.hxx>
00031 #include <TColStd_HArray1OfInteger.hxx>
00032 
00033 #include <list>
00034 
00035 class GEOMImpl_IHealingOperations : public GEOM_IOperations {
00036  public:
00037   Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID);
00038   Standard_EXPORT ~GEOMImpl_IHealingOperations();
00039 
00040   // Apply Shape Processing to the selected Object
00041   Standard_EXPORT Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
00042                             const Handle(TColStd_HArray1OfExtendedString)& theOperations,
00043                             const Handle(TColStd_HArray1OfExtendedString)& theParams,
00044                             const Handle(TColStd_HArray1OfExtendedString)& theValues );
00045 
00046   // Retrieve default Shape Process parameters (from resource file)
00047   Standard_EXPORT void GetShapeProcessParameters( std::list<std::string>& theOperations,
00048                                                   std::list<std::string>& theParams,
00049                                                   std::list<std::string>& theValues );
00050 
00051   // Retrieve default Shape Process parameters for given operator
00052   Standard_EXPORT bool GetOperatorParameters( const std::string theOperation,
00053                                               std::list<std::string>& theParams,
00054                                               std::list<std::string>& theValues );
00055 
00056   // returns all parameters that are valid for the given operation (Shape Process operator)
00057   Standard_EXPORT static bool GetParameters( const std::string theOperation,
00058                                              std::list<std::string>& theParams );
00059 
00060   Standard_EXPORT Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
00061                                      const Handle(TColStd_HArray1OfInteger)& theFaces);
00062 
00063   Standard_EXPORT Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
00064                                     const Handle(TColStd_HArray1OfInteger)& theWires,
00065                                     bool isCommonVertex );
00066 
00067   Standard_EXPORT Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
00068                                       const Handle(TColStd_HArray1OfInteger)& theWires);
00069 
00070   Standard_EXPORT Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
00071                                  const Handle(TColStd_HArray1OfInteger)& theWires);
00072 
00073   Standard_EXPORT Handle(GEOM_Object) Sew( Handle(GEOM_Object) theObject,
00074                            double theTolerance );
00075 
00076   Standard_EXPORT Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
00077                                                   int theIndex,
00078                                                   double theValue,
00079                                                   bool isByParameter );
00080 
00081   // this function does not use Function-Driver mechanism, it just computes the free
00082   // boundary edges and returns them in the sequence.  It is called just for information reasons
00083   // and it's not intended for history/undo/redo/etc..
00084   Standard_EXPORT bool GetFreeBoundary ( Handle(GEOM_Object) theObject,
00085                          Handle(TColStd_HSequenceOfTransient)& theOutClosedWires,
00086                          Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );
00087 
00088   Standard_EXPORT Handle(GEOM_Object) ChangeOrientation( Handle(GEOM_Object) theObject);
00089   Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy( Handle(GEOM_Object) theObject);
00090 
00091   Standard_EXPORT Handle(GEOM_Object) LimitTolerance( Handle(GEOM_Object) theObject,
00092                                                       double theTolerance );
00093 
00094 };
00095 
00096 #endif