Back to index

salome-geom  6.5.0
GEOMAlgo_FinderShapeOn.hxx
Go to the documentation of this file.
00001 
00002 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00003 //
00004 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00005 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00006 //
00007 // This library is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU Lesser General Public
00009 // License as published by the Free Software Foundation; either
00010 // version 2.1 of the License.
00011 //
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 // Lesser General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU Lesser General Public
00018 // License along with this library; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00020 //
00021 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00022 //
00023 
00024 // File:        GEOMAlgo_FinderShapeOn.hxx
00025 // Created:     Tue Jan 11 14:44:31 2005
00026 // Author:      Peter KURNEV
00027 
00028 #ifndef _GEOMAlgo_FinderShapeOn_HeaderFile
00029 #define _GEOMAlgo_FinderShapeOn_HeaderFile
00030 
00031 #include <Standard.hxx>
00032 #include <Standard_Macro.hxx>
00033 #include <Handle_Geom_Surface.hxx>
00034 #include <TopAbs_ShapeEnum.hxx>
00035 #include <GEOMAlgo_State.hxx>
00036 #include <TopoDS_Shape.hxx>
00037 #include <TopTools_ListOfShape.hxx>
00038 #include <TopTools_DataMapOfShapeShape.hxx>
00039 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
00040 #include <Standard_Boolean.hxx>
00041 #include <GEOMAlgo_ShapeAlgo.hxx>
00042 #include <Geom_Surface.hxx>
00043 #include <TopoDS_Shape.hxx>
00044 
00045 //=======================================================================
00046 //function : GEOMAlgo_FinderShapeOn
00047 //purpose  :
00048 //=======================================================================
00049 class GEOMAlgo_FinderShapeOn  : public GEOMAlgo_ShapeAlgo
00050 {
00051  public:
00052   Standard_EXPORT
00053     GEOMAlgo_FinderShapeOn();
00054 
00055   Standard_EXPORT
00056     virtual ~GEOMAlgo_FinderShapeOn();
00057 
00058   Standard_EXPORT
00059     virtual  void Perform() ;
00060 
00061   Standard_EXPORT
00062     void SetSurface(const Handle(Geom_Surface)& aS) ;
00063 
00064   Standard_EXPORT
00065     void SetShapeType(const TopAbs_ShapeEnum aST) ;
00066 
00067   Standard_EXPORT
00068     void SetState(const GEOMAlgo_State aSF) ;
00069 
00070   Standard_EXPORT
00071     const Handle_Geom_Surface& Surface() const;
00072 
00073   Standard_EXPORT
00074     TopAbs_ShapeEnum ShapeType() const;
00075 
00076   Standard_EXPORT
00077     GEOMAlgo_State State() const;
00078 
00079   Standard_EXPORT
00080     const TopTools_ListOfShape& Shapes() const;
00081 
00082   Standard_EXPORT
00083     static  void CopySource(const TopoDS_Shape& aS,
00084                          TopTools_DataMapOfShapeShape& aImages,
00085                          TopTools_DataMapOfShapeShape& aOriginals,
00086                          TopoDS_Shape& aSC) ;
00087 
00088   Standard_EXPORT
00089     static  Standard_Boolean BuildTriangulation(const TopoDS_Shape& aS) ;
00090 
00091 protected:
00092   Standard_EXPORT
00093     virtual  void CheckData() ;
00094 
00095   Standard_EXPORT
00096     void MakeArgument1() ;
00097 
00098   Standard_EXPORT
00099     void MakeArgument2() ;
00100 
00101   Standard_EXPORT
00102     void Find() ;
00103 
00104   Standard_EXPORT
00105     void Find(const TopoDS_Shape& aS) ;
00106 
00107   Standard_EXPORT
00108     void FindVertices() ;
00109 
00110 
00111   Handle_Geom_Surface mySurface;
00112   TopAbs_ShapeEnum myShapeType;
00113   GEOMAlgo_State myState;
00114   TopoDS_Shape myArg1;
00115   TopoDS_Shape myArg2;
00116   TopTools_ListOfShape myLS;
00117   TopTools_DataMapOfShapeShape myImages;
00118   GEOMAlgo_IndexedDataMapOfShapeState myMSS;
00119   Standard_Boolean myIsAnalytic;
00120 };
00121 #endif