0027368: Finding objects in vicinity of a ray
[occt.git] / src / BVH / BVH_Sorter.hxx
1 // Created on: 2014-01-10
2 // Created by: Denis BOGOLEPOV
3 // Copyright (c) 2013-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _BVH_Sorter_Header
17 #define _BVH_Sorter_Header
18
19 #include <BVH_Set.hxx>
20
21 //! Tool object to sort abstract primitive set.
22 template<class T, int N>
23 class BVH_Sorter
24 {
25 public:
26
27   //! Releases resources of BVH sorter.
28   virtual ~BVH_Sorter() { }
29
30   //! Sorts the set.
31   virtual void Perform (BVH_Set<T, N>* theSet) = 0;
32
33   //! Sorts the given (inclusive) range in the set.
34   virtual void Perform (BVH_Set<T, N>* theSet, const Standard_Integer theStart, const Standard_Integer theFinal) = 0;
35
36 };
37
38 #endif // _BVH_Sorter_Header