0032806: Coding - get rid of unused headers [Contap to Extrema]
[occt.git] / src / Contap / Contap_Line.hxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _Contap_Line_HeaderFile
18 #define _Contap_Line_HeaderFile
19
20 #include <Contap_IType.hxx>
21 #include <Contap_TheHSequenceOfPoint.hxx>
22 #include <gp_Dir.hxx>
23 #include <gp_Pnt.hxx>
24 #include <IntSurf_TypeTrans.hxx>
25 #include <Standard.hxx>
26 #include <Standard_DefineAlloc.hxx>
27 #include <Standard_Handle.hxx>
28 #include <Standard_Integer.hxx>
29
30 class IntSurf_LineOn2S;
31 class IntSurf_PntOn2S;
32 class gp_Lin;
33 class gp_Circ;
34 class Contap_Point;
35
36 class Contap_Line 
37 {
38 public:
39
40   DEFINE_STANDARD_ALLOC
41
42   
43   Standard_EXPORT Contap_Line();
44   
45   Standard_EXPORT void SetLineOn2S (const Handle(IntSurf_LineOn2S)& L);
46   
47   Standard_EXPORT void Clear();
48   
49     const Handle(IntSurf_LineOn2S)& LineOn2S() const;
50   
51   Standard_EXPORT void ResetSeqOfVertex();
52   
53     void Add (const IntSurf_PntOn2S& P);
54   
55   Standard_EXPORT void SetValue (const gp_Lin& L);
56   
57   Standard_EXPORT void SetValue (const gp_Circ& C);
58   
59   Standard_EXPORT void SetValue (const Handle(Adaptor2d_Curve2d)& A);
60   
61   Standard_EXPORT void Add (const Contap_Point& P);
62   
63     Standard_Integer NbVertex() const;
64   
65     Contap_Point& Vertex (const Standard_Integer Index) const;
66   
67   //! Returns Contap_Lin for a line, Contap_Circle for
68   //! a circle, and Contap_Walking for a Walking line,
69   //! Contap_Restriction for a part of  boundarie.
70     Contap_IType TypeContour() const;
71   
72     Standard_Integer NbPnts() const;
73   
74     const IntSurf_PntOn2S& Point (const Standard_Integer Index) const;
75   
76     gp_Lin Line() const;
77   
78     gp_Circ Circle() const;
79   
80   Standard_EXPORT const Handle(Adaptor2d_Curve2d)& Arc() const;
81   
82   //! Set The Tansition of the line.
83   Standard_EXPORT void SetTransitionOnS (const IntSurf_TypeTrans T);
84   
85   //! returns IN if at the "left" of the line, the normale of the
86   //! surface is oriented to the observator.
87   Standard_EXPORT IntSurf_TypeTrans TransitionOnS() const;
88
89
90
91
92 protected:
93
94
95
96
97
98 private:
99
100
101
102   IntSurf_TypeTrans Trans;
103   Handle(IntSurf_LineOn2S) curv;
104   Handle(Contap_TheHSequenceOfPoint) svtx;
105   Handle(Adaptor2d_Curve2d) thearc;
106   Contap_IType typL;
107   gp_Pnt pt;
108   gp_Dir dir1;
109   gp_Dir dir2;
110   Standard_Real rad;
111
112
113 };
114
115
116 #include <Contap_Line.lxx>
117
118
119
120
121
122 #endif // _Contap_Line_HeaderFile