1 -- Created on: 2000-08-16
2 -- Created by: data exchange team
3 -- Copyright (c) 2000-2012 OPEN CASCADE SAS
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
22 class Color from XCAFDoc inherits Attribute from TDF
28 NameOfColor from Quantity,
30 RelocationTable from TDF
33 Create returns Color from XCAFDoc;
35 ---Category: class methods
39 ---C++: return const &
40 returns GUID from Standard;
43 Set (myclass; label : Label from TDF; C : Color from Quantity)
44 returns Color from XCAFDoc;
46 Set (myclass; label : Label from TDF; C : NameOfColor from Quantity)
47 returns Color from XCAFDoc;
49 Set (myclass; label : Label from TDF; R,G,B : Real from Standard)
50 returns Color from XCAFDoc;
52 ---Purpose: Find, or create, a Color attribute and set it's value
53 -- the Color attribute is returned.
57 ---Category: Color methods
60 Set (me : mutable; C : Color from Quantity);
62 Set (me : mutable; C : NameOfColor from Quantity);
64 Set (me : mutable; R,G,B : Real from Standard);
66 GetColor (me) returns Color from Quantity;
67 ---C++: return const &
69 GetNOC (me) returns NameOfColor from Quantity;
71 GetRGB (me; R,G,B : out Real from Standard);
73 --IsCaptured(me) returns Boolean;
74 ---Purpose: Returns True if there is a reference on the same label
76 ---Category: methodes de TDF_Attribute
77 -- =========================
80 ---C++: return const &
81 returns GUID from Standard;
83 Restore (me: mutable; With : Attribute from TDF);
86 returns mutable Attribute from TDF;
88 Paste (me; Into : mutable Attribute from TDF;
89 RT : mutable RelocationTable from TDF);
91 -- Dump(me; anOS : in out OStream from Standard)
92 -- returns OStream from Standard
97 myColor : Color from Quantity;