b311480e |
1 | -- Created on: 1993-01-20 |
2 | -- Created by: Laurent PAINNOT |
3 | -- Copyright (c) 1993-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 | -- |
973c2be1 |
8 | -- This library is free software; you can redistribute it and / or modify it |
9 | -- under the terms of the GNU Lesser General Public 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. |
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 | deferred generic class MLineTool from AppParCurves (MLine as any) |
18 | |
19 | ---Purpose: Template which defines all the services relative to |
20 | -- a MultiLine for approximation algorithms. |
21 | |
22 | |
23 | uses Pnt from gp, |
24 | Pnt2d from gp, |
25 | Vec from gp, |
26 | Vec2d from gp, |
27 | Array1OfPnt from TColgp, |
28 | Array1OfPnt2d from TColgp, |
29 | Array1OfVec from TColgp, |
30 | Array1OfVec2d from TColgp |
31 | |
32 | is |
33 | |
34 | |
35 | FirstPoint(myclass; ML: MLine) returns Integer; |
36 | ---Purpose: Returns the first index of multipoints of the MLine. |
37 | |
38 | |
39 | LastPoint(myclass; ML: MLine) returns Integer; |
40 | ---Purpose: Returns the last index of multipoints of the MLine. |
41 | |
42 | |
43 | |
44 | NbP2d(myclass; ML: MLine) returns Integer; |
45 | ---Purpose: Returns the number of 2d points of a MLine. |
46 | |
47 | |
48 | NbP3d(myclass; ML: MLine) returns Integer; |
49 | ---Purpose: Returns the number of 3d points of a MLine. |
50 | |
51 | |
52 | |
53 | Value(myclass; ML: MLine; MPointIndex: Integer; tabPt: out Array1OfPnt); |
54 | ---Purpose: returns the 3d points of the multipoint <MPointIndex> |
55 | -- when only 3d points exist. |
56 | |
57 | |
58 | Value(myclass; ML: MLine; MPointIndex: Integer; |
59 | tabPt2d: out Array1OfPnt2d); |
60 | ---Purpose: returns the 2d points of the multipoint <MPointIndex> |
61 | -- when only 2d points exist. |
62 | |
63 | |
64 | Value(myclass; ML: MLine; MPointIndex: Integer; |
65 | tabPt: out Array1OfPnt; tabPt2d: out Array1OfPnt2d); |
66 | ---Purpose: returns the 3d and 2d points of the multipoint |
67 | -- <MPointIndex>. |
68 | |
69 | |
70 | Tangency(myclass; ML: MLine; MPointIndex: Integer; tabV: out Array1OfVec) |
71 | returns Boolean; |
72 | ---Purpose: returns the 3d points of the multipoint <MPointIndex> |
73 | -- when only 3d points exist. |
74 | |
75 | |
76 | Tangency(myclass; ML: MLine; MPointIndex: Integer; |
77 | tabV2d: out Array1OfVec2d) |
78 | returns Boolean; |
79 | ---Purpose: returns the 2d tangency points of the multipoint |
80 | -- <MPointIndex> only when 2d points exist. |
81 | |
82 | |
83 | Tangency(myclass; ML: MLine; MPointIndex: Integer; |
84 | tabV: out Array1OfVec; tabV2d: out Array1OfVec2d) |
85 | returns Boolean; |
86 | ---Purpose: returns the 3d and 2d points of the multipoint |
87 | -- <MPointIndex>. |
88 | |
89 | |
90 | |
91 | |
92 | |
93 | end MLineTool; |