blob: fa6ac8acc164ba7253b81df7fcd11ba8e87b372d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
-- File: XCAFDoc_Centroid.cdl
-- Created: Fri Sep 8 11:12:09 2000
-- Author: data exchange team
-- <det@nordox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 2000
class Centroid from XCAFDoc inherits Attribute from TDF
---Purpose:
uses
Pnt from gp,
Label from TDF,
RelocationTable from TDF
is
Create returns Centroid from XCAFDoc;
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
returns GUID from Standard;
Set (myclass; label : Label from TDF; pnt : Pnt from gp)
---Purpose: Find, or create, a Location attribute and set it's value
-- the Location attribute is returned.
returns Centroid from XCAFDoc;
---Purpose: Location methods
-- ===============
Set (me : mutable; pnt : Pnt from gp);
Get (me)
returns Pnt from gp;
Get (myclass ; label : Label from TDF; pnt: in out Pnt from gp)
returns Boolean from Standard;
---Purpose: Returns point as argument
-- returns false if no such attribute at the <label>
---Category: methodes de TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
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
myCentroid : Pnt from gp;
end Centroid;
|