1 // Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File: GEOMAlgo_BuilderShape.cxx
25 // Author: Peter KURNEV
27 #include <GEOMAlgo_BuilderShape.hxx>
29 //=======================================================================
32 //=======================================================================
33 GEOMAlgo_BuilderShape::GEOMAlgo_BuilderShape()
37 myHasDeleted=Standard_False;
38 myHasGenerated=Standard_False;
39 myHasModified=Standard_False;
41 //=======================================================================
44 //=======================================================================
45 GEOMAlgo_BuilderShape::~GEOMAlgo_BuilderShape()
48 //=======================================================================
51 //=======================================================================
52 const TopoDS_Shape& GEOMAlgo_BuilderShape::Shape() const
57 //=======================================================================
58 //function : Generated
60 //=======================================================================
61 const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Generated(const TopoDS_Shape& )
66 //=======================================================================
69 //=======================================================================
70 const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Modified(const TopoDS_Shape& )
75 //=======================================================================
76 //function : IsDeleted
78 //=======================================================================
79 Standard_Boolean GEOMAlgo_BuilderShape::IsDeleted(const TopoDS_Shape& theS)
81 Standard_Boolean bRet;
83 bRet=!myMapShape.Contains(theS);
86 //=======================================================================
87 //function : HasDeleted
89 //=======================================================================
90 Standard_Boolean GEOMAlgo_BuilderShape::HasDeleted()const
94 //=======================================================================
95 //function : HasGenerated
97 //=======================================================================
98 Standard_Boolean GEOMAlgo_BuilderShape::HasGenerated()const
100 return myHasGenerated;
102 //=======================================================================
103 //function : HasModified
105 //=======================================================================
106 Standard_Boolean GEOMAlgo_BuilderShape::HasModified()const
108 return myHasModified;
110 //=======================================================================
111 //function : PrepareHistory
113 //=======================================================================
114 void GEOMAlgo_BuilderShape::PrepareHistory()
116 myHistShapes.Clear();
118 myHasDeleted=Standard_False;
119 myHasGenerated=Standard_False;
120 myHasModified=Standard_False;
121 myImagesResult.Clear();
123 //=======================================================================
124 //function : ImagesResult
126 //=======================================================================
127 const TopTools_IndexedDataMapOfShapeListOfShape& GEOMAlgo_BuilderShape::ImagesResult()const
129 return myImagesResult;