Back to index

salome-geom  6.5.0
GEOMAlgo_BuilderShape.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 
00023 // File:        GEOMAlgo_BuilderShape.hxx
00024 // Created:
00025 // Author:      Peter KURNEV
00026 //
00027 #ifndef _GEOMAlgo_BuilderShape_HeaderFile
00028 #define _GEOMAlgo_BuilderShape_HeaderFile
00029 
00030 #include <Standard.hxx>
00031 #include <Standard_Macro.hxx>
00032 #include <TopoDS_Shape.hxx>
00033 #include <TopTools_ListOfShape.hxx>
00034 #include <TopTools_MapOfShape.hxx>
00035 #include <Standard_Boolean.hxx>
00036 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
00037 #include <GEOMAlgo_Algo.hxx>
00038 
00039 
00041 //=======================================================================
00042 //class    : GEOMAlgo_BuilderShape
00043 //purpose  :
00044 //=======================================================================
00045 class GEOMAlgo_BuilderShape  : public GEOMAlgo_Algo
00046 {
00047  public:
00049   Standard_EXPORT
00050     const TopoDS_Shape& Shape() const;
00051 
00054   Standard_EXPORT
00055     virtual const TopTools_ListOfShape& Generated(const TopoDS_Shape& theS) ;
00056 
00059   Standard_EXPORT
00060     virtual const TopTools_ListOfShape& Modified(const TopoDS_Shape& theS) ;
00061 
00063   Standard_EXPORT
00064     virtual  Standard_Boolean IsDeleted(const TopoDS_Shape& theS) ;
00065 
00068   Standard_EXPORT
00069     Standard_Boolean HasDeleted() const;
00070 
00073   Standard_EXPORT
00074     Standard_Boolean HasGenerated() const;
00075 
00078   Standard_EXPORT
00079     Standard_Boolean HasModified() const;
00080 
00081   Standard_EXPORT
00082     const TopTools_IndexedDataMapOfShapeListOfShape& ImagesResult() const;
00083 
00084 protected:
00086   Standard_EXPORT
00087     GEOMAlgo_BuilderShape();
00088 
00089   Standard_EXPORT
00090     virtual ~GEOMAlgo_BuilderShape();
00091 
00093   Standard_EXPORT
00094     virtual  void PrepareHistory() ;
00095 
00096 
00097   TopoDS_Shape myShape;
00098   TopTools_ListOfShape myHistShapes;
00099   TopTools_MapOfShape myMapShape;
00100   Standard_Boolean myHasDeleted;
00101   Standard_Boolean myHasGenerated;
00102   Standard_Boolean myHasModified;
00103   TopTools_IndexedDataMapOfShapeListOfShape myImagesResult;
00104 };
00105 #endif