Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-19 08:15:58

0001 // Created on: 2002-03-04
0002 // Created by: Michael KLOKOV
0003 // Copyright (c) 2002-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _BOPAlgo_SectionAttribute_HeaderFile
0017 #define _BOPAlgo_SectionAttribute_HeaderFile
0018 
0019 //! Class is a container of the flags used
0020 //! by intersection algorithm
0021 class BOPAlgo_SectionAttribute
0022 {
0023 public:
0024   //! Default constructor
0025   BOPAlgo_SectionAttribute()
0026       : myApproximation(Standard_True),
0027         myPCurve1(Standard_True),
0028         myPCurve2(Standard_True)
0029   {
0030   }
0031 
0032   //! Constructor
0033   BOPAlgo_SectionAttribute(const Standard_Boolean theAproximation,
0034                            const Standard_Boolean thePCurveOnS1,
0035                            const Standard_Boolean thePCurveOnS2)
0036       : myApproximation(theAproximation),
0037         myPCurve1(thePCurveOnS1),
0038         myPCurve2(thePCurveOnS2)
0039   {
0040   }
0041 
0042   //! Sets the Approximation flag
0043   void Approximation(const Standard_Boolean theApprox) { myApproximation = theApprox; }
0044 
0045   //! Sets the PCurveOnS1 flag
0046   void PCurveOnS1(const Standard_Boolean thePCurveOnS1) { myPCurve1 = thePCurveOnS1; }
0047 
0048   //! Sets the PCurveOnS2 flag
0049   void PCurveOnS2(const Standard_Boolean thePCurveOnS2) { myPCurve2 = thePCurveOnS2; }
0050 
0051   //! Returns the Approximation flag
0052   Standard_Boolean Approximation() const { return myApproximation; }
0053 
0054   //! Returns the PCurveOnS1 flag
0055   Standard_Boolean PCurveOnS1() const { return myPCurve1; }
0056 
0057   //! Returns the PCurveOnS2 flag
0058   Standard_Boolean PCurveOnS2() const { return myPCurve2; }
0059 
0060 protected:
0061 private:
0062   Standard_Boolean myApproximation;
0063   Standard_Boolean myPCurve1;
0064   Standard_Boolean myPCurve2;
0065 };
0066 
0067 #endif // _BOPAlgo_SectionAttribute_HeaderFile