]>
Commit | Line | Data |
---|---|---|
42cf5bc1 | 1 | // Created on: 1993-12-02 |
2 | // Created by: Jacques GOUSSARD | |
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 _BRepBlend_PointOnRst_HeaderFile | |
18 | #define _BRepBlend_PointOnRst_HeaderFile | |
19 | ||
c22b52d6 | 20 | #include <Adaptor2d_Curve2d.hxx> |
42cf5bc1 | 21 | #include <IntSurf_Transition.hxx> |
c22b52d6 | 22 | |
42cf5bc1 | 23 | |
42cf5bc1 | 24 | //! Definition of an intersection point between a line |
25 | //! and a restriction on a surface. | |
21c7c457 | 26 | //! Such a point is contains geometrical information (see |
27 | //! the Value method) and logical information. | |
28 | class BRepBlend_PointOnRst | |
42cf5bc1 | 29 | { |
30 | public: | |
31 | ||
32 | DEFINE_STANDARD_ALLOC | |
33 | ||
34 | ||
35 | //! Empty constructor. | |
36 | Standard_EXPORT BRepBlend_PointOnRst(); | |
37 | ||
38 | //! Creates the PointOnRst on the arc A, at parameter Param, | |
39 | //! with the transition TLine on the walking line, and | |
40 | //! TArc on the arc A. | |
c22b52d6 | 41 | Standard_EXPORT BRepBlend_PointOnRst(const Handle(Adaptor2d_Curve2d)& A, const Standard_Real Param, const IntSurf_Transition& TLine, const IntSurf_Transition& TArc); |
42cf5bc1 | 42 | |
43 | //! Sets the values of a point which is on the arc | |
44 | //! A, at parameter Param. | |
c22b52d6 | 45 | Standard_EXPORT void SetArc (const Handle(Adaptor2d_Curve2d)& A, const Standard_Real Param, const IntSurf_Transition& TLine, const IntSurf_Transition& TArc); |
42cf5bc1 | 46 | |
47 | //! Returns the arc of restriction containing the | |
48 | //! vertex. | |
c22b52d6 | 49 | const Handle(Adaptor2d_Curve2d)& Arc() const; |
42cf5bc1 | 50 | |
51 | //! Returns the transition of the point on the | |
52 | //! line on surface. | |
53 | const IntSurf_Transition& TransitionOnLine() const; | |
54 | ||
55 | //! Returns the transition of the point on the arc | |
56 | //! returned by Arc(). | |
57 | const IntSurf_Transition& TransitionOnArc() const; | |
58 | ||
59 | //! Returns the parameter of the point on the | |
60 | //! arc returned by the method Arc(). | |
61 | Standard_Real ParameterOnArc() const; | |
62 | ||
63 | ||
64 | ||
65 | ||
66 | protected: | |
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | private: | |
73 | ||
74 | ||
75 | ||
c22b52d6 | 76 | Handle(Adaptor2d_Curve2d) arc; |
42cf5bc1 | 77 | IntSurf_Transition traline; |
78 | IntSurf_Transition traarc; | |
79 | Standard_Real prm; | |
80 | ||
81 | ||
82 | }; | |
83 | ||
84 | ||
85 | #include <BRepBlend_PointOnRst.lxx> | |
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 | #endif // _BRepBlend_PointOnRst_HeaderFile |