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 #ifndef _Contap_Line_HeaderFile
18 #define _Contap_Line_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <IntSurf_TypeTrans.hxx>
25 #include <Contap_TheHSequenceOfPoint.hxx>
26 #include <Contap_IType.hxx>
29 #include <Standard_Real.hxx>
30 #include <Standard_Integer.hxx>
32 #include <gp_Circ.hxx>
33 class IntSurf_LineOn2S;
34 class Adaptor2d_HCurve2d;
35 class Standard_DomainError;
36 class Standard_OutOfRange;
37 class IntSurf_PntOn2S;
51 Standard_EXPORT Contap_Line();
53 Standard_EXPORT void SetLineOn2S (const Handle(IntSurf_LineOn2S)& L);
55 Standard_EXPORT void Clear();
57 const Handle(IntSurf_LineOn2S)& LineOn2S() const;
59 Standard_EXPORT void ResetSeqOfVertex();
61 void Add (const IntSurf_PntOn2S& P);
63 Standard_EXPORT void SetValue (const gp_Lin& L);
65 Standard_EXPORT void SetValue (const gp_Circ& C);
67 Standard_EXPORT void SetValue (const Handle(Adaptor2d_HCurve2d)& A);
69 Standard_EXPORT void Add (const Contap_Point& P);
71 Standard_Integer NbVertex() const;
73 Contap_Point& Vertex (const Standard_Integer Index) const;
75 //! Returns Contap_Lin for a line, Contap_Circle for
76 //! a circle, and Contap_Walking for a Walking line,
77 //! Contap_Restriction for a part of boundarie.
78 Contap_IType TypeContour() const;
80 Standard_Integer NbPnts() const;
82 const IntSurf_PntOn2S& Point (const Standard_Integer Index) const;
86 gp_Circ Circle() const;
88 Standard_EXPORT const Handle(Adaptor2d_HCurve2d)& Arc() const;
90 //! Set The Tansition of the line.
91 Standard_EXPORT void SetTransitionOnS (const IntSurf_TypeTrans T);
93 //! returns IN if at the "left" of the line, the normale of the
94 //! surface is oriented to the observator.
95 Standard_EXPORT IntSurf_TypeTrans TransitionOnS() const;
110 IntSurf_TypeTrans Trans;
111 Handle(IntSurf_LineOn2S) curv;
112 Handle(Contap_TheHSequenceOfPoint) svtx;
113 Handle(Adaptor2d_HCurve2d) thearc;
124 #include <Contap_Line.lxx>
130 #endif // _Contap_Line_HeaderFile