]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMAlgo_NEW/GEOMAlgo_Splitter.hxx
Salome HOME
Mantis issue 0021191: GlueEdges and GlueFaces problem with tolerance 1. A fix by...
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_Splitter.hxx
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
2 //\r
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,\r
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS\r
5 //\r
6 // This library is free software; you can redistribute it and/or\r
7 // modify it under the terms of the GNU Lesser General Public\r
8 // License as published by the Free Software Foundation; either\r
9 // version 2.1 of the License.\r
10 //\r
11 // This library is distributed in the hope that it will be useful,\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
14 // Lesser General Public License for more details.\r
15 //\r
16 // You should have received a copy of the GNU Lesser General Public\r
17 // License along with this library; if not, write to the Free Software\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
19 //\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
21 //\r
22 //\r
23 //  File:   GEOMAlgo_Splitter.hxx\r
24 //\r
25 //  Author: Peter KURNEV\r
26 //\r
27 #ifndef _GEOMAlgo_Splitter_HeaderFile\r
28 #define _GEOMAlgo_Splitter_HeaderFile\r
29 \r
30 #include <Standard.hxx>\r
31 #include <Standard_Macro.hxx>\r
32 #include <TopTools_ListOfShape.hxx>\r
33 #include <TopTools_MapOfShape.hxx>\r
34 #include <TopAbs_ShapeEnum.hxx>\r
35 #include <Standard_Integer.hxx>\r
36 #include <GEOMAlgo_Builder.hxx>\r
37 #include <TopoDS_Shape.hxx>\r
38 \r
39 //! Implementation of Gluing Operation Algorithm (GA) <br>\r
40 //=======================================================================\r
41 //function : GEOMAlgo_Splitter\r
42 //purpose  : \r
43 //=======================================================================\r
44 class GEOMAlgo_Splitter  : public GEOMAlgo_Builder \r
45 {\r
46  public:\r
47 \r
48   //!  Empty constructor <br>\r
49   Standard_EXPORT\r
50     GEOMAlgo_Splitter();\r
51 \r
52   Standard_EXPORT\r
53     virtual ~GEOMAlgo_Splitter();\r
54   \r
55   //!  Clears internal fields and arguments <br>\r
56   Standard_EXPORT\r
57     virtual  void Clear() ;\r
58   \r
59   //!  Adds Tool argument theShape of the operation <br>\r
60   Standard_EXPORT\r
61     virtual  void AddTool(const TopoDS_Shape& theShape) ;\r
62   \r
63   //!  Returns the arguments of the operation <br>\r
64   Standard_EXPORT\r
65     const TopTools_ListOfShape& Tools() const;\r
66   \r
67   Standard_EXPORT\r
68     void SetLimit(const TopAbs_ShapeEnum aLimit) ;\r
69   \r
70   Standard_EXPORT\r
71     TopAbs_ShapeEnum Limit() const;\r
72   \r
73   Standard_EXPORT\r
74     void SetLimitMode(const Standard_Integer aLimitMode) ;\r
75   \r
76   Standard_EXPORT\r
77     Standard_Integer LimitMode() const;\r
78   //!  Adds Tool arguments of the operation as <br>\r
79   //!           shapes of upper level of container shape theShape <br>\r
80   //! ===================================================== <br>\r
81   Standard_EXPORT\r
82     void AddToolCompound(const TopoDS_Shape& theShape) ;\r
83 \r
84  protected:\r
85   //! Build the resulting shapes of type theType <br>\r
86   Standard_EXPORT\r
87     virtual  void BuildResult(const TopAbs_ShapeEnum theType) ;\r
88   //!  Provides post-tratment actions <br>\r
89   Standard_EXPORT\r
90     virtual  void PostTreat() ;\r
91 \r
92 \r
93   TopTools_ListOfShape myTools;\r
94   TopTools_MapOfShape myMapTools;\r
95   TopAbs_ShapeEnum myLimit;\r
96   Standard_Integer myLimitMode;\r
97 };\r
98 #endif\r