0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / GeomFill / GeomFill_DegeneratedBound.cxx
1 // Created on: 1995-12-05
2 // Created by: Laurent BOURESCHE
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <GeomFill_DegeneratedBound.hxx>
19 #include <gp_Pnt.hxx>
20 #include <gp_Vec.hxx>
21 #include <Standard_Type.hxx>
22
23 IMPLEMENT_STANDARD_RTTIEXT(GeomFill_DegeneratedBound,GeomFill_Boundary)
24
25 //=======================================================================
26 //function : GeomFill_DegeneratedBound
27 //purpose  : 
28 //=======================================================================
29 GeomFill_DegeneratedBound::GeomFill_DegeneratedBound
30 (const gp_Pnt& Point, 
31  const Standard_Real First, 
32  const Standard_Real Last, 
33  const Standard_Real Tol3d, 
34  const Standard_Real Tolang) :
35  GeomFill_Boundary(Tol3d,Tolang),
36  myPoint(Point),myFirst(First),myLast(Last)
37 {
38 }
39
40
41 //=======================================================================
42 //function : Value
43 //purpose  : 
44 //=======================================================================
45
46 //gp_Pnt GeomFill_DegeneratedBound::Value(const Standard_Real U) const 
47 gp_Pnt GeomFill_DegeneratedBound::Value(const Standard_Real ) const 
48 {
49   return myPoint;
50 }
51
52
53 //=======================================================================
54 //function : D1
55 //purpose  : 
56 //=======================================================================
57
58 //void GeomFill_DegeneratedBound::D1(const Standard_Real U, 
59 void GeomFill_DegeneratedBound::D1(const Standard_Real , 
60                                    gp_Pnt& P, 
61                                    gp_Vec& V) const 
62 {
63   P = myPoint;
64   V.SetCoord(0.,0.,0.);
65 }
66
67
68 //=======================================================================
69 //function : Reparametrize
70 //purpose  : 
71 //=======================================================================
72
73 void GeomFill_DegeneratedBound::Reparametrize(const Standard_Real First, 
74                                               const Standard_Real Last, 
75                                               const Standard_Boolean , 
76                                               const Standard_Boolean , 
77                                               const Standard_Real , 
78                                               const Standard_Real , 
79                                               const Standard_Boolean )
80 {
81   myFirst = First;
82   myLast  = Last;
83 }
84
85
86 //=======================================================================
87 //function : Bounds
88 //purpose  : 
89 //=======================================================================
90
91 void GeomFill_DegeneratedBound::Bounds(Standard_Real& First, 
92                                        Standard_Real& Last) const 
93 {
94   First = myFirst;
95   Last  = myLast;
96 }
97
98
99 //=======================================================================
100 //function : IsDegenerated
101 //purpose  : 
102 //=======================================================================
103
104 Standard_Boolean GeomFill_DegeneratedBound::IsDegenerated() const 
105 {
106   return Standard_True;
107 }