1 -- File: IGESSelect_SignColor.cdl
2 -- Created: Tue Mar 6 17:37:04 2001
3 -- Author: Christian CAILLET
4 -- <cky@heliox.paris1.matra-dtv.fr>
5 ---Copyright: Matra Datavision 2001
8 class SignColor from IGESSelect inherits Signature from IFSelect
10 ---Purpose : Gives Color attached to an entity
11 -- Several forms are possible, according to <mode>
12 -- 1 : number : "Dnn" for entity, "Snn" for standard, "(none)" for 0
13 -- 2 : name : Of standard color, or of the color entity, or "(none)"
14 -- (if the color entity has no name, its label is taken)
15 -- 3 : RGB values, form R:nn,G:nn,B:nn
16 -- 4 : RED value : an integer
17 -- 5 : GREEN value : an integer
18 -- 6 : BLUE value : an integer
19 -- Other computable values can be added if needed :
20 -- CMY values, Percentages for Hue, Lightness, Saturation
22 uses CString, Transient, AsciiString, InterfaceModel
26 Create (mode : Integer) returns SignColor;
27 ---Purpose : Creates a SignColor
28 -- mode : see above for the meaning
29 -- modes 4,5,6 give a numeric integer value
30 -- Name is initialised according to the mode
32 Value (me; ent : any Transient; model : InterfaceModel) returns CString;
33 ---Purpose : Returns the value (see above)