b311480e |
1 | -- Created on: 1993-04-30 |
2 | -- Created by: Yves FRICAUD |
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 | |
23 | class Node from MAT |
24 | |
25 | ---Purpose : |
26 | |
27 | inherits |
28 | |
29 | TShared from MMgt |
30 | |
31 | uses |
32 | |
33 | Arc from MAT, |
34 | BasicElt from MAT, |
35 | SequenceOfArc from MAT, |
36 | SequenceOfBasicElt from MAT, |
37 | Address from Standard |
38 | is |
39 | Create (GeomIndex : Integer; |
40 | LinkedArc : Arc from MAT; |
41 | Distance : Real) |
42 | returns mutable Node from MAT; |
43 | |
44 | GeomIndex (me) |
45 | ---Purpose: Returns the index associated of the geometric |
46 | -- representation of <me>. |
47 | returns Integer |
48 | is static; |
49 | |
50 | Index (me) |
51 | ---Purpose: Returns the index associated of the node |
52 | returns Integer |
53 | is static; |
54 | |
55 | LinkedArcs (me ; S : in out SequenceOfArc) |
56 | ---Purpose: Returns in <S> the Arcs linked to <me>. |
57 | is static; |
58 | |
59 | NearElts (me ; S : in out SequenceOfBasicElt) |
60 | ---Purpose: Returns in <S> the BasicElts equidistant |
61 | -- to <me>. |
62 | is static; |
63 | |
64 | Distance (me) |
65 | --Purpose: Returns the distance between <me> and the figure. |
66 | returns Real |
67 | is static; |
68 | |
69 | PendingNode (me) |
70 | --- Purpose:Returns True if <me> is a pending Node. |
71 | -- (ie : the number of Arc Linked = 1) |
72 | returns Boolean from Standard |
73 | is static; |
74 | |
75 | OnBasicElt (me) |
76 | ---Purpose: Returns True if <me> belongs to the figure. |
77 | returns Boolean from Standard |
78 | is static; |
79 | |
80 | Infinite (me) |
81 | ---Purpose: Returns True if the distance of <me> is Infinite |
82 | returns Boolean from Standard |
83 | is static; |
84 | |
85 | SetIndex (me : mutable ; anIndex : Integer from Standard) |
86 | --- Purpose : Set the index associated of the node |
87 | is static; |
88 | |
89 | SetLinkedArc(me : mutable ; anArc : Arc from MAT) |
90 | is static; |
91 | |
92 | |
93 | fields |
94 | |
95 | nodeIndex : Integer from Standard; |
96 | geomIndex : Integer from Standard; |
97 | aLinkedArc : Address from Standard; |
98 | distance : Real from Standard; |
99 | |
100 | end Node; |
101 | |
102 | |
103 | |
104 | |
105 | |
106 | |
107 | |
108 | |