Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created by: Peter KURNEV
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement. 
0014 
0015 #ifndef _BOPAlgo_Section_HeaderFile
0016 #define _BOPAlgo_Section_HeaderFile
0017 
0018 #include <Standard.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020 #include <Standard_Handle.hxx>
0021 
0022 #include <BOPAlgo_Builder.hxx>
0023 #include <NCollection_BaseAllocator.hxx>
0024 class BOPAlgo_PaveFiller;
0025 
0026 
0027 
0028 //! The algorithm to build a Section between the arguments.
0029 //! The Section consists of vertices and edges.
0030 //! The Section contains:
0031 //! 1. new vertices that are subjects of V/V, E/E, E/F, F/F interferences
0032 //! 2. vertices that are subjects of V/E, V/F interferences
0033 //! 3. new edges that are subjects of F/F interferences
0034 //! 4. edges that are Common Blocks
0035 class BOPAlgo_Section  : public BOPAlgo_Builder
0036 {
0037 public:
0038 
0039   DEFINE_STANDARD_ALLOC
0040 
0041   //! Empty constructor
0042   Standard_EXPORT BOPAlgo_Section();
0043   Standard_EXPORT virtual ~BOPAlgo_Section();
0044 
0045   //! Constructor with allocator
0046   Standard_EXPORT BOPAlgo_Section(const Handle(NCollection_BaseAllocator)& theAllocator);
0047 
0048 protected:
0049 
0050   //! Checks the data before performing the operation
0051   Standard_EXPORT virtual void CheckData() Standard_OVERRIDE;
0052 
0053   //! Combine the result of section operation
0054   Standard_EXPORT virtual void BuildSection(const Message_ProgressRange& theRange);
0055 
0056   //! Performs calculations using prepared Filler object <thePF>
0057   Standard_EXPORT virtual void PerformInternal1(const BOPAlgo_PaveFiller& thePF, const Message_ProgressRange& theRange) Standard_OVERRIDE;
0058 
0059 protected:
0060 
0061   //! List of operations to be supported by the Progress Indicator.
0062   //! Override the whole enumeration here since the constant operations are also
0063   //! going to be overridden.
0064   enum BOPAlgo_PIOperation
0065   {
0066     PIOperation_TreatVertices = 0,
0067     PIOperation_TreatEdges,
0068     PIOperation_BuildSection,
0069     PIOperation_FillHistory,
0070     PIOperation_PostTreat,
0071     PIOperation_Last
0072   };
0073 
0074   //! Filling steps for constant operations
0075   Standard_EXPORT void fillPIConstants(const Standard_Real theWhole, BOPAlgo_PISteps& theSteps) const Standard_OVERRIDE;
0076 
0077   //! Filling steps for all other operations
0078   Standard_EXPORT void fillPISteps(BOPAlgo_PISteps& theSteps) const Standard_OVERRIDE;
0079 
0080 };
0081 
0082 #endif // _BOPAlgo_Section_HeaderFile