blob: 86bdafba32daca6bd55dc1ba91dbe8236939b7e2 (
plain)
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
|
--
-- File : DefinitionLevel.cdl
-- Created : Sat 9 Jan 1993
-- Author : CKY / Contract Toubro-Larsen ( TCD )
--
---Copyright : MATRA-DATAVISION 1993
--
class DefinitionLevel from IGESGraph inherits LevelListEntity
---Purpose: defines IGESDefinitionLevel, Type <406> Form <1>
-- in package IGESGraph
--
-- Indicates the no. of levels on which an entity is
-- defined
uses
IGESEntity from IGESData,
HArray1OfInteger from TColStd
raises OutOfRange
is
Create returns mutable DefinitionLevel;
-- Specific Methods pertaining to the class
Init (me : mutable;
allLevelNumbers : HArray1OfInteger);
---Purpose : This method is used to set the fields of the class
-- DefinitionLevel
-- - allLevelNumbers : Values of Level Numbers
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me>
NbLevelNumbers (me) returns Integer;
---Purpose : Must return the count of levels (== NbPropertyValues)
LevelNumber (me; LevelIndex : Integer) returns Integer
raises OutOfRange;
---Purpose : returns the Level Number of <me> indicated by <LevelIndex>
-- raises an exception if LevelIndex is <= 0 or
-- LevelIndex > NbPropertyValues
fields
--
-- Class : IGESGraph_DefinitionLevel
--
-- Purpose : Declaration of the variables specific to a Definition Level.
--
-- Reminder : A Definition Level is defined by :
-- - Level Numbers
theLevelNumbers : HArray1OfInteger;
end DefinitionLevel;
|