b311480e |
1 | // Created on: 1992-08-18 |
2 | // Created by: Herve LEGRAND |
3 | // Copyright (c) 1992-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | #include <HLRBRep_Surface.hxx> |
18 | #include <GeomAbs_Shape.hxx> |
19 | #include <gp_Pnt.hxx> |
20 | |
21 | //======================================================================= |
22 | //function : Value |
23 | //purpose : |
24 | //======================================================================= |
25 | |
26 | inline void HLRBRep_SLPropsATool::Value |
27 | (const Standard_Address A, |
28 | const Standard_Real U, |
29 | const Standard_Real V, |
30 | gp_Pnt& P) |
31 | { P = ((HLRBRep_Surface*)A)->Value(U, V); } |
32 | |
33 | //======================================================================= |
34 | //function : D1 |
35 | //purpose : |
36 | //======================================================================= |
37 | |
38 | inline void HLRBRep_SLPropsATool::D1 |
39 | (const Standard_Address A, |
40 | const Standard_Real U, |
41 | const Standard_Real V, |
42 | gp_Pnt& P, |
43 | gp_Vec& D1U, |
44 | gp_Vec& D1V) |
45 | { ((HLRBRep_Surface*)A)->D1(U, V, P, D1U, D1V); } |
46 | |
47 | //======================================================================= |
48 | //function : D2 |
49 | //purpose : |
50 | //======================================================================= |
51 | |
52 | inline void HLRBRep_SLPropsATool::D2 |
53 | (const Standard_Address A, |
54 | const Standard_Real U, |
55 | const Standard_Real V, |
56 | gp_Pnt& P, |
57 | gp_Vec& D1U, |
58 | gp_Vec& D1V, |
59 | gp_Vec& D2U, |
60 | gp_Vec& D2V, |
61 | gp_Vec& DUV) |
62 | { ((HLRBRep_Surface*)A)->D2(U, V, P, D1U, D1V, D2U, D2V, DUV); } |
63 | |
64 | //======================================================================= |
65 | //function : DN |
66 | //purpose : |
67 | //======================================================================= |
68 | |
69 | inline gp_Vec HLRBRep_SLPropsATool::DN |
70 | (const Standard_Address A, |
71 | const Standard_Real U, |
72 | const Standard_Real V, |
73 | const Standard_Integer Nu, |
74 | const Standard_Integer Nv) |
75 | { return ((HLRBRep_Surface*)A)->DN(U, V, Nu, Nv); } |
76 | |
77 | //======================================================================= |
78 | //function : Continuity |
79 | //purpose : |
80 | //======================================================================= |
81 | |
82 | inline Standard_Integer HLRBRep_SLPropsATool::Continuity |
83 | (const Standard_Address) |
84 | { return 2; } // et boum ! cky le 27 - 04 - 1993 |
85 | |
86 | //======================================================================= |
87 | //function : Bounds |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | inline void HLRBRep_SLPropsATool::Bounds |
92 | (const Standard_Address, |
93 | Standard_Real& U1, |
94 | Standard_Real& V1, |
95 | Standard_Real& U2, |
96 | Standard_Real& V2) |
97 | { |
98 | U1 = V1 = RealFirst(); |
99 | U2 = V2 = RealLast(); |
100 | } |