b311480e |
1 | -- Created on: 1993-01-11 |
2 | -- Created by: CKY / Contract Toubro-Larsen ( Arun MENON ) |
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 | -- |
973c2be1 |
8 | -- This library is free software; you can redistribute it and / or modify it |
9 | -- under the terms of the GNU Lesser General Public 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. |
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 RegionRestriction from IGESAppli inherits IGESEntity |
18 | |
19 | ---Purpose: defines RegionRestriction, Type <406> Form <2> |
20 | -- in package IGESAppli |
21 | -- Defines regions to set an application's restriction |
22 | -- over a region. |
23 | |
24 | uses Integer -- no one specific type |
25 | |
26 | is |
27 | |
28 | Create returns mutable RegionRestriction; |
29 | |
30 | -- Specific Methods pertaining to the class |
31 | |
32 | Init (me : mutable; |
33 | nbPropVal : Integer; |
34 | aViasRest : Integer; |
35 | aCompoRest : Integer; |
36 | aCktRest : Integer); |
37 | ---Purpose : This method is used to set the fields of the class |
38 | -- RegionRestriction |
39 | -- - nbPropVal : Number of property values, always = 3 |
40 | -- - aViasRest : Electrical Vias restriction |
41 | -- - aCompoRest : Electrical components restriction |
42 | -- - aCktRest : Electrical circuitry restriction |
43 | |
44 | NbPropertyValues (me) returns Integer; |
45 | ---Purpose : is always 3 |
46 | |
47 | ElectricalViasRestriction (me) returns Integer; |
48 | ---Purpose : returns the Electrical vias restriction |
49 | -- is 0, 1 or 2 |
50 | |
51 | ElectricalComponentRestriction (me) returns Integer; |
52 | ---Purpose : returns the Electrical components restriction |
53 | -- is 0, 1 or 2 |
54 | |
55 | ElectricalCktRestriction (me) returns Integer; |
56 | ---Purpose : returns the Electrical circuitry restriction |
57 | -- is 0, 1 or 2 |
58 | |
59 | fields |
60 | |
61 | -- |
62 | -- Class : IGESAppli_RegionRestriction |
63 | -- |
64 | -- Purpose : Declaration of variables specific to the definition |
65 | -- of the Class RegionRestriction. |
66 | -- |
67 | -- Reminder : A RegionRestriction instance is defined by : |
68 | -- - Number of property values (always = 3) |
69 | -- - Electrical vias restriction |
70 | -- - Electrical components restriction |
71 | -- - Electrical circuitry restriction |
72 | |
73 | theNbPropertyValues : Integer; |
74 | theElectViasRestrict : Integer; |
75 | theElectCompRestrict : Integer; |
76 | theElectCktRestrict : Integer; |
77 | |
78 | end RegionRestriction; |