Back to index

salome-geom  6.5.0
GEOMAlgo_ShapeSolid.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_ShapeSolid.cxx
00024 // Created:     Thu Jan 13 12:54:48 2005
00025 // Author:      Peter KURNEV
00026 //              <pkv@irinox>
00027 //
00028 #include <GEOMAlgo_ShapeSolid.hxx>
00029 
00030 #include <TopTools_ListIteratorOfListOfShape.hxx>
00031 #include <TopTools_ListOfShape.hxx>
00032 
00033 //=======================================================================
00034 //function : GEOMAlgo_ShapeSolid
00035 //purpose  :
00036 //=======================================================================
00037 GEOMAlgo_ShapeSolid::GEOMAlgo_ShapeSolid()
00038 :
00039   GEOMAlgo_Algo(),
00040   myRank(0),
00041   myDSFiller(NULL)
00042 {
00043 }
00044 //=======================================================================
00045 //function : ~
00046 //purpose  :
00047 //=======================================================================
00048 GEOMAlgo_ShapeSolid::~GEOMAlgo_ShapeSolid()
00049 {
00050 }
00051 //=======================================================================
00052 //function : SetFiller
00053 //purpose  :
00054 //=======================================================================
00055 void GEOMAlgo_ShapeSolid::SetFiller(const BOPTools_DSFiller& aDSFiller)
00056 {
00057   myDSFiller=(BOPTools_DSFiller*) &aDSFiller;
00058 }
00059 //=======================================================================
00060 // function: Shapes
00061 // purpose:
00062 //=======================================================================
00063 const TopTools_ListOfShape& GEOMAlgo_ShapeSolid::Shapes(const TopAbs_State aState) const
00064 {
00065   const TopTools_ListOfShape *pL;
00066   //
00067   switch (aState) {
00068     case TopAbs_IN:
00069       pL=&myLSIN;
00070       break;
00071     case TopAbs_OUT:
00072       pL=&myLSOUT;
00073       break;
00074     case TopAbs_ON:
00075       pL=&myLSON;
00076       break;
00077     default:
00078       pL=&myLSON;
00079       break;
00080   }
00081   return *pL;
00082 }