b311480e |
1 | -- Created on: 2001-04-13 |
2 | -- Created by: Peter KURNEV |
3 | -- Copyright (c) 2001-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 | |
22 | class WESCorrector from BOP |
23 | |
24 | ---Purpose: |
25 | --- The algorithm to change the Wire Edges Set (WES) contents. |
26 | -- The NewWES will contain only wires instead of wires and edges. |
27 | -- |
28 | uses |
29 | WireEdgeSet from BOP, |
30 | PWireEdgeSet from BOP, |
31 | ListOfConnexityBlock from BOP |
32 | |
33 | is |
34 | Create |
35 | returns WESCorrector from BOP; |
36 | ---Purpose: |
37 | --- Empty constructor; |
38 | --- |
39 | SetWES (me:out; |
40 | aWES: WireEdgeSet from BOP); |
41 | ---Purpose: |
42 | --- Modifier |
43 | --- |
44 | Do (me:out); |
45 | ---Purpose: |
46 | --- Performs the algorithm that consists of two steps |
47 | --- 1. Make conexity blocks ( DoConnexityBlocks() ) |
48 | --- 2. Make corrections ( DoCorrections() ) |
49 | --- |
50 | DoConnexityBlocks(me:out) |
51 | is private; |
52 | |
53 | DoCorrections(me:out) |
54 | is private; |
55 | |
56 | IsDone(me) |
57 | returns Boolean from Standard; |
58 | ---Purpose: |
59 | --- Selector |
60 | --- |
61 | ErrorStatus (me) |
62 | returns Integer from Standard; |
63 | ---Purpose: |
64 | --- Selector |
65 | --- contents see BOP_WESCorrector.cxx |
66 | --- |
67 | WES (me:out) |
68 | returns WireEdgeSet from BOP; |
69 | ---C++: return & |
70 | ---Purpose: |
71 | --- Selector |
72 | --- |
73 | NewWES (me:out) |
74 | returns WireEdgeSet from BOP; |
75 | ---C++: return & |
76 | ---Purpose: |
77 | --- Selector |
78 | --- |
79 | |
80 | fields |
81 | |
82 | myWES : PWireEdgeSet from BOP; |
83 | myNewWES : WireEdgeSet from BOP; |
84 | myConnexityBlocks : ListOfConnexityBlock from BOP; |
85 | myIsDone : Boolean from Standard; |
86 | myErrorStatus : Integer from Standard; |
87 | |
88 | end WESCorrector; |