862d3497fa9d778849385371fca147478ec221f0
[occt.git] / src / GeomAdaptor / GeomAdaptor_Surface.lxx
1 // File:      GeomAdaptor_Surface.lxx
2 // Created:   Tue May 18 16:12:12 1993
3 // Author:    Bruno DUMORTIER
4 // Copyright: OPEN CASCADE 1993
5
6 #include <Geom_Surface.hxx>
7
8 //=======================================================================
9 //function : GeomAdaptor_Surface
10 //purpose  : 
11 //=======================================================================
12
13 inline GeomAdaptor_Surface::GeomAdaptor_Surface()
14  : myTolU(0.), myTolV(0.)
15 {} 
16
17 //=======================================================================
18 //function : GeomAdaptor_Surface
19 //purpose  : 
20 //=======================================================================
21
22 inline GeomAdaptor_Surface::GeomAdaptor_Surface(const Handle(Geom_Surface)& S)
23  : myTolU(0.), myTolV(0.)
24 {
25   Load(S);
26 }
27
28 //=======================================================================
29 //function : GeomAdaptor_Surface
30 //purpose  : 
31 //=======================================================================
32
33 inline GeomAdaptor_Surface::GeomAdaptor_Surface(const Handle(Geom_Surface)& S,
34                                                 const Standard_Real UFirst,
35                                                 const Standard_Real ULast,
36                                                 const Standard_Real VFirst,
37                                                 const Standard_Real VLast,
38                                                 const Standard_Real TolU,
39                                                 const Standard_Real TolV)
40 {
41   Load(S,UFirst,ULast,VFirst,VLast,TolU,TolV);
42 }
43
44 //=======================================================================
45 //function : Load
46 //purpose  : 
47 //=======================================================================
48
49 inline void GeomAdaptor_Surface::Load(const Handle(Geom_Surface)& S)
50 {
51   Standard_Real U1,U2,V1,V2;
52   S->Bounds(U1,U2,V1,V2);
53   Load(S,U1,U2,V1,V2);
54 }
55
56 //=======================================================================
57 //function : Surface
58 //purpose  : 
59 //=======================================================================
60
61 inline const Handle(Geom_Surface)& GeomAdaptor_Surface::Surface() const {
62   return mySurface;
63 }
64
65 //=======================================================================
66 //function : FirstUParameter
67 //purpose  : 
68 //=======================================================================
69
70 inline Standard_Real GeomAdaptor_Surface::FirstUParameter() const {
71   return myUFirst;
72 }
73
74 //=======================================================================
75 //function : LastUParameter
76 //purpose  : 
77 //=======================================================================
78
79 inline Standard_Real GeomAdaptor_Surface::LastUParameter() const {
80   return myULast;
81 }
82
83 //=======================================================================
84 //function : FirstVParameter
85 //purpose  : 
86 //=======================================================================
87
88 inline Standard_Real GeomAdaptor_Surface::FirstVParameter() const {
89   return myVFirst;
90 }
91
92 //=======================================================================
93 //function : LastVParameter
94 //purpose  : 
95 //=======================================================================
96
97 inline Standard_Real GeomAdaptor_Surface::LastVParameter() const {
98   return myVLast;
99 }
100
101 //=======================================================================
102 //function : GetType
103 //purpose  : 
104 //=======================================================================
105
106 inline GeomAbs_SurfaceType GeomAdaptor_Surface::GetType() const {
107   return mySurfaceType;
108 }