Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ShHealOper_RemoveInternalWires.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 // File: ShHealOper_RemoveInternalWires.hxx
24 // Created: 26.04.04 11:22:26
25 // Author: Galina KULIKOVA
26 //
27 #ifndef ShHealOper_RemoveInternalWires_HeaderFile
28 #define ShHealOper_RemoveInternalWires_HeaderFile
29 
30 #include <MMgt_TShared.hxx>
31 #include <ShHealOper_Tool.hxx>
32 #include <TopoDS_Shape.hxx>
33 #include <TopTools_SequenceOfShape.hxx>
34 #include <TopoDS_Face.hxx>
35 #include <TopoDS_Wire.hxx>
36 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
37 
39 // Intended for removing internal wires from faces.
40 
42 {
43  public:
44  // ---------- PUBLIC METHODS ----------
45 
47  Standard_EXPORT ShHealOper_RemoveInternalWires () {}
48 
50  Standard_EXPORT ShHealOper_RemoveInternalWires (const TopoDS_Shape& theShape);
51  //Method for initalization by whole shape.
52 
53  Standard_EXPORT virtual void Init(const TopoDS_Shape& theShape);
54  //Method for initalization by whole shape.
55 
56  Standard_EXPORT Standard_Boolean Remove();
57  //Removes all internal wires from all faces of the shape
58 
59  Standard_EXPORT Standard_Boolean Remove(const TopTools_SequenceOfShape& theRemovedShapes);
60  //Removes wires specified in the sequence of shapes or internal wires
61  //belonging faces specified in the sequence of shape.
62 
63 
64  private:
65  // ---------- PRIVATE METHODS ----------
66 
67  Standard_Boolean removeWire(const TopoDS_Face& theFace,
68  const TopoDS_Wire& theWire);
69  void fixShape(const TopoDS_Shape& theShape );
70 
71  private:
72  // ---------- PRIVATE FIELDS ----------
73  TopTools_IndexedDataMapOfShapeListOfShape myMapWiresFace;
74 
75 
76 
77  public:
78 // Declaration of CASCADE RTTI
79 //DEFINE_STANDARD_RTTI (ShHealOper_RemoveInternalWires)
80 };
81 
82 // Definition of HANDLE object using Standard_DefineHandle.hxx
83 //DEFINE_STANDARD_HANDLE (ShHealOper_RemoveInternalWires, )
84 
85 
86 #endif