b311480e |
1 | -- Created by: Peter KURNEV |
973c2be1 |
2 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
3 | -- |
973c2be1 |
4 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
5 | -- |
d5f74e42 |
6 | -- This library is free software; you can redistribute it and/or modify it under |
7 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
8 | -- by the Free Software Foundation, with special exception defined in the file |
9 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
10 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
11 | -- |
973c2be1 |
12 | -- Alternatively, this file may be used under the terms of Open CASCADE |
13 | -- commercial license or contractual agreement. |
7fd59977 |
14 | |
1e143abb |
15 | class ShrunkRange from IntTools |
7fd59977 |
16 | |
505abfb8 |
17 | ---Purpose: |
18 | --- The class provides the computation of |
19 | --- a working (shrunk) range [t1, t2] for |
20 | --- the 3D-curve of the edge. |
21 | |
7fd59977 |
22 | uses |
4e57c75e |
23 | Box from Bnd, |
7fd59977 |
24 | Edge from TopoDS, |
25 | Vertex from TopoDS, |
1e143abb |
26 | Context from IntTools |
7fd59977 |
27 | |
28 | --raises |
29 | |
30 | is |
31 | Create |
1e143abb |
32 | returns ShrunkRange from IntTools; |
33 | ---C++: alias "Standard_EXPORT virtual ~IntTools_ShrunkRange();" |
505abfb8 |
34 | |
4e57c75e |
35 | SetData (me:out; |
505abfb8 |
36 | aE : Edge from TopoDS; |
37 | aT1 : Real from Standard; |
38 | aT2 : Real from Standard; |
39 | aV1 : Vertex from TopoDS; |
40 | aV2 : Vertex from TopoDS); |
41 | |
42 | SetContext(me:out; |
1e143abb |
43 | aCtx: Context from IntTools); |
505abfb8 |
44 | |
45 | Context(me) |
1e143abb |
46 | returns Context from IntTools; |
505abfb8 |
47 | ---C++: return const & |
48 | |
4e57c75e |
49 | SetShrunkRange(me:out; |
505abfb8 |
50 | aT1 : Real from Standard; |
51 | aT2 : Real from Standard); |
4e57c75e |
52 | |
53 | ShrunkRange(me; |
505abfb8 |
54 | aT1 :out Real from Standard; |
55 | aT2 :out Real from Standard); |
7fd59977 |
56 | |
57 | BndBox (me) |
505abfb8 |
58 | returns Box from Bnd; |
4e57c75e |
59 | ---C++: return const & |
7fd59977 |
60 | |
61 | Edge (me) |
505abfb8 |
62 | returns Edge from TopoDS; |
63 | ---C++: return const & |
64 | |
7fd59977 |
65 | Perform(me:out); |
505abfb8 |
66 | |
7fd59977 |
67 | ErrorStatus(me) |
505abfb8 |
68 | returns Integer from Standard; |
69 | ---Purpose: |
70 | --- Returns code of computing shrunk range |
71 | --- completion |
72 | --- 0 - means successful completion |
73 | --- 1 - nothing has been done |
74 | --- 2 - initial range is out of edge's range |
75 | --- 3 - first boundary of initial range is more than |
76 | --- last boundary |
77 | --- 4 - projection of first vertex failed |
78 | --- 5 - projection of second vertex failed |
79 | --- 6 - shrunk range can not be computed |
80 | --- shrunk range is setted to initial range |
81 | --- |
7fd59977 |
82 | |
83 | fields |
4e57c75e |
84 | myEdge : Edge from TopoDS is protected; |
85 | myV1 : Vertex from TopoDS is protected; |
86 | myV2 : Vertex from TopoDS is protected; |
87 | myT1 : Real from Standard is protected; |
88 | myT2 : Real from Standard is protected; |
89 | myTS1 : Real from Standard is protected; |
90 | myTS2 : Real from Standard is protected; |
91 | myBndBox : Box from Bnd is protected; |
1e143abb |
92 | myCtx : Context from IntTools is protected; |
4e57c75e |
93 | myErrorStatus : Integer from Standard is protected; |
7fd59977 |
94 | |
95 | end ShrunkRange; |