Salome HOME
Improvements for gluing and new command GetShapesOnBox.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_Clsf.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 //
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
8 //
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 #ifndef _GEOMAlgo_Clsf_HeaderFile
21 #define _GEOMAlgo_Clsf_HeaderFile
22
23 #ifndef _Standard_HeaderFile
24 #include <Standard.hxx>
25 #endif
26 #ifndef _Handle_GEOMAlgo_Clsf_HeaderFile
27 #include <Handle_GEOMAlgo_Clsf.hxx>
28 #endif
29
30 #ifndef _TopAbs_State_HeaderFile
31 #include <TopAbs_State.hxx>
32 #endif
33 #ifndef _gp_Pnt_HeaderFile
34 #include <gp_Pnt.hxx>
35 #endif
36 #ifndef _Standard_Real_HeaderFile
37 #include <Standard_Real.hxx>
38 #endif
39 #ifndef _GEOMAlgo_HAlgo_HeaderFile
40 #include <GEOMAlgo_HAlgo.hxx>
41 #endif
42 #ifndef _Standard_Boolean_HeaderFile
43 #include <Standard_Boolean.hxx>
44 #endif
45 #ifndef _Handle_Geom_Curve_HeaderFile
46 #include <Handle_Geom_Curve.hxx>
47 #endif
48 #ifndef _Handle_Geom_Surface_HeaderFile
49 #include <Handle_Geom_Surface.hxx>
50 #endif
51 class gp_Pnt;
52 class Geom_Curve;
53 class Geom_Surface;
54
55
56
57 class GEOMAlgo_Clsf : public GEOMAlgo_HAlgo {
58
59 public:
60  // Methods PUBLIC
61  // 
62
63
64 Standard_EXPORT   void SetPnt(const gp_Pnt& aP) ;
65
66
67 Standard_EXPORT  const gp_Pnt& Pnt() const;
68
69
70 Standard_EXPORT   void SetTolerance(const Standard_Real aT) ;
71
72
73 Standard_EXPORT   Standard_Real Tolerance() const;
74
75
76 Standard_EXPORT   TopAbs_State State() const;
77
78
79 Standard_EXPORT virtual  Standard_Boolean CanBeON(const Handle(Geom_Curve)& aCT) const;
80
81
82 Standard_EXPORT virtual  Standard_Boolean CanBeON(const Handle(Geom_Surface)& aST) const;
83 //Standard_EXPORT ~GEOMAlgo_Clsf();
84
85
86
87
88  // Type management
89  //
90  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
91  //Standard_EXPORT Standard_Boolean            IsKind(const Handle(Standard_Type)&) const;
92
93 protected:
94
95  // Methods PROTECTED
96  // 
97
98
99 Standard_EXPORT GEOMAlgo_Clsf();
100 Standard_EXPORT virtual ~GEOMAlgo_Clsf();
101
102
103  // Fields PROTECTED
104  //
105 TopAbs_State myState;
106 gp_Pnt myPnt;
107 Standard_Real myTolerance;
108
109
110 private: 
111
112  // Methods PRIVATE
113  // 
114
115
116  // Fields PRIVATE
117  //
118
119
120 };
121
122
123
124
125
126 // other Inline functions and methods (like "C++: function call" methods)
127 //
128
129
130 #endif