b311480e |
1 | -- Created on: 1996-01-12 |
2 | -- Created by: Jacques GOUSSARD |
3 | -- Copyright (c) 1996-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | |
23 | class Spliter from LocOpe |
24 | |
25 | ---Purpose: |
26 | |
27 | uses Shape from TopoDS, |
28 | Face from TopoDS, |
29 | ProjectedWires from LocOpe, |
30 | ListOfShape from TopTools, |
31 | DataMapOfShapeListOfShape from TopTools |
32 | |
33 | |
34 | |
35 | raises NotDone from StdFail, |
36 | NullObject from Standard, |
37 | NoSuchObject from Standard |
38 | |
39 | is |
40 | |
41 | Create |
42 | ---Purpose: Empty constructor. |
43 | returns Spliter from LocOpe; |
44 | ---C++: inline |
45 | |
46 | |
47 | Create(S: Shape from TopoDS) |
48 | ---Purpose: Creates the algorithm on the shape <S>. |
49 | ---C++: inline |
50 | returns Spliter from LocOpe; |
51 | |
52 | |
53 | Init(me: in out; S: Shape from TopoDS) |
54 | ---Purpose: Initializes the algorithm on the shape <S>. |
55 | ---C++: inline |
56 | is static; |
57 | |
58 | |
59 | Perform(me: in out; PW: ProjectedWires from LocOpe) |
60 | |
61 | raises NullObject from Standard |
62 | is static; |
63 | |
64 | |
65 | IsDone(me) |
66 | |
67 | ---C++: inline |
68 | returns Boolean from Standard |
69 | is static; |
70 | |
71 | |
72 | |
73 | ResultingShape(me) |
74 | ---Purpose: Returns the new shape |
75 | returns Shape from TopoDS |
76 | ---C++: return const& |
77 | ---C++: inline |
78 | raises NotDone from StdFail |
79 | is static; |
80 | |
81 | |
82 | Shape(me) |
83 | ---Purpose: Returns the initial shape |
84 | returns Shape from TopoDS |
85 | ---C++: return const& |
86 | ---C++: inline |
87 | is static; |
88 | |
89 | |
90 | |
91 | DirectLeft(me) |
92 | ---Purpose: Returns the faces which are the left of the |
93 | -- projected wires and which are |
94 | returns ListOfShape from TopTools |
95 | ---C++: return const& |
96 | raises NotDone from StdFail |
97 | --- The exception is raised when IsDone returns <Standard_False>. |
98 | is static; |
99 | |
100 | |
101 | Left(me) |
102 | ---Purpose: Returns the faces of the "left" part on the shape. |
103 | -- (It is build from DirectLeft, with the faces |
104 | -- connected to this set, and so on...). |
105 | returns ListOfShape from TopTools |
106 | ---C++: return const& |
107 | raises NotDone from StdFail |
108 | --- The exception is raised when IsDone returns <Standard_False>. |
109 | is static; |
110 | |
111 | |
112 | DescendantShapes(me: in out; S: Shape from TopoDS) |
113 | ---Purpose: Returns the list of descendant shapes of <S>. |
114 | returns ListOfShape from TopTools |
115 | ---C++: return const& |
116 | raises NotDone from StdFail, |
117 | NoSuchObject from Standard |
118 | --- The exception NotDone is raised when IsDone returns |
119 | -- <Standard_False>. The exception NoSuchObject is raised if |
120 | -- <S> is not a subshape of the original shape. |
121 | is static; |
122 | |
123 | |
124 | fields |
125 | |
126 | myShape : Shape from TopoDS; |
127 | myDone : Boolean from Standard; |
128 | myRes : Shape from TopoDS; |
129 | myMap : DataMapOfShapeListOfShape from TopTools; |
130 | myDLeft : ListOfShape from TopTools; |
131 | myLeft : ListOfShape from TopTools; |
132 | |
133 | end Spliter; |