blob: 1e6661bcc34b3f2f3ec4be22f8dfcf2e50be9be2 (
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
|
-- File: XCAFDoc_ShapeMapTool.cdl
-- Created: Fri Aug 29 15:53:19 2003
-- Author: data exchange team
-- <det@doomox>
---Copyright: Matra Datavision 2003
class ShapeMapTool from XCAFDoc inherits Attribute from TDF
uses
SequenceOfHAsciiString from TColStd,
Shape from TopoDS,
IndexedMapOfShape from TopTools,
Label from TDF,
RelocationTable from TDF
is
GetID (myclass)
---C++: return const &
returns GUID from Standard;
Set (myclass; L : Label from TDF) returns ShapeMapTool from XCAFDoc;
---Purpose: Create (if not exist) ShapeTool from XCAFDoc on <L>.
Create returns ShapeMapTool from XCAFDoc;
---Purpose: Creates an empty tool
---API: Analysis
IsSubShape (me; sub: Shape from TopoDS)
returns Boolean;
---Purpose: Checks whether shape <sub> is subshape of shape stored on
-- label shapeL
SetShape (me: mutable; S: Shape from TopoDS);
---Purpose: Sets representation (TopoDS_Shape) for top-level shape
---Category: TDF_Attribute methods
-- =====================
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);
GetMap (me) returns IndexedMapOfShape from TopTools;
---C++: return const &
fields
myMap: IndexedMapOfShape from TopTools;
end ShapeTool;
|