Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/HLRBRep_BiPoint.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 1992-08-21
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
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 //! Contains the colors of a shape.
0029 class HLRBRep_BiPoint
0030 {
0031 public:
0032   DEFINE_STANDARD_ALLOC
0033 
0034   HLRBRep_BiPoint()
0035       : myRg1Line(false),
0036         myRgNLine(false),
0037         myOutLine(false),
0038         myIntLine(false)
0039   {
0040   }
0041 
0042   HLRBRep_BiPoint(const double        x1,
0043                   const double        y1,
0044                   const double        z1,
0045                   const double        x2,
0046                   const double        y2,
0047                   const double        z2,
0048                   const TopoDS_Shape& S,
0049                   const bool          reg1,
0050                   const bool          regn,
0051                   const bool          outl,
0052                   const bool          intl)
0053       : myP1(x1, y1, z1),
0054         myP2(x2, y2, z2),
0055         myShape(S),
0056         myRg1Line(reg1),
0057         myRgNLine(regn),
0058         myOutLine(outl),
0059         myIntLine(intl)
0060   {
0061   }
0062 
0063   const gp_Pnt& P1() const { return myP1; }
0064 
0065   const gp_Pnt& P2() const { return myP2; }
0066 
0067   const TopoDS_Shape& Shape() const { return myShape; }
0068 
0069   void Shape(const TopoDS_Shape& S) { myShape = S; }
0070 
0071   bool Rg1Line() const { return myRg1Line; }
0072 
0073   void Rg1Line(const bool B) { myRg1Line = B; }
0074 
0075   bool RgNLine() const { return myRgNLine; }
0076 
0077   void RgNLine(const bool B) { myRgNLine = B; }
0078 
0079   bool OutLine() const { return myOutLine; }
0080 
0081   void OutLine(const bool B) { myOutLine = B; }
0082 
0083   bool IntLine() const { return myIntLine; }
0084 
0085   void IntLine(const bool B) { myIntLine = B; }
0086 
0087 private:
0088   gp_Pnt       myP1;
0089   gp_Pnt       myP2;
0090   TopoDS_Shape myShape;
0091   bool         myRg1Line;
0092   bool         myRgNLine;
0093   bool         myOutLine;
0094   bool         myIntLine;
0095 };
0096 
0097 #endif // _HLRBRep_BiPoint_HeaderFile