Back to index

salome-geom  6.5.0
GEOMAlgo_BuilderShape.cxx
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.cxx
00024 // Created:
00025 // Author:      Peter KURNEV
00026 //
00027 #include <GEOMAlgo_BuilderShape.hxx>
00028 //=======================================================================
00029 //function :
00030 //purpose  :
00031 //=======================================================================
00032   GEOMAlgo_BuilderShape::GEOMAlgo_BuilderShape()
00033 :
00034   GEOMAlgo_Algo()
00035 {
00036   myHasDeleted=Standard_False;
00037   myHasGenerated=Standard_False;
00038   myHasModified=Standard_False;
00039 }
00040 //=======================================================================
00041 //function : ~
00042 //purpose  :
00043 //=======================================================================
00044   GEOMAlgo_BuilderShape::~GEOMAlgo_BuilderShape()
00045 {
00046 }
00047 //=======================================================================
00048 //function : Shape
00049 //purpose  :
00050 //=======================================================================
00051   const TopoDS_Shape& GEOMAlgo_BuilderShape::Shape() const
00052 {
00053   return myShape;
00054 }
00055 //
00056 //=======================================================================
00057 //function : Generated
00058 //purpose  :
00059 //=======================================================================
00060   const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Generated(const TopoDS_Shape& )
00061 {
00062   myHistShapes.Clear();
00063   return myHistShapes;
00064 }
00065 //=======================================================================
00066 //function : Modified
00067 //purpose  :
00068 //=======================================================================
00069   const TopTools_ListOfShape& GEOMAlgo_BuilderShape::Modified(const TopoDS_Shape& )
00070 {
00071   myHistShapes.Clear();
00072   return myHistShapes;
00073 }
00074 //=======================================================================
00075 //function : IsDeleted
00076 //purpose  :
00077 //=======================================================================
00078   Standard_Boolean GEOMAlgo_BuilderShape::IsDeleted(const TopoDS_Shape& theS)
00079 {
00080   Standard_Boolean bRet;
00081   //
00082   bRet=!myMapShape.Contains(theS);
00083   return bRet;
00084 }
00085 //=======================================================================
00086 //function : HasDeleted
00087 //purpose  :
00088 //=======================================================================
00089   Standard_Boolean GEOMAlgo_BuilderShape::HasDeleted()const
00090 {
00091   return myHasDeleted;
00092 }
00093 //=======================================================================
00094 //function : HasGenerated
00095 //purpose  :
00096 //=======================================================================
00097   Standard_Boolean GEOMAlgo_BuilderShape::HasGenerated()const
00098 {
00099   return myHasGenerated;
00100 }
00101 //=======================================================================
00102 //function : HasModified
00103 //purpose  :
00104 //=======================================================================
00105   Standard_Boolean GEOMAlgo_BuilderShape::HasModified()const
00106 {
00107   return myHasModified;
00108 }
00109 //=======================================================================
00110 //function : PrepareHistory
00111 //purpose  :
00112 //=======================================================================
00113   void GEOMAlgo_BuilderShape::PrepareHistory()
00114 {
00115   myHistShapes.Clear();
00116   myMapShape.Clear();
00117   myHasDeleted=Standard_False;
00118   myHasGenerated=Standard_False;
00119   myHasModified=Standard_False;
00120   //modified by NIZNHY-PKV Thu Dec  7 11:14:15 2006
00121   myImagesResult.Clear();
00122   //modified by NIZNHY-PKV Thu Dec  7 11:14:17 2006t
00123 }
00124 //modified by NIZNHY-PKV Thu Dec  7 11:57:00 2006f
00125 //=======================================================================
00126 //function : ImagesResult
00127 //purpose  :
00128 //=======================================================================
00129   const TopTools_IndexedDataMapOfShapeListOfShape& GEOMAlgo_BuilderShape::ImagesResult()const
00130 {
00131   return myImagesResult;
00132 }
00133 //modified by NIZNHY-PKV Thu Dec  7 11:57:04 2006t