b311480e |
1 | -- Created on: 1993-01-09 |
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 | -- |
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 Hierarchy from IGESBasic inherits IGESEntity |
18 | |
19 | ---Purpose: defines Hierarchy, Type <406> Form <10> |
20 | -- in package IGESBasic |
21 | -- Provides ability to control the hierarchy of each |
22 | -- directory entry attribute. |
23 | |
24 | uses Integer -- no one specific type |
25 | |
26 | is |
27 | |
6e33d3ce |
28 | Create returns Hierarchy; |
7fd59977 |
29 | |
30 | -- Specific Methods pertaining to the class |
31 | |
32 | Init (me : mutable; |
33 | nbPropVal : Integer; |
34 | aLineFont : Integer; |
35 | aView : Integer; |
36 | anEntityLevel : Integer; |
37 | aBlankStatus : Integer; |
38 | aLineWt : Integer; |
39 | aColorNum : Integer); |
40 | ---Purpose : This method is used to set the fields of the class |
41 | -- Hierarchy |
42 | -- - nbPropVal : Number of Property values = 6 |
43 | -- - aLineFont : indicates the line font |
44 | -- - aView : indicates the view |
45 | -- - aEntityLevel : indicates the entity level |
46 | -- - aBlankStatus : indicates the blank status |
47 | -- - aLineWt : indicates the line weight |
48 | -- - aColorNum : indicates the color num |
49 | -- aLineFont, aView, aEntityLevel, aBlankStatus, aLineWt and |
50 | -- aColorNum can take 0 or 1. |
51 | -- 0 : The directory entry attribute will apply to entities |
52 | -- physically subordinate to this entity. |
53 | -- 1 : The directory entry attribute of this entity will not |
54 | -- apply to physically subordinate entities. |
55 | |
56 | NbPropertyValues (me) returns Integer; |
57 | ---Purpose : returns the number of property values, which should be 6 |
58 | |
59 | NewLineFont (me) returns Integer; |
60 | ---Purpose : returns the line font |
61 | |
62 | NewView (me) returns Integer; |
63 | ---Purpose : returns the view |
64 | |
65 | NewEntityLevel (me) returns Integer; |
66 | ---Purpose : returns the entity level |
67 | |
68 | NewBlankStatus (me) returns Integer; |
69 | ---Purpose : returns the blank status |
70 | |
71 | NewLineWeight (me) returns Integer; |
72 | ---Purpose : returns the line weight |
73 | |
74 | NewColorNum (me) returns Integer; |
75 | ---Purpose : returns the color number |
76 | |
77 | fields |
78 | |
79 | -- |
80 | -- Class : IGESBasic_Hierarchy |
81 | -- |
82 | -- Purpose : Declaration of variables specific to the definition |
83 | -- of the Class Hierarchy. |
84 | -- |
85 | -- Reminder : A Hierarchy instance is defined by : |
86 | -- - the line font, view, entity level, blank status, line wt |
87 | -- and the color number |
88 | |
89 | theNbPropertyValues : Integer; |
90 | theLineFont : Integer; |
91 | theView : Integer; |
92 | theEntityLevel : Integer; |
93 | theBlankStatus : Integer; |
94 | theLineWeight : Integer; |
95 | theColorNum : Integer; |
96 | |
97 | end Hierarchy; |