Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created by: Eugeny MALTCHIKOV
0002 // Copyright (c) 2017 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 BOPTools_BoxTree_HeaderFile
0016 #define BOPTools_BoxTree_HeaderFile
0017 
0018 #include <BOPTools_BoxSelector.hxx>
0019 #include <BOPTools_PairSelector.hxx>
0020 #include <Standard_Integer.hxx>
0021 #include <BVH_LinearBuilder.hxx>
0022 
0023 //! Redefines BoxSet to use the Linear builder by default
0024 
0025 template <class NumType, int Dimension, class DataType>
0026 class BOPTools_BoxSet : public BVH_BoxSet <NumType, Dimension, DataType>
0027 {
0028 public: //! @name Constructors
0029   //! Empty constructor for use the default BVH_Builder
0030   BOPTools_BoxSet (const opencascade::handle <BVH_Builder <NumType, Dimension> >& theBuilder = NULL)
0031     : BVH_BoxSet <NumType, Dimension, DataType> (theBuilder.IsNull() ? new BVH_LinearBuilder<NumType, Dimension>() : theBuilder)
0032   {}
0033 };
0034 
0035 //! 2D definitions
0036 typedef BOPTools_BoxSet <Standard_Real, 2, Standard_Integer> BOPTools_Box2dTree;
0037 typedef BOPTools_BoxSelector<2> BOPTools_Box2dTreeSelector;
0038 typedef BOPTools_PairSelector<2> BOPTools_Box2dPairSelector;
0039 
0040 //! 3D definitions
0041 typedef BOPTools_BoxSet <Standard_Real, 3, Standard_Integer> BOPTools_BoxTree;
0042 typedef BOPTools_BoxSelector<3> BOPTools_BoxTreeSelector;
0043 typedef BOPTools_PairSelector<3> BOPTools_BoxPairSelector;
0044 
0045 #endif