Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_Clsf.cxx
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 // File:        GEOMAlgo_Classifier.cxx
21 // Created:     Wed Nov 22 10:23:04 2006
22 // Author:      Peter KURNEV
23 //              <pkv@irinox>
24
25
26 #include <GEOMAlgo_Clsf.ixx>
27
28 //=======================================================================
29 //function : 
30 //purpose  : 
31 //=======================================================================
32   GEOMAlgo_Clsf::GEOMAlgo_Clsf()
33 :
34   GEOMAlgo_HAlgo()
35 {
36   myState=TopAbs_UNKNOWN;
37   myPnt.SetCoord(99.,99.,99.);
38   myTolerance=0.0001;
39 }
40 //=======================================================================
41 //function : ~
42 //purpose  : 
43 //=======================================================================
44   GEOMAlgo_Clsf::~GEOMAlgo_Clsf()
45 {
46 }
47 //=======================================================================
48 //function : SetTolerance
49 //purpose  : 
50 //=======================================================================
51   void GEOMAlgo_Clsf::SetTolerance(const Standard_Real aT)
52 {
53   myTolerance=aT;
54 }
55 //=======================================================================
56 //function : Tolerance
57 //purpose  : 
58 //=======================================================================
59   Standard_Real GEOMAlgo_Clsf::Tolerance()const
60 {
61   return myTolerance;
62 }
63 //=======================================================================
64 //function : SetPnt
65 //purpose  : 
66 //=======================================================================
67   void GEOMAlgo_Clsf::SetPnt(const gp_Pnt& aP)
68 {
69   myPnt=aP;
70 }
71 //=======================================================================
72 //function : Pnt
73 //purpose  : 
74 //=======================================================================
75   const gp_Pnt& GEOMAlgo_Clsf::Pnt()const
76 {
77   return myPnt;
78 }
79 //=======================================================================
80 //function : State
81 //purpose  : 
82 //=======================================================================
83   TopAbs_State GEOMAlgo_Clsf::State() const
84 {
85   return myState;
86 }
87 //=======================================================================
88 //function : CanBeON
89 //purpose  : 
90 //=======================================================================
91   Standard_Boolean GEOMAlgo_Clsf::CanBeON(const Handle(Geom_Curve)& ) const
92 {
93   return Standard_True;
94 }
95 //=======================================================================
96 //function : CanBeON
97 //purpose  : 
98 //=======================================================================
99   Standard_Boolean GEOMAlgo_Clsf::CanBeON(const Handle(Geom_Surface)& ) const
100 {
101   return Standard_True;
102 }