Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ShHealOper_RemoveFace.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_RemoveFace.hxx
24 // Created: 15.04.04 18:10:16
25 // Author: Galina KULIKOVA
26 //
27 #ifndef ShHealOper_RemoveFace_HeaderFile
28 #define ShHealOper_RemoveFace_HeaderFile
29 
30 #include <MMgt_TShared.hxx>
31 #include <ShHealOper_Tool.hxx>
32 #include <TopoDS_Shape.hxx>
33 #include <TopTools_SequenceOfShape.hxx>
34 #include <TopTools_MapOfShape.hxx>
35 #include <TopoDS_Solid.hxx>
36 #include <TopoDS_Shell.hxx>
37 #include <TopoDS_Face.hxx>
38 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
40 //Class intended to removing faces from shape.
41 
43 {
44  public:
45  // ---------- PUBLIC METHODS ----------
46 
47  Standard_EXPORT ShHealOper_RemoveFace ();
48  //Empty constructor.
49 
50  Standard_EXPORT ShHealOper_RemoveFace (const TopoDS_Shape& theShape);
51  // Constructor initialized by shape from which faces will be removed.
52  Standard_EXPORT virtual void Init(const TopoDS_Shape& theShape);
53  //Method for initalization by whole shape.
54  Standard_EXPORT Standard_Boolean Perform();
55  //Removes all faces from specified shape.
56 
57  Standard_EXPORT Standard_Boolean Perform(const TopTools_SequenceOfShape& theRemovedFaces);
58  //Removes faces specified in the sequence of faces from specified shape.
59 
60 
61  private:
62 
63  Standard_Boolean removeFaces(const TopoDS_Shape& theShape,TopoDS_Shape& theNewShape);
64  Standard_Boolean removeFaces(const TopoDS_Solid& theShape,TopoDS_Shape& theNewShape);
65  Standard_Boolean removeFaces(const TopoDS_Shell& theShell,TopoDS_Shape& theNewShape);
66  Standard_Boolean isReplace(const TopoDS_Shape& theOldShape,TopoDS_Shape& theNewShape);
67  //Methods for removing faces from sub-shapes.
68 
69  void removePCurve(const TopoDS_Face& theFace);
70  //method for removing pcurves belonging to face
71 
72  Standard_Boolean isManifold(const TopoDS_Shell& aShell);
73  //denenes manifold shell.
74  private:
75  // ---------- PRIVATE FIELDS ----------
76 
77  TopTools_MapOfShape myMapFaces;
78  TopTools_IndexedDataMapOfShapeListOfShape myMapEdgesFace;
79  public:
80 // Declaration of CASCADE RTTI
81 //DEFINE_STANDARD_RTTI (ShHealOper_RemoveFace)
82 };
83 
84 // Definition of HANDLE object using Standard_DefineHandle.hxx
85 //DEFINE_STANDARD_HANDLE (ShHealOper_RemoveFace, )
86 
87 
88 #endif