Integration of OCCT 6.5.0 from SVN
[occt.git] / src / BRepAlgo / BRepAlgo_AsDes.cdl
CommitLineData
7fd59977 1-- File: BRepAlgo_AsDes.cdl
2-- Created: Thu Oct 26 10:56:35 1995
3-- Author: Yves FRICAUD
4-- <yfr@stylox>
5---Copyright: Matra Datavision 1995
6
7
8class AsDes from BRepAlgo inherits TShared from MMgt
9
10 ---Purpose: SD to store descendants and ascendants of Shapes.
11
12uses
13 DataMapOfShapeListOfShape from TopTools,
14 ListOfShape from TopTools,
15 Shape from TopoDS
16
17raises
18 ConstructionError from Standard
19
20is
21 Create returns mutable AsDes from BRepAlgo;
22 ---Purpose: Creates an empty AsDes.
23
24 Clear(me : mutable);
25
26 Add (me : mutable ; S : Shape from TopoDS;
27 SS : Shape from TopoDS)
28 ---Purpose: Stores <SS> as a futur subshape of <S>.
29 is static;
30
31 Add (me : mutable ; S : Shape from TopoDS;
32 SS : ListOfShape from TopTools)
33 ---Purpose: Stores <SS> as futurs SubShapes of <S>.
34 is static;
35
36 HasAscendant(me; S : Shape from TopoDS)
37 returns Boolean from Standard;
38
39 HasDescendant(me; S : Shape from TopoDS)
40 returns Boolean from Standard;
41
42 Ascendant (me; S : Shape from TopoDS)
43 ---Purpose: Returns the Shape containing <S>.
44 ---C++: return const &
45 returns ListOfShape from TopTools;
46
47 Descendant (me; S : Shape from TopoDS)
48 ---Purpose: Returns futur subhapes of <S>.
49 ---C++: return const &
50 returns ListOfShape from TopTools;
51
52 ChangeDescendant (me : mutable; S : Shape from TopoDS)
53 ---Purpose: Returns futur subhapes of <S>.
54 ---C++: return &
55 returns ListOfShape from TopTools;
56
57 Replace ( me : mutable; OldS, NewS : Shape from TopoDS)
58 ---Purpose: Replace <OldS> by <NewS>.
59 -- <OldS> disapear from <me>.
60 is static;
61
62 Remove (me : mutable;
63 S : Shape from TopoDS)
64 ---Purpose: Remove <S> from me.
65 raises
66 ConstructionError -- if <S> HasDescendant.
67 is static;
68
69 HasCommonDescendant (me ;
70 S1 : Shape from TopoDS;
71 S2 : Shape from TopoDS;
72 LC : in out ListOfShape from TopTools)
73 ---Purpose: Returns True if (S1> and <S2> has common
74 -- Descendants. Stores in <LC> the Commons Descendants.
75 returns Boolean from Standard;
76
77 BackReplace ( me : mutable;
78 OldS : Shape from TopoDS;
79 NewS : Shape from TopoDS;
80 L : ListOfShape from TopTools;
81 InUp : Boolean from Standard)
82 ---Purpose: Replace <OldS> by <NewS>.
83 -- <OldS> disapear from <me>.
84 is static private;
85
86
87fields
88
89 up : DataMapOfShapeListOfShape from TopTools;
90 down : DataMapOfShapeListOfShape from TopTools;
91
92end AsDes;