geom/src/GEOMImpl/GEOMImpl_IHealingOperations.hxx

93 lines
4.3 KiB
C++
Raw Normal View History

2005-12-05 21:23:52 +05:00
// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2005-12-05 21:23:52 +05:00
//
2004-12-01 15:39:14 +05:00
using namespace std;
2004-12-01 15:39:14 +05:00
#ifndef _GEOMImpl_IHealingOperations_HXX_
#define _GEOMImpl_IHealingOperations_HXX_
#include "GEOM_IOperations.hxx"
#include "GEOM_Engine.hxx"
#include "GEOM_Object.hxx"
#include <TColStd_HArray1OfExtendedString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <list>
class GEOMImpl_IHealingOperations : public GEOM_IOperations {
public:
2005-08-11 10:43:57 +06:00
Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine, int theDocID);
Standard_EXPORT ~GEOMImpl_IHealingOperations();
2004-12-01 15:39:14 +05:00
// Apply Shape Processing to the selected Object
2005-08-11 10:43:57 +06:00
Standard_EXPORT Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
2004-12-01 15:39:14 +05:00
const Handle(TColStd_HArray1OfExtendedString)& theOperations,
const Handle(TColStd_HArray1OfExtendedString)& theParams,
const Handle(TColStd_HArray1OfExtendedString)& theValues );
// Retrieve default Shape Process parameters (from resource file)
2005-08-11 10:43:57 +06:00
Standard_EXPORT void GetShapeProcessParameters( list<string>& theOperations,
2005-01-24 21:00:40 +05:00
list<string>& theParams,
2004-12-01 15:39:14 +05:00
list<string>& theValues );
2005-01-24 21:00:40 +05:00
// Retrieve default Shape Process parameters for given operator
2005-08-11 10:43:57 +06:00
Standard_EXPORT bool GetOperatorParameters( const string theOperation,
2005-01-24 21:00:40 +05:00
list<string>& theParams,
list<string>& theValues );
2004-12-01 15:39:14 +05:00
// returns all parameters that are valid for the given operation (Shape Process operator)
2005-08-11 10:43:57 +06:00
Standard_EXPORT static bool GetParameters( const string theOperation, list<string>& theParams );
2004-12-01 15:39:14 +05:00
2005-08-11 10:43:57 +06:00
Standard_EXPORT Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
2004-12-01 15:39:14 +05:00
const Handle(TColStd_HArray1OfInteger)& theFaces);
2005-08-11 10:43:57 +06:00
Standard_EXPORT Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
2004-12-01 15:39:14 +05:00
const Handle(TColStd_HArray1OfInteger)& theWires,
bool isCommonVertex );
2005-08-11 10:43:57 +06:00
Standard_EXPORT Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
2004-12-01 15:39:14 +05:00
const Handle(TColStd_HArray1OfInteger)& theWires);
2005-08-11 10:43:57 +06:00
Standard_EXPORT Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
2004-12-01 15:39:14 +05:00
const Handle(TColStd_HArray1OfInteger)& theWires);
2005-08-11 10:43:57 +06:00
Standard_EXPORT Handle(GEOM_Object) Sew( Handle(GEOM_Object) theObject,
2004-12-01 15:39:14 +05:00
double theTolerance );
2005-08-11 10:43:57 +06:00
Standard_EXPORT Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
2004-12-01 15:39:14 +05:00
int theIndex,
double theValue,
bool isByParameter );
// this function does not use Function-Driver mechanism, it just computes the free
// boundary edges and returns them in the sequence. It is called just for information reasons
// and it's not intended for history/undo/redo/etc..
2005-08-11 10:43:57 +06:00
Standard_EXPORT bool GetFreeBoundary ( Handle(GEOM_Object) theObject,
2004-12-01 15:39:14 +05:00
Handle(TColStd_HSequenceOfTransient)& theOutClosedWires,
Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );
Standard_EXPORT Handle(GEOM_Object) ChangeOrientation( Handle(GEOM_Object) theObject);
Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy( Handle(GEOM_Object) theObject);
2004-12-01 15:39:14 +05:00
};
#endif