1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
\r
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
\r
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
\r
6 // This library is free software; you can redistribute it and/or
\r
7 // modify it under the terms of the GNU Lesser General Public
\r
8 // License as published by the Free Software Foundation; either
\r
9 // version 2.1 of the License.
\r
11 // This library is distributed in the hope that it will be useful,
\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
14 // Lesser General Public License for more details.
\r
16 // You should have received a copy of the GNU Lesser General Public
\r
17 // License along with this library; if not, write to the Free Software
\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
23 // File: GEOMAlgo_Clsf.hxx
\r
24 // Created: Wed Nov 22 10:23:04 2006
\r
25 // Author: Peter KURNEV
\r
28 #ifndef _GEOMAlgo_Clsf_HeaderFile
\r
29 #define _GEOMAlgo_Clsf_HeaderFile
\r
31 #include <Standard.hxx>
\r
32 #include <Standard_DefineHandle.hxx>
\r
33 //#include <Handle_GEOMAlgo_Clsf.hxx>
\r
34 #include <TopAbs_State.hxx>
\r
35 #include <gp_Pnt.hxx>
\r
36 #include <Standard_Real.hxx>
\r
37 #include <GEOMAlgo_HAlgo.hxx>
\r
38 #include <Standard_Boolean.hxx>
\r
39 #include <Handle_Geom_Curve.hxx>
\r
40 #include <Handle_Geom_Surface.hxx>
\r
41 #include <Geom_Curve.hxx>
\r
42 #include <Geom_Surface.hxx>
\r
44 DEFINE_STANDARD_HANDLE(GEOMAlgo_Clsf, GEOMAlgo_HAlgo);
\r
46 //=======================================================================
\r
47 //class : GEOMAlgo_Clsf
\r
49 //=======================================================================
\r
50 class GEOMAlgo_Clsf : public GEOMAlgo_HAlgo
\r
54 void SetPnt(const gp_Pnt& aP) ;
\r
57 const gp_Pnt& Pnt() const;
\r
60 void SetTolerance(const Standard_Real aT) ;
\r
63 Standard_Real Tolerance() const;
\r
66 TopAbs_State State() const;
\r
69 virtual Standard_Boolean CanBeON(const Handle(Geom_Curve)& aCT) const;
\r
72 virtual Standard_Boolean CanBeON(const Handle(Geom_Surface)& aST) const;
\r
74 DEFINE_STANDARD_RTTI(GEOMAlgo_Clsf);
\r
81 virtual ~GEOMAlgo_Clsf();
\r
83 TopAbs_State myState;
\r
85 Standard_Real myTolerance;
\r