0023024: Update headers of OCCT files
[occt.git] / src / Approx / Approx_TheLineTool.cdl
CommitLineData
b311480e 1-- Created on: 1993-01-26
2-- Created by: Laurent PAINNOT
3-- Copyright (c) 1993-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23deferred generic class TheLineTool from Approx (MLine as any;
24 MPoint as any)
25
26 ---Purpose: Template which defines all the services relative to
27 -- a MultiLine for approximation algorithms.
28
29uses Status from Approx,
30 Pnt from gp,
31 Pnt2d from gp,
32 Vec from gp,
33 Vec2d from gp,
34 Array1OfPnt from TColgp,
35 Array1OfPnt2d from TColgp,
36 Array1OfVec from TColgp,
37 Array1OfVec2d from TColgp
38
39is
40
41
42 FirstPoint(myclass; ML: MLine) returns Integer;
43 ---Purpose: Returns the first index of multipoints of the MLine.
44
45
46 LastPoint(myclass; ML: MLine) returns Integer;
47 ---Purpose: Returns the last index of multipoints of the MLine.
48
49
50
51 NbP2d(myclass; ML: MLine) returns Integer;
52 ---Purpose: Returns the number of 2d points of a MLine.
53
54
55 NbP3d(myclass; ML: MLine) returns Integer;
56 ---Purpose: Returns the number of 3d points of a MLine.
57
58
59 Value(myclass; ML: MLine; MPointIndex: Integer; tabPt: out Array1OfPnt);
60 ---Purpose: returns the 3d points of the multipoint <MPointIndex>
61 -- when only 3d points exist.
62
63
64 Value(myclass; ML: MLine; MPointIndex: Integer;
65 tabPt2d: out Array1OfPnt2d);
66 ---Purpose: returns the 2d points of the multipoint <MPointIndex>
67 -- when only 2d points exist.
68
69
70 Value(myclass; ML: MLine; MPointIndex: Integer;
71 tabPt: out Array1OfPnt; tabPt2d: out Array1OfPnt2d);
72 ---Purpose: returns the 3d and 2d points of the multipoint
73 -- <MPointIndex>.
74
75
76 Tangency(myclass; ML: MLine; MPointIndex: Integer; tabV: out Array1OfVec)
77 returns Boolean;
78 ---Purpose: returns the 3d derivative values of the multipoint
79 -- <MPointIndex> when only 3d points exist.
80
81
82 Tangency(myclass; ML: MLine; MPointIndex: Integer;
83 tabV2d: out Array1OfVec2d)
84 returns Boolean;
85 ---Purpose: returns the 2d derivative values of the multipoint
86 -- <MPointIndex> only when 2d points exist.
87
88
89 Tangency(myclass; ML: MLine; MPointIndex: Integer;
90 tabV: out Array1OfVec; tabV2d: out Array1OfVec2d)
91 returns Boolean;
92 ---Purpose: returns the 3d and 2d derivative values of the multipoint
93 -- <MPointIndex>.
94
95
96
97 WhatStatus(myclass; ML: MLine; I1, I2: Integer)
98 returns Status from Approx;
99 ---Purpose: . if Status = PointsAdded, a new MLine is created between
100 -- the two MPoints <I1> and <I2> of ML by MakeMLBetween.
101 -- . if Status = NoPointsAdded, no MLine will be created.
102 -- The algorithm will return the best approximation done.
103 -- . if Status = NoApproximation, nothing will be
104 -- done between <I1> and <I2>.
105
106 MakeMLBetween(myclass; ML: MLine; I1, I2: Integer;
107 NbPMin: Integer)
108 returns MLine;
109 ---Purpose: Is called if WhatStatus returned "PointsAdded".
110
111end TheLineTool;
112