0024830: Remove redundant keyword 'mutable' in CDL declarations
[occt.git] / src / IGESDraw / IGESDraw_NetworkSubfigureDef.cdl
CommitLineData
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
17class NetworkSubfigureDef from IGESDraw inherits IGESEntity
18
19 ---Purpose : defines IGESNetworkSubfigureDef,
20 -- Type <320> Form Number <0> in package IGESDraw
21 --
22 -- This class differs from the ordinary subfigure definition
23 -- in that it defines a specialized subfigure, one whose
24 -- instances may participate in networks.
25 --
26 -- The Number of associated(child) Connect Point Entities
27 -- in the Network Subfigure Instance must match the number
28 -- in the Network Subfigure Definition, their order must
29 -- be identical, and any unused points of connection in
30 -- the instance must be indicated by a null(zero) pointer.
31 --
32
33uses
34
35 HArray1OfIGESEntity from IGESData,
36 ConnectPoint from IGESDraw,
37 HArray1OfConnectPoint from IGESDraw,
38 TextDisplayTemplate from IGESGraph,
39 HAsciiString from TCollection
40
41raises OutOfRange
42
43is
44
6e33d3ce 45 Create returns NetworkSubfigureDef;
7fd59977 46
47 -- Specific Methods pertaining to the class
48
49 Init (me : mutable;
50 aDepth : Integer;
51 aName : HAsciiString;
52 allEntities : HArray1OfIGESEntity;
53 aTypeFlag : Integer;
54 aDesignator : HAsciiString;
55 aTemplate : TextDisplayTemplate;
56 allPointEntities : HArray1OfConnectPoint);
57 ---Purpose : This method is used to set fields of the class
58 -- NetworkSubfigureDef
59 -- - aDepth : Depth of Subfigure
60 -- (indicating the amount of nesting)
61 -- - aName : Subfigure Name
62 -- - allEntities : Associated subfigures Entities exclusive
63 -- of primary reference designator and
64 -- Control Points.
65 -- - aTypeFlag : Type flag determines which Entity
66 -- belongs in which design
67 -- (Logical design or Physical design)
68 -- - aDesignator : Designator HAsciiString and its Template
69 -- - allPointEntities : Associated Connect Point Entities
70
71 Depth (me) returns Integer;
72 ---Purpose : returns Depth of Subfigure(indication the amount of nesting)
73 -- Note : The Depth is inclusive of both Network Subfigure Definition
74 -- Entity and the Ordinary Subfigure Definition Entity.
75 -- Thus, the two may be nested.
76
77 Name (me) returns HAsciiString from TCollection;
78 ---Purpose : returns the Subfigure Name
79
80 NbEntities (me) returns Integer;
81 ---Purpose : returns Number of Associated(child) entries in subfigure exclusive
82 -- of primary reference designator and Control Points
83
84 Entity (me; Index : Integer) returns IGESEntity
85 raises OutOfRange;
86 ---Purpose : returns the Index'th IGESEntity in subfigure exclusive of primary
87 -- reference designator and Control Points
88 -- raises exception if Index <=0 or Index > NbEntities()
89
90 TypeFlag (me) returns Integer;
91 ---Purpose : return value = 0 : Not Specified
92 -- = 1 : Logical design
93 -- = 2 : Physical design
94
95 Designator (me) returns HAsciiString from TCollection;
96 ---Purpose : returns Primary Reference Designator
97
98 HasDesignatorTemplate (me) returns Boolean;
99 ---Purpose : returns True if Text Display Template is specified for
100 -- primary designator else returns False
101
102 DesignatorTemplate (me) returns TextDisplayTemplate;
103 ---Purpose : if Text Display Template specified then return TextDisplayTemplate
104 -- else return NULL Handle
105
106 NbPointEntities (me) returns Integer;
107 ---Purpose : returns the Number Of Associated(child) Connect Point Entities
108
109 HasPointEntity (me; Index : Integer) returns Boolean
110 raises OutOfRange;
111 ---Purpose : returns True is Index'th Associated Connect Point Entity is present
112 -- else returns False
113 -- raises exception if Index is out of bound
114
115 PointEntity (me; Index : Integer) returns ConnectPoint
116 raises OutOfRange;
117 ---Purpose : returns the Index'th Associated Connect Point Entity
118 -- raises exception if Index <= 0 or Index > NbPointEntities()
119
120fields
121
122--
123-- Class : IGESDraw_NetworkSubfigureDef
124--
125-- Purpose : Declaration of the variables specific to a NetworkSubfigureDef.
126--
127-- Reminder : A NetworkSubfigureDef is defined by :
128-- - Depth of Subfigure(indicating the amount of nesting)
129-- - Subfigure Name
130-- - Associated subfigures Entities exclusive
131-- of primary reference designator and Control Points.
132-- - Type flag determines which Entity belongs in which design
133-- (Logical design or Physical design)
134-- - Designator HAsciiString and its Template
135-- - Associated Connect Point Entities
136--
137
138 theDepth : Integer;
139
140 theName : HAsciiString;
141
142 theEntities : HArray1OfIGESEntity;
143
144 theTypeFlag : Integer;
145
146 theDesignator : HAsciiString;
147
148 theDesignatorTemplate : TextDisplayTemplate;
149
150 thePointEntities : HArray1OfConnectPoint;
151
152end NetworkSubfigureDef;