Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:04

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 
0025   //! Default constructor
0026   BOPAlgo_SectionAttribute()
0027     : myApproximation(Standard_True),
0028       myPCurve1(Standard_True),
0029       myPCurve2(Standard_True) {}
0030 
0031   //! Constructor
0032   BOPAlgo_SectionAttribute(const Standard_Boolean theAproximation,
0033                            const Standard_Boolean thePCurveOnS1,
0034                            const Standard_Boolean thePCurveOnS2)
0035     : myApproximation(theAproximation),
0036       myPCurve1(thePCurveOnS1),
0037       myPCurve2(thePCurveOnS2) {}
0038 
0039   //! Sets the Approximation flag
0040   void Approximation(const Standard_Boolean theApprox)
0041   {
0042     myApproximation = theApprox;
0043   }
0044 
0045   //! Sets the PCurveOnS1 flag
0046   void PCurveOnS1(const Standard_Boolean thePCurveOnS1)
0047   {
0048     myPCurve1 = thePCurveOnS1;
0049   }
0050 
0051   //! Sets the PCurveOnS2 flag
0052   void PCurveOnS2(const Standard_Boolean thePCurveOnS2)
0053   {
0054     myPCurve2 = thePCurveOnS2;
0055   }
0056 
0057   //! Returns the Approximation flag
0058   Standard_Boolean Approximation() const
0059   {
0060     return myApproximation;
0061   }
0062 
0063   //! Returns the PCurveOnS1 flag
0064   Standard_Boolean PCurveOnS1() const
0065   {
0066     return myPCurve1;
0067   }
0068 
0069   //! Returns the PCurveOnS2 flag
0070   Standard_Boolean PCurveOnS2() const
0071   {
0072     return myPCurve2;
0073   }
0074 
0075 protected:
0076 
0077 private:
0078 
0079   Standard_Boolean myApproximation;
0080   Standard_Boolean myPCurve1;
0081   Standard_Boolean myPCurve2;
0082 
0083 };
0084 
0085 #endif // _BOPAlgo_SectionAttribute_HeaderFile