b311480e |
1 | -- Created on: 1993-01-11 |
2 | -- Created by: CKY / Contract Toubro-Larsen ( Niraj RANGWALA ) |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
7fd59977 |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
7fd59977 |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
7fd59977 |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class ConnectPoint from IGESDraw inherits IGESEntity |
18 | |
19 | ---Purpose : defines IGESConnectPoint, Type <132> Form Number <0> |
20 | -- in package IGESDraw |
21 | -- |
22 | -- Connect Point Entity describes a point of connection for |
23 | -- zero, one or more entities. Its referenced from Composite |
24 | -- curve, or Network Subfigure Definition/Instance, or Flow |
25 | -- Associative Instance, or it may stand alone. |
26 | |
27 | uses |
28 | |
29 | HAsciiString from TCollection, |
30 | Pnt from gp, |
31 | XYZ from gp, |
32 | TextDisplayTemplate from IGESGraph |
33 | |
34 | is |
35 | |
6e33d3ce |
36 | Create returns ConnectPoint; |
7fd59977 |
37 | |
38 | -- Specific Methods pertaining to the class |
39 | |
40 | Init (me : mutable; |
41 | aPoint : XYZ; |
42 | aDisplaySymbol : IGESEntity; |
43 | aTypeFlag : Integer; |
44 | aFunctionFlag : Integer; |
45 | aFunctionIdentifier : HAsciiString; |
46 | anIdentifierTemplate : TextDisplayTemplate; |
47 | aFunctionName : HAsciiString; |
48 | aFunctionTemplate : TextDisplayTemplate; |
49 | aPointIdentifier : Integer; |
50 | aFunctionCode : Integer; |
51 | aSwapFlag : Integer; |
52 | anOwnerSubfigure : IGESEntity); |
53 | ---Purpose : This method is used to set the fields of the class |
54 | -- ConnectPoint |
55 | -- - aPoint : A Coordinate point |
56 | -- - aDisplaySymbol : Display symbol Geometry |
57 | -- - aTypeFlag : Type of the connection |
58 | -- - aFunctionFlag : Function flag for the connection |
59 | -- - aFunctionIdentifier : Connection Point Function Identifier |
60 | -- - anIdentifierTemplate : Connection Point Function Template |
61 | -- - aFunctionName : Connection Point Function Name |
62 | -- - aFunctionTemplate : Connection Point Function Template |
63 | -- - aPointIdentifier : Unique Connect Point Identifier |
64 | -- - aFunctionCode : Connect Point Function Code |
65 | -- - aSwapFlag : Connect Point Swap Flag |
66 | -- - anOwnerSubfigure : Pointer to the "Owner" Entity |
67 | |
68 | Point (me) returns Pnt; |
69 | ---Purpose : returns the coordinate of the connection point |
70 | |
71 | TransformedPoint (me) returns Pnt; |
72 | ---Purpose : returns the Transformed coordinate of the connection point |
73 | |
74 | HasDisplaySymbol (me) returns Boolean; |
75 | ---Purpose : returns True if Display symbol is specified |
76 | -- else returns False |
77 | |
78 | DisplaySymbol (me) returns IGESEntity; |
79 | ---Purpose : if display symbol specified returns display symbol geometric entity |
80 | -- else returns NULL Handle |
81 | |
82 | TypeFlag (me) returns Integer; |
83 | ---Purpose : return value specifies a particular type of connection : |
84 | -- Type Flag = 0 : Not Specified(default) |
85 | -- 1 : Nonspecific logical point of connection |
86 | -- 2 : Nonspecific physical point of connection |
87 | -- 101 : Logical component pin |
88 | -- 102 : Logical part connector |
89 | -- 103 : Logical offpage connector |
90 | -- 104 : Logical global signal connector |
91 | -- 201 : Physical PWA surface mount pin |
92 | -- 202 : Physical PWA blind pin |
93 | -- 203 : Physical PWA thru-pin |
94 | -- 5001-9999 : Implementor defined. |
95 | |
96 | FunctionFlag (me) returns Integer; |
97 | ---Purpose : returns Function Code that specifies a particular function for the |
98 | -- ECO576 connection : |
99 | -- e.g., Function Flag = 0 : Unspecified(default) |
100 | -- = 1 : Electrical Signal |
101 | -- = 2 : Fluid flow Signal |
102 | |
103 | FunctionIdentifier (me) returns HAsciiString from TCollection; |
104 | ---Purpose : return HAsciiString identifying Pin Number or Nozzle Label etc. |
105 | |
106 | HasIdentifierTemplate (me) returns Boolean; |
107 | ---Purpose : returns True if Text Display Template is specified for Identifier |
108 | -- else returns False |
109 | |
110 | IdentifierTemplate (me) returns TextDisplayTemplate; |
111 | ---Purpose : if Text Display Template for the Function Identifier is defined, |
112 | -- returns TestDisplayTemplate |
113 | -- else returns NULL Handle |
114 | |
115 | FunctionName (me) returns HAsciiString from TCollection; |
116 | ---Purpose : returns Connection Point Function Name |
117 | |
118 | HasFunctionTemplate (me) returns Boolean; |
119 | ---Purpose : returns True if Text Display Template is specified for Function Name |
120 | -- else returns False |
121 | |
122 | FunctionTemplate (me) returns TextDisplayTemplate; |
123 | ---Purpose : if Text Display Template for the Function Name is defined, |
124 | -- returns TestDisplayTemplate |
125 | -- else returns NULL Handle |
126 | |
127 | PointIdentifier (me) returns Integer; |
128 | ---Purpose : returns the Unique Connect Point Identifier |
129 | |
130 | FunctionCode (me) returns Integer; |
131 | ---Purpose : returns the Connect Point Function Code |
132 | |
133 | SwapFlag (me) returns Boolean; |
134 | ---Purpose : return value = 0 : Connect point may be swapped(default) |
135 | -- = 1 : Connect point may not be swapped |
136 | |
137 | HasOwnerSubfigure (me) returns Boolean; |
138 | ---Purpose : returns True if Network Subfigure Instance/Definition Entity |
139 | -- is specified |
140 | -- else returns False |
141 | |
142 | OwnerSubfigure (me) returns IGESEntity; |
143 | ---Purpose : returns "owner" Network Subfigure Instance Entity, |
144 | -- or Network Subfigure Definition Entity, or NULL Handle. |
145 | |
146 | fields |
147 | |
148 | -- |
149 | -- Class : IGESDraw_ConnectPoint |
150 | -- |
151 | -- Purpose : Declaration of the variables specific to a ConnectPoint. |
152 | -- |
153 | -- Reminder : A ConnectPoint is defined by : |
154 | -- - A Coordinate point |
155 | -- - Display symbol Geometry |
156 | -- - Type of the connection |
157 | -- - Function flag for the connection |
158 | -- - Connection Point Function Identifier and its Template |
159 | -- - Connection Point Function Name and its Template |
160 | -- - Unique Connect Point Identifier |
161 | -- - Connect Point Function Code |
162 | -- - Connect Point Swap Flag |
163 | -- - Pointer to the "Owner" |
164 | -- |
165 | |
166 | thePoint : XYZ; |
167 | |
168 | theDisplaySymbol : IGESEntity; |
169 | |
170 | theTypeFlag : Integer; |
171 | |
172 | theFunctionFlag : Integer; |
173 | |
174 | theFunctionIdentifier : HAsciiString; |
175 | |
176 | theIdentifierTemplate : TextDisplayTemplate; |
177 | |
178 | theFunctionName : HAsciiString; |
179 | |
180 | theFunctionTemplate : TextDisplayTemplate; |
181 | |
182 | thePointIdentifier : Integer; |
183 | |
184 | theFunctionCode : Integer; |
185 | |
186 | theSwapFlag : Integer; |
187 | |
188 | theOwnerSubfigure : IGESEntity; |
189 | |
190 | end ConnectPoint; |