1 -- Created on: 1993-01-11
2 -- Created by: CKY / Contract Toubro-Larsen ( TCD )
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class NetworkSubfigure from IGESDraw inherits IGESEntity
19 ---Purpose : defines IGES Network Subfigure Instance Entity,
20 -- Type <420> Form Number <0> in package IGESDraw
22 -- Used to specify each instance of Network Subfigure
23 -- Definition Entity (Type 320, Form 0).
28 HAsciiString from TCollection,
29 NetworkSubfigureDef from IGESDraw,
30 TextDisplayTemplate from IGESGraph,
31 ConnectPoint from IGESDraw,
32 HArray1OfConnectPoint from IGESDraw
38 Create returns NetworkSubfigure;
40 -- specific for the entity
43 aDefinition : NetworkSubfigureDef;
47 aDesignator : HAsciiString;
48 aTemplate : TextDisplayTemplate;
49 allConnectPoints : HArray1OfConnectPoint);
50 ---Purpose : This method is used to set the fields of the class
52 -- - aDefinition : Network Subfigure Definition Entity
53 -- - aTranslation : Translation data relative to the model
54 -- space or the definition space
55 -- - aScaleFactor : Scale factors in the definition space
56 -- - aTypeFlag : Type flag
57 -- - aDesignator : Primary reference designator
58 -- - aTemplate : Primary reference designator Text
59 -- display Template Entity
60 -- - allConnectPoints : Associated Connect Point Entities
62 SubfigureDefinition (me) returns NetworkSubfigureDef;
63 ---Purpose : returns Network Subfigure Definition Entity specified by this entity
65 Translation (me) returns XYZ from gp;
66 ---Purpose : returns Translation Data relative to either model space or to
67 -- the definition space of a referring entity
69 TransformedTranslation (me) returns XYZ from gp;
70 ---Purpose : returns the Transformed Translation Data relative to either model
71 -- space or to the definition space of a referring entity
73 ScaleFactors (me) returns XYZ from gp;
74 ---Purpose : returns Scale factor in definition space(x, y, z axes)
76 TypeFlag (me) returns Integer;
77 ---Purpose : returns Type Flag which implements the distinction between Logical
78 -- design and Physical design data,and is required if both are present.
79 -- Type Flag = 0 : Not specified (default)
83 ReferenceDesignator (me) returns HAsciiString from TCollection;
84 ---Purpose : returns the primary reference designator
86 HasDesignatorTemplate (me) returns Boolean;
87 ---Purpose : returns True if Text Display Template Entity is specified,
90 DesignatorTemplate (me) returns TextDisplayTemplate;
91 ---Purpose : returns primary reference designator Text Display Template Entity,
92 -- or null. If null, no Text Display Template Entity specified
94 NbConnectPoints (me) returns Integer;
95 ---Purpose : returns the number of associated Connect Point Entities
97 ConnectPoint (me; Index : Integer) returns ConnectPoint
99 ---Purpose : returns the Index'th associated Connect point Entity
100 -- raises exception if Index <= 0 or Index > NbConnectPoints()
105 -- Class : IGESDraw_NetworkSubfigure
107 -- Purpose : Declaration of the variables specific to a NetworkSubfigure.
109 -- Reminder : A Network Subfigure Instance Entity is defined by :
110 -- - a Network Subfigure Definition
111 -- - translation data relative to referring entity's
112 -- model or definition space
113 -- - the scale factors in x,y and z directions
114 -- - a type flag to distinguish logical design data
115 -- from physical data
116 -- Type flag : 0 = not specified (default)
119 -- - the pointers to associated Connect Point Entities
122 theSubfigureDefinition : NetworkSubfigureDef;
124 theTranslation : XYZ;
126 theScaleFactor : XYZ;
128 theTypeFlag : Integer;
130 theDesignator : HAsciiString;
132 theDesignatorTemplate : TextDisplayTemplate;
134 theConnectPoints : HArray1OfConnectPoint;
136 end NetworkSubfigure;