b311480e |
1 | -- Created on: 2003-08-29 |
2 | -- Created by: data exchange team |
3 | -- Copyright (c) 2003-2012 OPEN CASCADE SAS |
4 | -- |
5 | -- The content of this file is subject to the Open CASCADE Technology Public |
6 | -- License Version 6.5 (the "License"). You may not use the content of this file |
7 | -- except in compliance with the License. Please obtain a copy of the License |
8 | -- at http://www.opencascade.org and read it completely before using this file. |
9 | -- |
10 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | -- |
13 | -- The Original Code and all software distributed under the License is |
14 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | -- Initial Developer hereby disclaims all such warranties, including without |
16 | -- limitation, any warranties of merchantability, fitness for a particular |
17 | -- purpose or non-infringement. Please see the License for the specific terms |
18 | -- and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | class ShapeMapTool from XCAFDoc inherits Attribute from TDF |
22 | |
23 | uses |
24 | |
25 | SequenceOfHAsciiString from TColStd, |
26 | Shape from TopoDS, |
27 | IndexedMapOfShape from TopTools, |
28 | Label from TDF, |
29 | RelocationTable from TDF |
30 | |
31 | is |
32 | GetID (myclass) |
33 | ---C++: return const & |
34 | returns GUID from Standard; |
35 | |
36 | |
37 | Set (myclass; L : Label from TDF) returns ShapeMapTool from XCAFDoc; |
38 | ---Purpose: Create (if not exist) ShapeTool from XCAFDoc on <L>. |
39 | |
40 | |
41 | Create returns ShapeMapTool from XCAFDoc; |
42 | ---Purpose: Creates an empty tool |
43 | |
44 | |
45 | ---API: Analysis |
46 | |
47 | |
48 | IsSubShape (me; sub: Shape from TopoDS) |
49 | returns Boolean; |
50 | ---Purpose: Checks whether shape <sub> is subshape of shape stored on |
51 | -- label shapeL |
52 | |
53 | SetShape (me: mutable; S: Shape from TopoDS); |
54 | ---Purpose: Sets representation (TopoDS_Shape) for top-level shape |
55 | |
56 | ---Category: TDF_Attribute methods |
57 | -- ===================== |
58 | |
59 | ID (me) |
60 | ---C++: return const & |
61 | returns GUID from Standard; |
62 | |
63 | Restore (me: mutable; with : Attribute from TDF); |
64 | |
65 | NewEmpty (me) |
66 | returns mutable Attribute from TDF; |
67 | |
68 | Paste (me; into : mutable Attribute from TDF; |
69 | RT : mutable RelocationTable from TDF); |
70 | |
71 | GetMap (me) returns IndexedMapOfShape from TopTools; |
72 | ---C++: return const & |
73 | |
74 | fields |
75 | |
76 | myMap: IndexedMapOfShape from TopTools; |
77 | |
78 | end ShapeTool; |