Integration of OCCT 6.5.0 from SVN
[occt.git] / src / HLRBRep / HLRBRep_SLPropsATool.lxx
CommitLineData
7fd59977 1// File: HLRBRep_SLPropsATool.lxx
2// Created: Tue Aug 18 15:16:03 1992
3// Author: Herve LEGRAND
4// <hl@bravox>
5
6#include <HLRBRep_Surface.hxx>
7#include <GeomAbs_Shape.hxx>
8#include <gp_Pnt.hxx>
9
10//=======================================================================
11//function : Value
12//purpose :
13//=======================================================================
14
15inline void HLRBRep_SLPropsATool::Value
16 (const Standard_Address A,
17 const Standard_Real U,
18 const Standard_Real V,
19 gp_Pnt& P)
20{ P = ((HLRBRep_Surface*)A)->Value(U, V); }
21
22//=======================================================================
23//function : D1
24//purpose :
25//=======================================================================
26
27inline void HLRBRep_SLPropsATool::D1
28 (const Standard_Address A,
29 const Standard_Real U,
30 const Standard_Real V,
31 gp_Pnt& P,
32 gp_Vec& D1U,
33 gp_Vec& D1V)
34{ ((HLRBRep_Surface*)A)->D1(U, V, P, D1U, D1V); }
35
36//=======================================================================
37//function : D2
38//purpose :
39//=======================================================================
40
41inline void HLRBRep_SLPropsATool::D2
42 (const Standard_Address A,
43 const Standard_Real U,
44 const Standard_Real V,
45 gp_Pnt& P,
46 gp_Vec& D1U,
47 gp_Vec& D1V,
48 gp_Vec& D2U,
49 gp_Vec& D2V,
50 gp_Vec& DUV)
51{ ((HLRBRep_Surface*)A)->D2(U, V, P, D1U, D1V, D2U, D2V, DUV); }
52
53//=======================================================================
54//function : DN
55//purpose :
56//=======================================================================
57
58inline gp_Vec HLRBRep_SLPropsATool::DN
59 (const Standard_Address A,
60 const Standard_Real U,
61 const Standard_Real V,
62 const Standard_Integer Nu,
63 const Standard_Integer Nv)
64{ return ((HLRBRep_Surface*)A)->DN(U, V, Nu, Nv); }
65
66//=======================================================================
67//function : Continuity
68//purpose :
69//=======================================================================
70
71inline Standard_Integer HLRBRep_SLPropsATool::Continuity
72 (const Standard_Address)
73{ return 2; } // et boum ! cky le 27 - 04 - 1993
74
75//=======================================================================
76//function : Bounds
77//purpose :
78//=======================================================================
79
80inline void HLRBRep_SLPropsATool::Bounds
81 (const Standard_Address,
82 Standard_Real& U1,
83 Standard_Real& V1,
84 Standard_Real& U2,
85 Standard_Real& V2)
86{
87 U1 = V1 = RealFirst();
88 U2 = V2 = RealLast();
89}
90