1 -- Created on: 1997-02-06
2 -- Created by: Denis PASCAL
3 -- Copyright (c) 1997-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class Real from TDataStd inherits Attribute from TDF
19 ---Purpose: The basis to define a real number attribute.
21 uses Attribute from TDF,
25 RelocationTable from TDF,
26 RealEnum from TDataStd
30 ---Purpose: class methods
34 ---C++: return const &
35 ---Purpose: Returns the GUID for real numbers.
36 returns GUID from Standard;
38 Set (myclass ; label : Label from TDF; value : Real from Standard)
39 ---Purpose: Finds, or creates, an Real attribute and sets <value> the
40 -- Real attribute is returned. the Real dimension is
41 -- Scalar by default. use SetDimension to overwrite.
42 returns Real from TDataStd;
44 ---Purpose: Real methods
48 returns Real from TDataStd;
50 SetDimension (me : mutable; DIM : RealEnum from TDataStd);
54 returns RealEnum from TDataStd;
57 Set (me : mutable; V : Real from Standard);
59 -- Finds or creates the real number V.
62 returns Real from Standard;
64 -- Returns the real number value contained in the attribute.
65 IsCaptured(me) returns Boolean;
66 ---Purpose: Returns True if there is a reference on the same label
68 ---Category: TDF_Attribute methods
69 -- =====================
72 ---C++: return const &
73 returns GUID from Standard;
75 Restore (me: mutable; With : Attribute from TDF);
78 returns Attribute from TDF;
80 Paste (me; Into : Attribute from TDF;
81 RT : RelocationTable from TDF);
84 Dump(me; anOS : in out OStream from Standard)
85 returns OStream from Standard
91 myValue : Real from Standard;
92 myDimension : RealEnum from TDataStd;