1 // Copyright (C) 2007-2010 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
23 // File: GEOMAlgo_BuilderShape.cxx
25 // Author: Peter KURNEV
27 #include <GEOMAlgo_BuilderShape.ixx>
28 //=======================================================================
31 //=======================================================================
32 GEOMAlgo_BuilderShape::GEOMAlgo_BuilderShape()
36 myHasDeleted=Standard_False;
37 myHasGenerated=Standard_False;
38 myHasModified=Standard_False;
40 //=======================================================================
43 //=======================================================================
44 GEOMAlgo_BuilderShape::~GEOMAlgo_BuilderShape()
47 //=======================================================================
50 //=======================================================================
51 const TopoDS_Shape& GEOMAlgo_BuilderShape::Shape() const
56 //=======================================================================
57 //function : Generated
59 //=======================================================================
60 const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Generated(const TopoDS_Shape& )
65 //=======================================================================
68 //=======================================================================
69 const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Modified(const TopoDS_Shape& )
74 //=======================================================================
75 //function : IsDeleted
77 //=======================================================================
78 Standard_Boolean GEOMAlgo_BuilderShape::IsDeleted(const TopoDS_Shape& theS)
80 Standard_Boolean bRet;
82 bRet=!myMapShape.Contains(theS);
85 //=======================================================================
86 //function : HasDeleted
88 //=======================================================================
89 Standard_Boolean GEOMAlgo_BuilderShape::HasDeleted()const
93 //=======================================================================
94 //function : HasGenerated
96 //=======================================================================
97 Standard_Boolean GEOMAlgo_BuilderShape::HasGenerated()const
99 return myHasGenerated;
101 //=======================================================================
102 //function : HasModified
104 //=======================================================================
105 Standard_Boolean GEOMAlgo_BuilderShape::HasModified()const
107 return myHasModified;
109 //=======================================================================
110 //function : PrepareHistory
112 //=======================================================================
113 void GEOMAlgo_BuilderShape::PrepareHistory()
115 myHistShapes.Clear();
117 myHasDeleted=Standard_False;
118 myHasGenerated=Standard_False;
119 myHasModified=Standard_False;
120 //modified by NIZNHY-PKV Thu Dec 7 11:14:15 2006
121 myImagesResult.Clear();
122 //modified by NIZNHY-PKV Thu Dec 7 11:14:17 2006t
124 //modified by NIZNHY-PKV Thu Dec 7 11:57:00 2006f
125 //=======================================================================
126 //function : ImagesResult
128 //=======================================================================
129 const TopTools_IndexedDataMapOfShapeListOfShape& GEOMAlgo_BuilderShape::ImagesResult()const
131 return myImagesResult;
133 //modified by NIZNHY-PKV Thu Dec 7 11:57:04 2006t