7fd59977 |
1 | -- File: AppDef_MyLineTool.cdl |
2 | -- Created: Wed Jan 20 16:20:46 1993 |
3 | -- Author: Laurent PAINNOT |
4 | -- <lpa@sdsun1> |
5 | ---Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | |
9 | |
10 | class MyLineTool from AppDef |
11 | |
12 | uses MultiLine from AppDef, |
13 | Pnt from gp, |
14 | Pnt2d from gp, |
15 | Vec from gp, |
16 | Vec2d from gp, |
17 | Array1OfPnt from TColgp, |
18 | Array1OfPnt2d from TColgp, |
19 | Array1OfVec from TColgp, |
20 | Array1OfVec2d from TColgp, |
21 | Status from Approx |
22 | |
23 | is |
24 | |
25 | |
26 | FirstPoint(myclass; ML: MultiLine) returns Integer; |
27 | ---Purpose: Returns the first index of multipoints of the MultiLine. |
28 | |
29 | |
30 | LastPoint(myclass; ML: MultiLine) returns Integer; |
31 | ---Purpose: Returns the last index of multipoints of the MultiLine. |
32 | |
33 | |
34 | |
35 | NbP2d(myclass; ML: MultiLine) returns Integer; |
36 | ---Purpose: Returns the number of 2d points of a MultiLine. |
37 | |
38 | |
39 | NbP3d(myclass; ML: MultiLine) returns Integer; |
40 | ---Purpose: Returns the number of 3d points of a MultiLine. |
41 | |
42 | |
43 | Value(myclass; ML: MultiLine; MPointIndex: Integer; |
44 | tabPt: out Array1OfPnt); |
45 | ---Purpose: returns the 3d points of the multipoint <MPointIndex> |
46 | -- when only 3d points exist. |
47 | |
48 | |
49 | Value(myclass; ML: MultiLine; MPointIndex: Integer; |
50 | tabPt2d: out Array1OfPnt2d); |
51 | ---Purpose: returns the 2d points of the multipoint <MPointIndex> |
52 | -- when only 2d points exist. |
53 | |
54 | |
55 | Value(myclass; ML: MultiLine; MPointIndex: Integer; |
56 | tabPt: out Array1OfPnt; tabPt2d: out Array1OfPnt2d); |
57 | ---Purpose: returns the 3d and 2d points of the multipoint |
58 | -- <MPointIndex>. |
59 | |
60 | |
61 | Tangency(myclass; ML: MultiLine; MPointIndex: Integer; |
62 | tabV: out Array1OfVec) returns Boolean; |
63 | ---Purpose: returns the 3d points of the multipoint <MPointIndex> |
64 | -- when only 3d points exist. |
65 | |
66 | |
67 | Tangency(myclass; ML: MultiLine; MPointIndex: Integer; |
68 | tabV2d: out Array1OfVec2d) returns Boolean; |
69 | ---Purpose: returns the 2d tangency points of the multipoint |
70 | -- <MPointIndex> only when 2d points exist. |
71 | |
72 | |
73 | Tangency(myclass; ML: MultiLine; MPointIndex: Integer; |
74 | tabV: out Array1OfVec; tabV2d: out Array1OfVec2d) |
75 | returns Boolean; |
76 | ---Purpose: returns the 3d and 2d points of the multipoint |
77 | -- <MPointIndex>. |
78 | |
79 | |
80 | Curvature(myclass; ML: MultiLine; MPointIndex: Integer; |
81 | tabV: out Array1OfVec) returns Boolean; |
82 | ---Purpose: returns the 3d curvatures of the multipoint <MPointIndex> |
83 | -- when only 3d points exist. |
84 | |
85 | |
86 | Curvature(myclass; ML: MultiLine; MPointIndex: Integer; |
87 | tabV2d: out Array1OfVec2d) returns Boolean; |
88 | ---Purpose: returns the 2d curvatures of the multipoint |
89 | -- <MPointIndex> only when 2d points exist. |
90 | |
91 | |
92 | Curvature(myclass; ML: MultiLine; MPointIndex: Integer; |
93 | tabV: out Array1OfVec; tabV2d: out Array1OfVec2d) |
94 | returns Boolean; |
95 | ---Purpose: returns the 3d and 2d curvatures of the multipoint |
96 | -- <MPointIndex>. |
97 | |
98 | |
99 | |
100 | WhatStatus(myclass; ML: MultiLine; I1, I2: Integer) |
101 | returns Status from Approx; |
102 | ---Purpose: returns NoPointsAdded |
103 | |
104 | MakeMLBetween(myclass; ML: MultiLine; I1, I2: Integer; |
105 | NbPMin: Integer) |
106 | returns MultiLine; |
107 | ---Purpose: Is never called in the algorithms. |
108 | -- Nothing is done. |
109 | ---C++: return & |
110 | |
111 | |
112 | end MyLineTool; |