-- File: Materials_Color.cdl -- Created: Thu Apr 15 17:45:55 1993 -- Author: Gilles DEBARBOUILLE -- ---Copyright: Matra Datavision 1993 class Color from Materials ---Purpose: This class encapsulates a Quantity_Color in a -- Transient object, to be used in an ObjectProperty -- from the package Dynamic. inherits Transient uses Color from Quantity, TypeOfColor from Quantity, NameOfColor from Quantity --raises is Create returns mutable Color from Materials; ---Level: Internal ---Purpose: Creates an empty instance of Color. Create(acolor : Color from Quantity) ---Level: Internal ---Purpose: Creates an instance of Color, with as color. returns mutable Color from Materials; Color(me : mutable ; acolor : Color from Quantity) ---Level: Internal ---Purpose: Sets into . is static; Color(me) returns Color from Quantity ---Level: Internal ---Purpose: Returns a Quantity_Color corresponding to . is static; Color(me; aTypeOfColor : in TypeOfColor from Quantity; Reel1, Reel2, Reel3 : out Real from Standard); ---Purpose: Get the values ( RGB or HLS ) between 0.0 and 1.0 Color255(me; aTypeOfColor : in TypeOfColor from Quantity; Reel1, Reel2, Reel3 : out Real from Standard); ---Purpose: Get the values ( RGB or HLS ) between 0.0 and 255.0 SetColor(me : mutable; aTypeOfColor : in TypeOfColor from Quantity; Reel1, Reel2, Reel3 : in Real from Standard); ---Purpose: Set the values ( RGB or HLS ) between 0.0 and 1.0 SetColor255(me : mutable; aTypeOfColor : in TypeOfColor from Quantity; Reel1, Reel2, Reel3 : in Real from Standard); ---Purpose: Set the values ( RGB or HLS ) between 0.0 and 255.0 fields thecolor : Color from Quantity; end Color;