1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/src/XCAFDoc/XCAFDoc_Area.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

80 lines
2.5 KiB
Plaintext
Executable File

-- Created on: 2000-09-08
-- Created by: data exchange team
-- Copyright (c) 2000-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
class Area from XCAFDoc inherits Attribute from TDF
---Purpose:
uses
Attribute from TDF,
Label from TDF,
GUID from Standard,
Real from Standard,
RelocationTable from TDF
is
Create returns Area from XCAFDoc;
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
returns GUID from Standard;
ID (me)
---C++: return const &
returns GUID from Standard;
Set (me: mutable; vol: Real from Standard);
---Purpose: Sets a value of volume
Set (myclass ; label : Label from TDF; area: Real from Standard)
returns Area from XCAFDoc;
---Purpose: Find, or create, an Area attribute and set its value
Get (me)
returns Real from Standard;
Get (myclass ; label : Label from TDF; area: in out Real from Standard)
returns Boolean from Standard;
---Purpose: Returns volume of area as argument and succes status
-- returns false if no such attribute at the <label>
Restore (me: mutable; With : Attribute from TDF);
NewEmpty(me)
returns mutable Attribute from TDF;
Paste (me; Into : mutable Attribute from TDF;
RT : mutable RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myValue : Real from Standard;
end Area from XCAFDoc;