1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
\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
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
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
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
23 // File: GEOMAlgo_Splitter.hxx
\r
25 // Author: Peter KURNEV
\r
27 #ifndef _GEOMAlgo_Splitter_HeaderFile
\r
28 #define _GEOMAlgo_Splitter_HeaderFile
\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
39 //! Implementation of Gluing Operation Algorithm (GA) <br>
\r
40 //=======================================================================
\r
41 //function : GEOMAlgo_Splitter
\r
43 //=======================================================================
\r
44 class GEOMAlgo_Splitter : public GEOMAlgo_Builder
\r
48 //! Empty constructor <br>
\r
50 GEOMAlgo_Splitter();
\r
53 virtual ~GEOMAlgo_Splitter();
\r
55 //! Clears internal fields and arguments <br>
\r
57 virtual void Clear() ;
\r
59 //! Adds Tool argument theShape of the operation <br>
\r
61 virtual void AddTool(const TopoDS_Shape& theShape) ;
\r
63 //! Returns the arguments of the operation <br>
\r
65 const TopTools_ListOfShape& Tools() const;
\r
68 void SetLimit(const TopAbs_ShapeEnum aLimit) ;
\r
71 TopAbs_ShapeEnum Limit() const;
\r
74 void SetLimitMode(const Standard_Integer aLimitMode) ;
\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
82 void AddToolCompound(const TopoDS_Shape& theShape) ;
\r
85 //! Build the resulting shapes of type theType <br>
\r
87 virtual void BuildResult(const TopAbs_ShapeEnum theType) ;
\r
88 //! Provides post-tratment actions <br>
\r
90 virtual void PostTreat() ;
\r
93 TopTools_ListOfShape myTools;
\r
94 TopTools_MapOfShape myMapTools;
\r
95 TopAbs_ShapeEnum myLimit;
\r
96 Standard_Integer myLimitMode;
\r