Back to index

salome-geom  6.5.0
GEOMAlgo_Clsf.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_Clsf.hxx
00024 // Created:     Wed Nov 22 10:23:04 2006
00025 // Author:      Peter KURNEV
00026 //              <pkv@irinox>
00027 //
00028 #ifndef _GEOMAlgo_Clsf_HeaderFile
00029 #define _GEOMAlgo_Clsf_HeaderFile
00030 
00031 #include <Standard.hxx>
00032 #include <Standard_DefineHandle.hxx>
00033 //#include <Handle_GEOMAlgo_Clsf.hxx>
00034 #include <TopAbs_State.hxx>
00035 #include <gp_Pnt.hxx>
00036 #include <Standard_Real.hxx>
00037 #include <GEOMAlgo_HAlgo.hxx>
00038 #include <Standard_Boolean.hxx>
00039 #include <Handle_Geom_Curve.hxx>
00040 #include <Handle_Geom_Surface.hxx>
00041 #include <Geom_Curve.hxx>
00042 #include <Geom_Surface.hxx>
00043 
00044 DEFINE_STANDARD_HANDLE(GEOMAlgo_Clsf, GEOMAlgo_HAlgo);
00045 
00046 //=======================================================================
00047 //class    : GEOMAlgo_Clsf
00048 //purpose  :
00049 //=======================================================================
00050 class GEOMAlgo_Clsf : public GEOMAlgo_HAlgo
00051 {
00052  public:
00053   Standard_EXPORT
00054     void SetPnt(const gp_Pnt& aP) ;
00055 
00056   Standard_EXPORT
00057     const gp_Pnt& Pnt() const;
00058 
00059   Standard_EXPORT
00060     void SetTolerance(const Standard_Real aT) ;
00061 
00062   Standard_EXPORT
00063     Standard_Real Tolerance() const;
00064 
00065   Standard_EXPORT
00066     TopAbs_State State() const;
00067 
00068   Standard_EXPORT
00069     virtual  Standard_Boolean CanBeON(const Handle(Geom_Curve)& aCT) const;
00070 
00071   Standard_EXPORT
00072     virtual  Standard_Boolean CanBeON(const Handle(Geom_Surface)& aST) const;
00073 
00074   DEFINE_STANDARD_RTTI(GEOMAlgo_Clsf);
00075 
00076  protected:
00077   Standard_EXPORT
00078     GEOMAlgo_Clsf();
00079 
00080   Standard_EXPORT
00081     virtual ~GEOMAlgo_Clsf();
00082 
00083   TopAbs_State myState;
00084   gp_Pnt myPnt;
00085   Standard_Real myTolerance;
00086 };
00087 #endif