File indexing completed on 2026-09-12 09:17:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _HLRBRep_BiPnt2D_HeaderFile
0018 #define _HLRBRep_BiPnt2D_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <gp_Pnt2d.hxx>
0024 #include <TopoDS_Shape.hxx>
0025
0026
0027 class HLRBRep_BiPnt2D
0028 {
0029 public:
0030 DEFINE_STANDARD_ALLOC
0031
0032 HLRBRep_BiPnt2D()
0033 : myRg1Line(false),
0034 myRgNLine(false),
0035 myOutLine(false),
0036 myIntLine(false)
0037 {
0038 }
0039
0040 HLRBRep_BiPnt2D(const double x1,
0041 const double y1,
0042 const double x2,
0043 const double y2,
0044 const TopoDS_Shape& S,
0045 const bool reg1,
0046 const bool regn,
0047 const bool outl,
0048 const bool intl)
0049 : myP1(x1, y1),
0050 myP2(x2, y2),
0051 myShape(S),
0052 myRg1Line(reg1),
0053 myRgNLine(regn),
0054 myOutLine(outl),
0055 myIntLine(intl)
0056 {
0057 }
0058
0059 HLRBRep_BiPnt2D(const gp_XY& thePoint1,
0060 const gp_XY& thePoint2,
0061 const TopoDS_Shape& S,
0062 const bool reg1,
0063 const bool regn,
0064 const bool outl,
0065 const bool intl)
0066 : myP1(thePoint1),
0067 myP2(thePoint2),
0068 myShape(S),
0069 myRg1Line(reg1),
0070 myRgNLine(regn),
0071 myOutLine(outl),
0072 myIntLine(intl)
0073 {
0074 }
0075
0076 const gp_Pnt2d& P1() const { return myP1; }
0077
0078 const gp_Pnt2d& P2() const { return myP2; }
0079
0080 const TopoDS_Shape& Shape() const { return myShape; }
0081
0082 void Shape(const TopoDS_Shape& S) { myShape = S; }
0083
0084 bool Rg1Line() const { return myRg1Line; }
0085
0086 void Rg1Line(const bool B) { myRg1Line = B; }
0087
0088 bool RgNLine() const { return myRgNLine; }
0089
0090 void RgNLine(const bool B) { myRgNLine = B; }
0091
0092 bool OutLine() const { return myOutLine; }
0093
0094 void OutLine(const bool B) { myOutLine = B; }
0095
0096 bool IntLine() const { return myIntLine; }
0097
0098 void IntLine(const bool B) { myIntLine = B; }
0099
0100 private:
0101 gp_Pnt2d myP1;
0102 gp_Pnt2d myP2;
0103 TopoDS_Shape myShape;
0104 bool myRg1Line;
0105 bool myRgNLine;
0106 bool myOutLine;
0107 bool myIntLine;
0108 };
0109
0110 #endif