Salome HOME
01d2733277e0ead8ff002030f7dd17974bad3c0a
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_Clsf.cxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File:        GEOMAlgo_Classifier.cxx
23 // Created:     Wed Nov 22 10:23:04 2006
24 // Author:      Peter KURNEV
25 //              <pkv@irinox>
26 //
27 #include <GEOMAlgo_Clsf.ixx>
28
29 //=======================================================================
30 //function : 
31 //purpose  : 
32 //=======================================================================
33   GEOMAlgo_Clsf::GEOMAlgo_Clsf()
34 :
35   GEOMAlgo_HAlgo()
36 {
37   myState=TopAbs_UNKNOWN;
38   myPnt.SetCoord(99.,99.,99.);
39   myTolerance=0.0001;
40 }
41 //=======================================================================
42 //function : ~
43 //purpose  : 
44 //=======================================================================
45   GEOMAlgo_Clsf::~GEOMAlgo_Clsf()
46 {
47 }
48 //=======================================================================
49 //function : SetTolerance
50 //purpose  : 
51 //=======================================================================
52   void GEOMAlgo_Clsf::SetTolerance(const Standard_Real aT)
53 {
54   myTolerance=aT;
55 }
56 //=======================================================================
57 //function : Tolerance
58 //purpose  : 
59 //=======================================================================
60   Standard_Real GEOMAlgo_Clsf::Tolerance()const
61 {
62   return myTolerance;
63 }
64 //=======================================================================
65 //function : SetPnt
66 //purpose  : 
67 //=======================================================================
68   void GEOMAlgo_Clsf::SetPnt(const gp_Pnt& aP)
69 {
70   myPnt=aP;
71 }
72 //=======================================================================
73 //function : Pnt
74 //purpose  : 
75 //=======================================================================
76   const gp_Pnt& GEOMAlgo_Clsf::Pnt()const
77 {
78   return myPnt;
79 }
80 //=======================================================================
81 //function : State
82 //purpose  : 
83 //=======================================================================
84   TopAbs_State GEOMAlgo_Clsf::State() const
85 {
86   return myState;
87 }
88 //=======================================================================
89 //function : CanBeON
90 //purpose  : 
91 //=======================================================================
92   Standard_Boolean GEOMAlgo_Clsf::CanBeON(const Handle(Geom_Curve)& ) const
93 {
94   return Standard_True;
95 }
96 //=======================================================================
97 //function : CanBeON
98 //purpose  : 
99 //=======================================================================
100   Standard_Boolean GEOMAlgo_Clsf::CanBeON(const Handle(Geom_Surface)& ) const
101 {
102   return Standard_True;
103 }