7fd59977 |
1 | -- File: XmlMNaming_NamedShapeDriver.cdl |
2 | -- Created: Sep 14 2001 |
3 | -- Author: Alexander GRIGORIEV |
4 | ---Copyright: Open Cascade 2001 |
5 | |
6 | class NamedShapeDriver from XmlMNaming inherits ADriver from XmlMDF |
7 | |
8 | ---Purpose: |
9 | |
10 | |
11 | uses |
12 | RRelocationTable from XmlObjMgt, |
13 | SRelocationTable from XmlObjMgt, |
14 | Persistent from XmlObjMgt, |
15 | Element from XmlObjMgt, |
16 | Attribute from TDF, |
17 | MessageDriver from CDM, |
18 | ShapeSet from BRepTools, |
19 | LocationSet from TopTools |
20 | |
21 | is |
22 | Create (aMessageDriver: MessageDriver from CDM) |
23 | returns mutable NamedShapeDriver from XmlMNaming; |
24 | |
25 | NewEmpty (me) |
26 | returns mutable Attribute from TDF |
27 | is redefined; |
28 | |
29 | Paste(me; theSource : Persistent from XmlObjMgt; |
30 | theTarget : mutable Attribute from TDF; |
31 | theRelocTable : out RRelocationTable from XmlObjMgt) |
32 | returns Boolean from Standard |
33 | is redefined; |
34 | |
35 | Paste(me; theSource : Attribute from TDF; |
36 | theTarget : in out Persistent from XmlObjMgt; |
37 | theRelocTable : out SRelocationTable from XmlObjMgt) |
38 | is redefined; |
39 | |
40 | ReadShapeSection (me: mutable; anElement: Element from XmlObjMgt); |
41 | ---Purpose: Input the shapes from DOM element |
42 | |
43 | WriteShapeSection (me: mutable; anElement: in out Element from XmlObjMgt); |
44 | ---Purpose: Output the shapes into DOM element |
45 | |
46 | Clear (me:mutable); |
47 | ---Purpose: Clear myShapeSet |
48 | |
49 | GetShapesLocations(me: mutable) returns LocationSet from TopTools; |
50 | ---Purpose: get the format of topology |
51 | ---C++: return & |
52 | ---C++: inline |
53 | |
54 | fields |
55 | myShapeSet : ShapeSet from BRepTools; |
56 | |
57 | end NamedShapeDriver; |