1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
--
-- File : NetworkSubfigure.cdl
-- Created : Mon 11 Jan 1993
-- Author : CKY / Contract Toubro-Larsen ( TCD )
--
---Copyright : MATRA-DATAVISION 1993
--
class NetworkSubfigure from IGESDraw inherits IGESEntity
---Purpose : defines IGES Network Subfigure Instance Entity,
-- Type <420> Form Number <0> in package IGESDraw
--
-- Used to specify each instance of Network Subfigure
-- Definition Entity (Type 320, Form 0).
uses
XYZ from gp,
HAsciiString from TCollection,
NetworkSubfigureDef from IGESDraw,
TextDisplayTemplate from IGESGraph,
ConnectPoint from IGESDraw,
HArray1OfConnectPoint from IGESDraw
raises OutOfRange
is
Create returns mutable NetworkSubfigure;
-- specific for the entity
Init (me : mutable;
aDefinition : NetworkSubfigureDef;
aTranslation : XYZ;
aScaleFactor : XYZ;
aTypeFlag : Integer;
aDesignator : HAsciiString;
aTemplate : TextDisplayTemplate;
allConnectPoints : HArray1OfConnectPoint);
---Purpose : This method is used to set the fields of the class
-- NetworkSubfigure
-- - aDefinition : Network Subfigure Definition Entity
-- - aTranslation : Translation data relative to the model
-- space or the definition space
-- - aScaleFactor : Scale factors in the definition space
-- - aTypeFlag : Type flag
-- - aDesignator : Primary reference designator
-- - aTemplate : Primary reference designator Text
-- display Template Entity
-- - allConnectPoints : Associated Connect Point Entities
SubfigureDefinition (me) returns NetworkSubfigureDef;
---Purpose : returns Network Subfigure Definition Entity specified by this entity
Translation (me) returns XYZ from gp;
---Purpose : returns Translation Data relative to either model space or to
-- the definition space of a referring entity
TransformedTranslation (me) returns XYZ from gp;
---Purpose : returns the Transformed Translation Data relative to either model
-- space or to the definition space of a referring entity
ScaleFactors (me) returns XYZ from gp;
---Purpose : returns Scale factor in definition space(x, y, z axes)
TypeFlag (me) returns Integer;
---Purpose : returns Type Flag which implements the distinction between Logical
-- design and Physical design data,and is required if both are present.
-- Type Flag = 0 : Not specified (default)
-- = 1 : Logical
-- = 2 : Physical
ReferenceDesignator (me) returns HAsciiString from TCollection;
---Purpose : returns the primary reference designator
HasDesignatorTemplate (me) returns Boolean;
---Purpose : returns True if Text Display Template Entity is specified,
-- else False
DesignatorTemplate (me) returns TextDisplayTemplate;
---Purpose : returns primary reference designator Text Display Template Entity,
-- or null. If null, no Text Display Template Entity specified
NbConnectPoints (me) returns Integer;
---Purpose : returns the number of associated Connect Point Entities
ConnectPoint (me; Index : Integer) returns ConnectPoint
raises OutOfRange;
---Purpose : returns the Index'th associated Connect point Entity
-- raises exception if Index <= 0 or Index > NbConnectPoints()
fields
--
-- Class : IGESDraw_NetworkSubfigure
--
-- Purpose : Declaration of the variables specific to a NetworkSubfigure.
--
-- Reminder : A Network Subfigure Instance Entity is defined by :
-- - a Network Subfigure Definition
-- - translation data relative to referring entity's
-- model or definition space
-- - the scale factors in x,y and z directions
-- - a type flag to distinguish logical design data
-- from physical data
-- Type flag : 0 = not specified (default)
-- 1 = logical
-- 2 = physical
-- - the pointers to associated Connect Point Entities
--
theSubfigureDefinition : NetworkSubfigureDef;
theTranslation : XYZ;
theScaleFactor : XYZ;
theTypeFlag : Integer;
theDesignator : HAsciiString;
theDesignatorTemplate : TextDisplayTemplate;
theConnectPoints : HArray1OfConnectPoint;
end NetworkSubfigure;
|