42cf5bc1 |
1 | // Created on: 1993-04-20 |
2 | // Created by: Modelistation |
3 | // Copyright (c) 1993-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 | #ifndef _HLRBRep_CLPropsATool_HeaderFile |
18 | #define _HLRBRep_CLPropsATool_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
42cf5bc1 |
24 | #include <Standard_Real.hxx> |
25 | #include <Standard_Integer.hxx> |
26 | class gp_Pnt2d; |
27 | class gp_Vec2d; |
28 | |
29 | |
30 | |
31 | class HLRBRep_CLPropsATool |
32 | { |
33 | public: |
34 | |
35 | DEFINE_STANDARD_ALLOC |
36 | |
37 | |
38 | //! Computes the point <P> of parameter <U> on the |
39 | //! Curve from HLRBRep <C>. |
681f3919 |
40 | static void Value (const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P); |
42cf5bc1 |
41 | |
42 | //! Computes the point <P> and first derivative <V1> |
43 | //! of parameter <U> on the curve <C>. |
681f3919 |
44 | static void D1 (const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1); |
42cf5bc1 |
45 | |
46 | //! Computes the point <P>, the first derivative <V1> |
47 | //! and second derivative <V2> of parameter <U> on the |
48 | //! curve <C>. |
681f3919 |
49 | static void D2 (const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2); |
42cf5bc1 |
50 | |
51 | //! Computes the point <P>, the first derivative <V1>, |
52 | //! the second derivative <V2> and third derivative |
53 | //! <V3> of parameter <U> on the curve <C>. |
681f3919 |
54 | static void D3 (const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3); |
42cf5bc1 |
55 | |
56 | //! returns the order of continuity of the curve <C>. |
57 | //! returns 1 : first derivative only is computable |
58 | //! returns 2 : first and second derivative only are |
59 | //! computable. returns 3 : first, second and third |
60 | //! are computable. |
681f3919 |
61 | static Standard_Integer Continuity (const HLRBRep_Curve* A); |
42cf5bc1 |
62 | |
63 | //! returns the first parameter bound of the curve. |
681f3919 |
64 | static Standard_Real FirstParameter (const HLRBRep_Curve* A); |
42cf5bc1 |
65 | |
66 | //! returns the last parameter bound of the curve. |
67 | //! FirstParameter must be less than LastParamenter. |
681f3919 |
68 | static Standard_Real LastParameter (const HLRBRep_Curve* A); |
42cf5bc1 |
69 | |
70 | |
71 | |
72 | |
73 | protected: |
74 | |
75 | |
76 | |
77 | |
78 | |
79 | private: |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | }; |
86 | |
87 | |
88 | #include <HLRBRep_CLPropsATool.lxx> |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | #endif // _HLRBRep_CLPropsATool_HeaderFile |