7fd59977 |
1 | -- File: BOP_ConnexityBlock.cdl |
2 | -- Created: Fri Apr 13 10:12:22 2001 |
3 | -- Author: Peter KURNEV |
4 | -- <pkv@irinox> |
5 | ---Copyright: Matra Datavision 2001 |
6 | |
7 | |
8 | class ConnexityBlock from BOP |
9 | |
10 | ---Purpose: |
11 | --- Auxiliary class to store data about set |
12 | --- of connex shapes |
13 | --- |
14 | |
15 | uses |
16 | ListOfShape from TopTools, |
17 | IndexedMapOfOrientedShape from TopTools |
18 | |
19 | is |
20 | Create |
21 | returns ConnexityBlock from BOP; |
22 | ---Purpose: |
23 | --- Empty constructor; |
24 | --- |
25 | SetShapes (me:out; |
26 | anEdges: ListOfShape from TopTools); |
27 | ---Purpose: |
28 | --- Modifier |
29 | --- |
30 | SetShapes (me:out; |
31 | nEdges: IndexedMapOfOrientedShape from TopTools); |
32 | ---Purpose: |
33 | --- Modifier |
34 | --- |
35 | SetRegularity(me:out; |
36 | aFlag:Boolean from Standard); |
37 | ---Purpose: |
38 | --- Modifier |
39 | --- |
40 | Shapes (me) |
41 | returns ListOfShape from TopTools; |
42 | ---C++: return const & |
43 | ---Purpose: |
44 | --- Selector |
45 | --- |
46 | IsRegular(me) |
47 | returns Boolean from Standard; |
48 | ---Purpose: |
49 | --- Selector |
50 | --- Returns TRUE if all elements in the block are |
51 | --- biconnexity |
52 | --- |
53 | |
54 | fields |
55 | |
56 | myRegularity : Boolean from Standard; |
57 | myShapes : ListOfShape from TopTools; |
58 | |
59 | end ConnexityBlock; |