1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File: GEOMAlgo_BuilderShape.cxx
22 // Author: Peter KURNEV
25 #include <GEOMAlgo_BuilderShape.ixx>
26 //=======================================================================
29 //=======================================================================
30 GEOMAlgo_BuilderShape::GEOMAlgo_BuilderShape()
34 myHasDeleted=Standard_False;
35 myHasGenerated=Standard_False;
36 myHasModified=Standard_False;
38 //=======================================================================
41 //=======================================================================
42 GEOMAlgo_BuilderShape::~GEOMAlgo_BuilderShape()
45 //=======================================================================
48 //=======================================================================
49 const TopoDS_Shape& GEOMAlgo_BuilderShape::Shape() const
54 //=======================================================================
55 //function : Generated
57 //=======================================================================
58 const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Generated(const TopoDS_Shape& )
63 //=======================================================================
66 //=======================================================================
67 const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Modified(const TopoDS_Shape& )
72 //=======================================================================
73 //function : IsDeleted
75 //=======================================================================
76 Standard_Boolean GEOMAlgo_BuilderShape::IsDeleted(const TopoDS_Shape& theS)
78 Standard_Boolean bRet;
80 bRet=!myMapShape.Contains(theS);
83 //=======================================================================
84 //function : HasDeleted
86 //=======================================================================
87 Standard_Boolean GEOMAlgo_BuilderShape::HasDeleted()const
91 //=======================================================================
92 //function : HasGenerated
94 //=======================================================================
95 Standard_Boolean GEOMAlgo_BuilderShape::HasGenerated()const
97 return myHasGenerated;
99 //=======================================================================
100 //function : HasModified
102 //=======================================================================
103 Standard_Boolean GEOMAlgo_BuilderShape::HasModified()const
105 return myHasModified;
107 //=======================================================================
108 //function : PrepareHistory
110 //=======================================================================
111 void GEOMAlgo_BuilderShape::PrepareHistory()
113 myHistShapes.Clear();
115 myHasDeleted=Standard_False;
116 myHasGenerated=Standard_False;
117 myHasModified=Standard_False;
118 //modified by NIZNHY-PKV Thu Dec 7 11:14:15 2006
119 myImagesResult.Clear();
120 //modified by NIZNHY-PKV Thu Dec 7 11:14:17 2006t
122 //modified by NIZNHY-PKV Thu Dec 7 11:57:00 2006f
123 //=======================================================================
124 //function : ImagesResult
126 //=======================================================================
127 const TopTools_IndexedDataMapOfShapeListOfShape& GEOMAlgo_BuilderShape::ImagesResult()const
129 return myImagesResult;
131 //modified by NIZNHY-PKV Thu Dec 7 11:57:04 2006t