1 -- Created on: 2000-09-08
2 -- Created by: data exchange team
3 -- Copyright (c) 2000-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 class Area from XCAFDoc inherits Attribute from TDF
18 ---Purpose: attribute to store area
25 RelocationTable from TDF
28 Create returns Area from XCAFDoc;
30 ---Purpose: class methods
34 ---C++: return const &
35 returns GUID from Standard;
38 ---C++: return const &
39 returns GUID from Standard;
41 Set (me: mutable; vol: Real from Standard);
42 ---Purpose: Sets a value of volume
44 Set (myclass ; label : Label from TDF; area: Real from Standard)
45 returns Area from XCAFDoc;
46 ---Purpose: Find, or create, an Area attribute and set its value
49 returns Real from Standard;
51 Get (myclass ; label : Label from TDF; area: in out Real from Standard)
52 returns Boolean from Standard;
53 ---Purpose: Returns volume of area as argument and succes status
54 -- returns false if no such attribute at the <label>
56 Restore (me: mutable; With : Attribute from TDF);
59 returns Attribute from TDF;
61 Paste (me; Into : Attribute from TDF;
62 RT : RelocationTable from TDF);
64 Dump(me; anOS : in out OStream from Standard)
65 returns OStream from Standard
71 myValue : Real from Standard;
73 end Area from XCAFDoc;