Back to index

salome-geom  6.5.0
GEOMAlgo_Splitter.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 //  File:   GEOMAlgo_Splitter.hxx
00023 //
00024 //  Author: Peter KURNEV
00025 //
00026 #ifndef _GEOMAlgo_Splitter_HeaderFile
00027 #define _GEOMAlgo_Splitter_HeaderFile
00028 
00029 #include <Standard.hxx>
00030 #include <Standard_Macro.hxx>
00031 #include <TopTools_ListOfShape.hxx>
00032 #include <TopTools_MapOfShape.hxx>
00033 #include <TopAbs_ShapeEnum.hxx>
00034 #include <Standard_Integer.hxx>
00035 #include <GEOMAlgo_Builder.hxx>
00036 #include <TopoDS_Shape.hxx>
00037 
00039 //=======================================================================
00040 //function : GEOMAlgo_Splitter
00041 //purpose  :
00042 //=======================================================================
00043 class GEOMAlgo_Splitter  : public GEOMAlgo_Builder
00044 {
00045  public:
00046 
00048   Standard_EXPORT
00049     GEOMAlgo_Splitter();
00050 
00051   Standard_EXPORT
00052     virtual ~GEOMAlgo_Splitter();
00053 
00055   Standard_EXPORT
00056     virtual  void Clear() ;
00057 
00059   Standard_EXPORT
00060     virtual  void AddTool(const TopoDS_Shape& theShape) ;
00061 
00063   Standard_EXPORT
00064     const TopTools_ListOfShape& Tools() const;
00065 
00066   Standard_EXPORT
00067     void SetLimit(const TopAbs_ShapeEnum aLimit) ;
00068 
00069   Standard_EXPORT
00070     TopAbs_ShapeEnum Limit() const;
00071 
00072   Standard_EXPORT
00073     void SetLimitMode(const Standard_Integer aLimitMode) ;
00074 
00075   Standard_EXPORT
00076     Standard_Integer LimitMode() const;
00080   Standard_EXPORT
00081     void AddToolCompound(const TopoDS_Shape& theShape) ;
00082 
00083  protected:
00085   Standard_EXPORT
00086     virtual  void BuildResult(const TopAbs_ShapeEnum theType) ;
00088   Standard_EXPORT
00089     virtual  void PostTreat() ;
00090 
00091 
00092   TopTools_ListOfShape myTools;
00093   TopTools_MapOfShape myMapTools;
00094   TopAbs_ShapeEnum myLimit;
00095   Standard_Integer myLimitMode;
00096 };
00097 #endif