1 // Copyright (C) 2007-2008 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.
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
22 // File: GEOMAlgo_BuilderShape.cxx
24 // Author: Peter KURNEV
26 #include <GEOMAlgo_BuilderShape.ixx>
27 //=======================================================================
30 //=======================================================================
31 GEOMAlgo_BuilderShape::GEOMAlgo_BuilderShape()
35 myHasDeleted=Standard_False;
36 myHasGenerated=Standard_False;
37 myHasModified=Standard_False;
39 //=======================================================================
42 //=======================================================================
43 GEOMAlgo_BuilderShape::~GEOMAlgo_BuilderShape()
46 //=======================================================================
49 //=======================================================================
50 const TopoDS_Shape& GEOMAlgo_BuilderShape::Shape() const
55 //=======================================================================
56 //function : Generated
58 //=======================================================================
59 const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Generated(const TopoDS_Shape& )
64 //=======================================================================
67 //=======================================================================
68 const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Modified(const TopoDS_Shape& )
73 //=======================================================================
74 //function : IsDeleted
76 //=======================================================================
77 Standard_Boolean GEOMAlgo_BuilderShape::IsDeleted(const TopoDS_Shape& theS)
79 Standard_Boolean bRet;
81 bRet=!myMapShape.Contains(theS);
84 //=======================================================================
85 //function : HasDeleted
87 //=======================================================================
88 Standard_Boolean GEOMAlgo_BuilderShape::HasDeleted()const
92 //=======================================================================
93 //function : HasGenerated
95 //=======================================================================
96 Standard_Boolean GEOMAlgo_BuilderShape::HasGenerated()const
98 return myHasGenerated;
100 //=======================================================================
101 //function : HasModified
103 //=======================================================================
104 Standard_Boolean GEOMAlgo_BuilderShape::HasModified()const
106 return myHasModified;
108 //=======================================================================
109 //function : PrepareHistory
111 //=======================================================================
112 void GEOMAlgo_BuilderShape::PrepareHistory()
114 myHistShapes.Clear();
116 myHasDeleted=Standard_False;
117 myHasGenerated=Standard_False;
118 myHasModified=Standard_False;
119 //modified by NIZNHY-PKV Thu Dec 7 11:14:15 2006
120 myImagesResult.Clear();
121 //modified by NIZNHY-PKV Thu Dec 7 11:14:17 2006t
123 //modified by NIZNHY-PKV Thu Dec 7 11:57:00 2006f
124 //=======================================================================
125 //function : ImagesResult
127 //=======================================================================
128 const TopTools_IndexedDataMapOfShapeListOfShape& GEOMAlgo_BuilderShape::ImagesResult()const
130 return myImagesResult;
132 //modified by NIZNHY-PKV Thu Dec 7 11:57:04 2006t