Back to index

salome-geom  6.5.0
GEOMAlgo_SurfaceTools.hxx
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_SurfaceTools.hxx
00024 // Created:     Thu Jan 27 11:05:16 2005
00025 // Author:      Peter KURNEV
00026 //              <pkv@irinox>
00027 //
00028 #ifndef _GEOMAlgo_SurfaceTools_HeaderFile
00029 #define _GEOMAlgo_SurfaceTools_HeaderFile
00030 
00031 #include <Standard.hxx>
00032 #include <Standard_Macro.hxx>
00033 #include <Standard_Boolean.hxx>
00034 #include <Handle_Geom_Surface.hxx>
00035 #include <Standard_Real.hxx>
00036 #include <TopAbs_State.hxx>
00037 #include <GEOMAlgo_State.hxx>
00038 #include <Standard_Integer.hxx>
00039 #include <Geom_Surface.hxx>
00040 #include <gp_Pnt.hxx>
00041 #include <gp_Cylinder.hxx>
00042 #include <GeomAdaptor_Surface.hxx>
00043 #include <gp_Pln.hxx>
00044 #include <gp_Sphere.hxx>
00045 
00046 
00047 //=======================================================================
00048 //function : GEOMAlgo_SurfaceTools
00049 //purpose  :
00050 //=======================================================================
00051 class GEOMAlgo_SurfaceTools
00052 {
00053  public:
00054   Standard_EXPORT
00055     static  Standard_Boolean IsAnalytic(const Handle(Geom_Surface)& aS) ;
00056 
00057   Standard_EXPORT
00058     static  Standard_Boolean IsCoaxial(const gp_Pnt& aP1,
00059                                    const gp_Pnt& aP2,
00060                                    const gp_Cylinder& aCyl,
00061                                    const Standard_Real aTol) ;
00062 
00063   Standard_EXPORT
00064     static  Standard_Boolean IsConformState(const TopAbs_State aST1,
00065                                        const GEOMAlgo_State aST2) ;
00066 
00067   Standard_EXPORT
00068     static  Standard_Integer GetState(const gp_Pnt& aP,
00069                                   const GeomAdaptor_Surface& aS,
00070                                   const Standard_Real aTol,TopAbs_State& aSt) ;
00071 
00072   Standard_EXPORT
00073     static  Standard_Integer GetState(const gp_Pnt& aP,
00074                                   const Handle(Geom_Surface)& aS,
00075                                   const Standard_Real aTol,
00076                                   TopAbs_State& aSt) ;
00077 
00078   Standard_EXPORT
00079     static  Standard_Real Distance(const gp_Pnt& aP,
00080                                const gp_Pln& aPln) ;
00081 
00082   Standard_EXPORT
00083     static  Standard_Real Distance(const gp_Pnt& aP,
00084                                const gp_Cylinder& aCyl) ;
00085 
00086   Standard_EXPORT
00087     static  Standard_Real Distance(const gp_Pnt& aP,
00088                                const gp_Sphere& aSph) ;
00089 
00090   Standard_EXPORT
00091     static  TopAbs_State ReverseState(const TopAbs_State aSt) ;
00092 
00093 };
00094 #endif