0032951: Coding - get rid of unused headers [GeomConvert to IGESBasic]
[occt.git] / src / HLRBRep / HLRBRep_BiPnt2D.hxx
1 // Created on: 1992-08-21
2 // Created by: Christophe MARION
3 // Copyright (c) 1992-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 _HLRBRep_BiPnt2D_HeaderFile
18 #define _HLRBRep_BiPnt2D_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22
23 #include <gp_Pnt2d.hxx>
24 #include <TopoDS_Shape.hxx>
25
26 //! Contains the colors of a shape.
27 class HLRBRep_BiPnt2D 
28 {
29 public:
30
31   DEFINE_STANDARD_ALLOC
32
33   HLRBRep_BiPnt2D()
34   : myRg1Line (false),
35     myRgNLine (false),
36     myOutLine (false),
37     myIntLine (false)
38   {
39   }
40
41   HLRBRep_BiPnt2D(const Standard_Real x1, const Standard_Real y1, const Standard_Real x2, const Standard_Real y2, const TopoDS_Shape& S, const Standard_Boolean reg1, const Standard_Boolean regn, const Standard_Boolean outl, const Standard_Boolean intl)
42   : myP1(x1,y1),
43           myP2(x2,y2),
44           myShape(S),
45     myRg1Line (reg1),
46     myRgNLine (regn),
47     myOutLine (outl),
48     myIntLine (intl)
49   {
50   }
51
52   HLRBRep_BiPnt2D(
53       const gp_XY& thePoint1,
54       const gp_XY& thePoint2,
55       const TopoDS_Shape& S,
56       const Standard_Boolean reg1,
57       const Standard_Boolean regn,
58       const Standard_Boolean outl,
59       const Standard_Boolean intl) :
60     myP1(thePoint1),
61     myP2(thePoint2),
62     myShape(S),
63     myRg1Line (reg1),
64     myRgNLine (regn),
65     myOutLine (outl),
66     myIntLine (intl)
67   {
68   }
69
70   const gp_Pnt2d& P1() const { return myP1; }
71
72   const gp_Pnt2d& P2() const { return myP2; }
73
74   const TopoDS_Shape& Shape() const { return myShape; }
75
76   void Shape (const TopoDS_Shape& S) { myShape = S; }
77
78   Standard_Boolean Rg1Line() const { return myRg1Line; }
79
80   void Rg1Line (const Standard_Boolean B) { myRg1Line = B; }
81
82   Standard_Boolean RgNLine() const { return myRgNLine; }
83
84   void RgNLine (const Standard_Boolean B) { myRgNLine = B; }
85
86   Standard_Boolean OutLine() const { return myOutLine; }
87
88   void OutLine (const Standard_Boolean B) { myOutLine = B; }
89
90   Standard_Boolean IntLine() const { return myIntLine; }
91
92   void IntLine (const Standard_Boolean B) { myIntLine = B; }
93
94 private:
95
96   gp_Pnt2d myP1;
97   gp_Pnt2d myP2;
98   TopoDS_Shape myShape;
99   Standard_Boolean myRg1Line;
100   Standard_Boolean myRgNLine;
101   Standard_Boolean myOutLine;
102   Standard_Boolean myIntLine;
103 };
104
105 #endif // _HLRBRep_BiPnt2D_HeaderFile