b311480e |
1 | -- Created on: 1993-06-23 |
2 | -- Created by: Jean Yves LEBEY |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class Curve from TopOpeBRepDS |
18 | |
ff8178ef |
19 | ---Purpose: A Geom curve and a tolerance. |
7fd59977 |
20 | |
21 | uses |
22 | |
23 | Shape from TopoDS, |
24 | Curve from Geom, |
25 | Curve from Geom2d, |
26 | Interference from TopOpeBRepDS |
27 | |
28 | is |
29 | |
30 | Create returns Curve from TopOpeBRepDS; |
31 | |
32 | Create(P : Curve from Geom; |
33 | T : Real from Standard; |
34 | IsWalk : Boolean from Standard = Standard_False) |
35 | returns Curve from TopOpeBRepDS; |
36 | |
37 | DefineCurve(me : in out; |
38 | P : Curve from Geom; |
39 | T : Real from Standard; |
40 | IsWalk : Boolean from Standard); |
41 | |
42 | Tolerance(me : in out; tol : Real) |
43 | ---Purpose: Update the tolerance |
44 | is static; |
45 | |
46 | SetSCI(me : in out; I1,I2 : Interference from TopOpeBRepDS) |
47 | ---Purpose: define the interferences face/curve. |
48 | is static; |
49 | |
50 | GetSCI1(me) returns any Interference from TopOpeBRepDS |
51 | ---C++: return const & |
52 | is static; |
53 | |
54 | GetSCI2(me) returns any Interference from TopOpeBRepDS |
55 | ---C++: return const & |
56 | is static; |
57 | |
58 | GetSCI(me; I1,I2 : in out Interference from TopOpeBRepDS) |
59 | is static; |
60 | |
61 | SetShapes(me : in out; S1,S2 : Shape from TopoDS) |
62 | is static; |
63 | |
64 | GetShapes(me; S1,S2 : in out Shape from TopoDS) |
65 | is static; |
66 | |
67 | Shape1(me) returns Shape from TopoDS |
68 | ---C++: return const & |
69 | is static; |
70 | |
71 | ChangeShape1(me : in out) returns Shape from TopoDS |
72 | ---C++: return & |
73 | is static; |
74 | Shape2(me) returns Shape from TopoDS |
75 | ---C++: return const & |
76 | is static; |
77 | |
78 | ChangeShape2(me : in out) returns Shape from TopoDS |
79 | ---C++: return & |
80 | is static; |
81 | |
82 | Curve(me) returns any Curve from Geom |
83 | ---C++: return const & |
84 | is static; |
85 | |
86 | SetRange(me : in out ; First, Last : Real from Standard) |
87 | is static; |
88 | |
89 | Range(me; First, Last : out Real from Standard) |
90 | returns Boolean from Standard |
91 | is static; |
92 | |
93 | Tolerance(me) returns Real from Standard |
94 | is static; |
95 | |
96 | ChangeCurve(me : in out) returns any Curve from Geom |
97 | ---C++: return & |
98 | is static; |
99 | |
100 | Curve(me : in out; C3D : Curve from Geom; Tol : Real from Standard) |
101 | is static; |
102 | |
103 | Curve1(me) returns any Curve from Geom2d |
104 | ---C++: return const & |
105 | is static; |
106 | |
107 | Curve1(me : in out; PC1 : Curve from Geom2d) |
108 | is static; |
109 | |
110 | Curve2(me) returns any Curve from Geom2d |
111 | ---C++: return const & |
112 | is static; |
113 | |
114 | Curve2(me : in out; PC2 : Curve from Geom2d) |
115 | is static; |
116 | |
117 | IsWalk(me) returns Boolean from Standard; |
118 | ChangeIsWalk(me: in out; B : Boolean from Standard); |
119 | |
120 | Keep(me) returns Boolean from Standard |
121 | is static; |
122 | ChangeKeep(me : in out; B : Boolean from Standard) |
123 | is static; |
124 | |
125 | Mother(me) returns Integer from Standard |
126 | is static; |
127 | ChangeMother(me : in out; I : Integer from Standard) |
128 | is static; |
129 | |
130 | DSIndex(me) returns Integer from Standard |
131 | is static; |
132 | ChangeDSIndex(me : in out; I : Integer from Standard) |
133 | is static; |
134 | |
135 | Dump(me; OS : in out OStream from Standard; |
136 | index : Integer from Standard; |
137 | compact : Boolean = Standard_True) |
138 | ---C++: return & |
139 | returns OStream from Standard |
140 | is static; |
141 | |
142 | |
143 | fields |
144 | |
145 | myCurve : Curve from Geom; |
146 | myFirst,myLast : Real from Standard; |
147 | myRangeDefined : Boolean from Standard; |
148 | myTolerance : Real from Standard; |
149 | myIsWalk : Boolean from Standard; |
150 | |
151 | myS1 : Shape from TopoDS; |
152 | myS2 : Shape from TopoDS; |
153 | mySCI1 : Interference from TopOpeBRepDS; |
154 | mySCI2 : Interference from TopOpeBRepDS; |
155 | |
156 | myKeep : Boolean from Standard; |
157 | myMother : Integer; |
158 | myDSIndex : Integer; |
159 | |
160 | end Curve; |