Salome HOME
Mantis issue 0021191: GlueEdges and GlueFaces problem with tolerance 1. A fix by...
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_Clsf.hxx
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
2 //\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
5 //\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
10 //\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
15 //\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
19 //\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
21 //\r
22 \r
23 // File:        GEOMAlgo_Clsf.hxx\r
24 // Created:     Wed Nov 22 10:23:04 2006\r
25 // Author:      Peter KURNEV\r
26 //              <pkv@irinox>\r
27 //\r
28 #ifndef _GEOMAlgo_Clsf_HeaderFile\r
29 #define _GEOMAlgo_Clsf_HeaderFile\r
30 \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
43 \r
44 DEFINE_STANDARD_HANDLE(GEOMAlgo_Clsf, GEOMAlgo_HAlgo);\r
45 \r
46 //=======================================================================\r
47 //class    : GEOMAlgo_Clsf\r
48 //purpose  : \r
49 //=======================================================================\r
50 class GEOMAlgo_Clsf : public GEOMAlgo_HAlgo \r
51 {\r
52  public:\r
53   Standard_EXPORT\r
54     void SetPnt(const gp_Pnt& aP) ;\r
55   \r
56   Standard_EXPORT\r
57     const gp_Pnt& Pnt() const;\r
58   \r
59   Standard_EXPORT\r
60     void SetTolerance(const Standard_Real aT) ;\r
61   \r
62   Standard_EXPORT\r
63     Standard_Real Tolerance() const;\r
64   \r
65   Standard_EXPORT\r
66     TopAbs_State State() const;\r
67   \r
68   Standard_EXPORT\r
69     virtual  Standard_Boolean CanBeON(const Handle(Geom_Curve)& aCT) const;\r
70   \r
71   Standard_EXPORT\r
72     virtual  Standard_Boolean CanBeON(const Handle(Geom_Surface)& aST) const;\r
73 \r
74   DEFINE_STANDARD_RTTI(GEOMAlgo_Clsf);\r
75 \r
76  protected:\r
77   Standard_EXPORT\r
78     GEOMAlgo_Clsf();\r
79   \r
80   Standard_EXPORT\r
81     virtual ~GEOMAlgo_Clsf();\r
82 \r
83   TopAbs_State myState;\r
84   gp_Pnt myPnt;\r
85   Standard_Real myTolerance;\r
86 };\r
87 #endif\r