blob: 9848d8fd1008be57407834fa1ecc436e736c6a63 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
--
-- File: Aspect_ColorMapEntries.cdl
-- Created: 23/03/93
-- Author: BBL
--
---Copyright: MatraDatavision 1993
--
class ColorMapEntry from Aspect inherits Storable from Standard
---Version: 0.0
---Purpose: This class defines a colormap entry.
-- A colormap entry is an association between
-- a RGB object and a index in the colormap.
---Keywords:
---Warning:
---References:
uses
Color from Quantity
raises
OutOfRange from Standard,
BadAccess from Aspect
is
Create
returns ColorMapEntry from Aspect;
---Level: Public
---Purpose: Creates an unallocated colormap entry
Create ( index : in Integer from Standard;
rgb : in Color from Quantity)
returns ColorMapEntry;
---Level: Public
---Purpose: Creates an allocated colormap entry
Create ( entry : in ColorMapEntry from Aspect )
returns ColorMapEntry
---Level: Public
---Purpose: Creates an allocated colormap entry.
-- Warning: Raises error if the colormap entry <entry>
-- is unallocated.
raises BadAccess from Aspect;
SetValue ( me: in out; index : in Integer from Standard;
rgb : in Color from Quantity );
---Level: Public
---Purpose: Sets colormap entry value and allocates it.
SetValue ( me: in out; entry : in ColorMapEntry from Aspect);
---Level: Public
---Purpose: Sets colormap entry value and allocates it.
---C++: alias operator =
SetColor ( me: in out; rgb : in Color from Quantity );
---Level: Public
---Purpose: Sets color <rgb> of colormap entry.
Color ( me : in ) returns Color from Quantity
---Warning: Raises error if the colormap entry is unallocated .
raises BadAccess from Aspect;
---C++: return const &
SetIndex ( me: in out; index : in Integer from Standard);
---Level: Public
---Purpose: Sets index value of a colormap entry.
Index ( me : in ) returns Integer from Standard
---Warning: Raises error if the colormap entry is unallocated .
raises BadAccess from Aspect;
Free ( me : in out );
---Level: Public
---Purpose: Unallocates the colormap entry.
IsAllocated ( me : in )
returns Boolean from Standard;
---Level: Public
---Purpose: Returns True if the colormap entry is allocated.
-- Warning: A colormap entry is allocated when the color and
-- the index is defined.
Dump( me : in ) ;
---Level: Internal
fields
allocated : Boolean from Standard;
mycolor : Color from Quantity;
myindex : Integer from Standard;
myColorIsDef : Boolean from Standard;
myIndexIsDef : Boolean from Standard;
end ColorMapEntry from Aspect;
|