1 -- Created on: 2000-10-27
2 -- Created by: Peter KURNEV
3 -- Copyright (c) 2000-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 class CommonPrt from IntTools
18 ---Purpose: The class is to describe a common part
19 -- between two edges in 3-d space.
23 ShapeEnum from TopAbs,
25 SequenceOfRanges from IntTools,
29 returns CommonPrt from IntTools;
34 Create (aCPrt:CommonPrt from IntTools)
35 returns CommonPrt from IntTools;
40 Assign (me:out; Other : CommonPrt from IntTools)
41 returns CommonPrt from IntTools;
42 ---C++: alias operator =
45 SetEdge1 (me:out; anE:Edge from TopoDS);
47 --- Sets the first edge.
50 SetEdge2 (me:out; anE:Edge from TopoDS);
52 --- Sets the second edge.
55 SetType (me:out; aType:ShapeEnum from TopAbs);
57 --- Sets the type of the common part
61 SetRange1 (me:out; aR: Range from IntTools);
63 --- Sets the range of first edge.
66 SetRange1 (me:out; tf,tl: Real from Standard);
68 --- Sets the range of first edge.
71 AppendRange2 (me:out; aR: Range from IntTools);
73 --- Appends the range of second edge.
76 AppendRange2 (me:out; tf,tl: Real from Standard);
78 --- Appends the range of second edge.
81 SetVertexParameter1( me:out; tV: Real from Standard);
83 --- Sets a parameter of first vertex
86 SetVertexParameter2( me:out; tV: Real from Standard);
88 --- Sets a parameter of second vertex
92 returns Edge from TopoDS;
95 --- Returns the first edge.
99 returns Edge from TopoDS;
100 ---C++: return const&
102 --- Returns the second edge
106 returns ShapeEnum from TopAbs;
108 --- Returns the type of the common part
112 returns Range from IntTools;
113 ---C++: return const&
115 --- Returns the range of first edge
118 Range1 (me; tf,tl:out Real from Standard);
120 --- Returns the range of first edge.
124 returns SequenceOfRanges from IntTools;
125 ---C++: return const&
127 --- Returns the ranges of second edge.
130 ChangeRanges2 (me:out)
131 returns SequenceOfRanges from IntTools;
134 --- Returns the ranges of second edge.
138 returns Real from Standard;
140 --- Returns parameter of first vertex
144 returns Real from Standard;
146 --- Returns parameter of second vertex
149 Copy (me; anOther:out CommonPrt from IntTools);
151 --- Copies me to anOther
155 returns Boolean from Standard;
160 SetAllNullFlag(me:out;
161 aFlag:Boolean from Standard);
167 SetBoundingPoints(me:out;
176 aP2:out Pnt from gp);
182 myEdge1 : Edge from TopoDS;
183 myEdge2 : Edge from TopoDS;
184 myType : ShapeEnum from TopAbs;
185 myRange1 : Range from IntTools;
186 myVertPar1 : Real from Standard;
187 myVertPar2 : Real from Standard;
188 myRanges2: SequenceOfRanges from IntTools;
190 myAllNullFlag: Boolean from Standard;
192 myPnt1 : Pnt from gp;
193 myPnt2 : Pnt from gp;