1 -- Created on: 1993-02-05
2 -- Created by: Jacques GOUSSARD
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 generic class Line from Contap
20 ThePoint as any; --as Point from Contap(TheVertex,TheArc)
21 TheHSequenceOfPoint as Transient) --as HSequence from TCollection
27 LineOn2S from IntSurf,
29 TypeTrans from IntSurf,
33 IType from Contap -- duplique IntPatch_IType. Mettre ds IntSurf
35 raises DomainError from Standard,
36 OutOfRange from Standard
42 returns Line from Contap;
45 SetLineOn2S(me: in out; L: LineOn2S from IntSurf)
55 returns LineOn2S from IntSurf
60 ResetSeqOfVertex(me: in out)
64 Add(me: in out; P: PntOn2S from IntSurf)
69 SetValue(me: in out; L: Lin from gp)
74 SetValue(me: in out; C: Circ from gp)
79 SetValue(me: in out; A: TheArc)
84 Add(me: in out; P: ThePoint)
91 returns Integer from Standard
97 Vertex(me; Index: Integer from Standard)
103 raises OutOfRange from Standard
110 ---Purpose: Returns Contap_Lin for a line, Contap_Circle for
111 -- a circle, and Contap_Walking for a Walking line,
112 -- Contap_Restriction for a part of boundarie.
114 returns IType from Contap
122 returns Integer from Standard
125 raises DomainError from Standard
126 -- The exception DomainError is raised if TypeContour does not return
132 Point(me; Index: Integer from Standard)
134 returns PntOn2S from IntSurf
135 ---C++: return const&
138 raises DomainError from Standard,
139 OutOfRange from Standard
140 -- The exception DomainError is raised if TypeContour does not return
142 -- The exception OutOfRange is raised if Index<=0 or Index>NbPoints.
152 raises DomainError from Standard
153 -- The exception DomainError is raised if TypeContour does not return
164 raises DomainError from Standard
165 -- The exception DomainError is raised if TypeContour does not return
175 ---C++: return const&
177 raises DomainError from Standard
178 -- The exception DomainError is raised if TypeContour does not return
179 -- Contap_Restriction.
184 SetTransitionOnS(me: in out; T: TypeTrans from IntSurf)
186 ---Purpose: Set The Tansition of the line.
194 ---Purpose: returns IN if at the "left" of the line, the normale of the
195 -- surface is oriented to the observator.
198 returns TypeTrans from IntSurf
204 Trans : TypeTrans from IntSurf;
205 curv : LineOn2S from IntSurf;
206 svtx : TheHSequenceOfPoint;
208 typL : IType from Contap;
212 rad : Real from Standard;