File indexing completed on 2025-01-18 10:03:51
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _HLRBRep_BiPoint_HeaderFile
0018 #define _HLRBRep_BiPoint_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <gp_Pnt.hxx>
0024 #include <TopoDS_Shape.hxx>
0025 class TopoDS_Shape;
0026 class gp_Pnt;
0027
0028
0029 class HLRBRep_BiPoint
0030 {
0031 public:
0032
0033 DEFINE_STANDARD_ALLOC
0034
0035 HLRBRep_BiPoint()
0036 : myRg1Line (false),
0037 myRgNLine (false),
0038 myOutLine (false),
0039 myIntLine (false) {}
0040
0041 HLRBRep_BiPoint (const Standard_Real x1, const Standard_Real y1, const Standard_Real z1,
0042 const Standard_Real x2, const Standard_Real y2, const Standard_Real z2,
0043 const TopoDS_Shape& S,
0044 const Standard_Boolean reg1,
0045 const Standard_Boolean regn,
0046 const Standard_Boolean outl,
0047 const Standard_Boolean intl)
0048 : myP1 (x1, y1, z1),
0049 myP2 (x2, y2, z2),
0050 myShape (S),
0051 myRg1Line (reg1),
0052 myRgNLine (regn),
0053 myOutLine (outl),
0054 myIntLine (intl) {}
0055
0056 const gp_Pnt& P1() const { return myP1; }
0057
0058 const gp_Pnt& P2() const { return myP2; }
0059
0060 const TopoDS_Shape& Shape() const { return myShape; }
0061
0062 void Shape (const TopoDS_Shape& S) { myShape = S; }
0063
0064 Standard_Boolean Rg1Line() const { return myRg1Line; }
0065
0066 void Rg1Line (const Standard_Boolean B) { myRg1Line = B; }
0067
0068 Standard_Boolean RgNLine() const { return myRgNLine; }
0069
0070 void RgNLine (const Standard_Boolean B) { myRgNLine = B; }
0071
0072 Standard_Boolean OutLine() const { return myOutLine; }
0073
0074 void OutLine (const Standard_Boolean B) { myOutLine = B; }
0075
0076 Standard_Boolean IntLine() const { return myIntLine; }
0077
0078 void IntLine (const Standard_Boolean B) { myIntLine = B; }
0079
0080 private:
0081
0082 gp_Pnt myP1;
0083 gp_Pnt myP2;
0084 TopoDS_Shape myShape;
0085 Standard_Boolean myRg1Line;
0086 Standard_Boolean myRgNLine;
0087 Standard_Boolean myOutLine;
0088 Standard_Boolean myIntLine;
0089
0090 };
0091
0092 #endif