0a5f5d55c9
Deprecated the `CellLocator` class and made all methods of the other `CellLocator` classes non-virtual. General locators can still use the `CellLocatorGeneral` class, but this class now only works with a predefined set of locators. (The functionality to provide a function to select a locator has been removed.)
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
//============================================================================
|
|
// Copyright (c) Kitware, Inc.
|
|
// All rights reserved.
|
|
// See LICENSE.txt for details.
|
|
//
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
//============================================================================
|
|
#ifndef vtkm_cont_CellLocatorUniformGrid_h
|
|
#define vtkm_cont_CellLocatorUniformGrid_h
|
|
|
|
#include <vtkm/cont/internal/CellLocatorBase.h>
|
|
|
|
#include <vtkm/exec/CellLocatorUniformGrid.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace cont
|
|
{
|
|
|
|
class VTKM_CONT_EXPORT CellLocatorUniformGrid
|
|
: public vtkm::cont::internal::CellLocatorBase<CellLocatorUniformGrid>
|
|
{
|
|
using Superclass = vtkm::cont::internal::CellLocatorBase<CellLocatorUniformGrid>;
|
|
|
|
public:
|
|
VTKM_CONT vtkm::exec::CellLocatorUniformGrid PrepareForExecution(
|
|
vtkm::cont::DeviceAdapterId device,
|
|
vtkm::cont::Token& token) const;
|
|
|
|
private:
|
|
vtkm::Id3 CellDims;
|
|
vtkm::Id3 PointDims;
|
|
vtkm::Vec3f Origin;
|
|
vtkm::Vec3f InvSpacing;
|
|
vtkm::Vec3f MaxPoint;
|
|
bool Is3D = true;
|
|
|
|
friend Superclass;
|
|
VTKM_CONT void Build();
|
|
};
|
|
}
|
|
} // vtkm::cont
|
|
|
|
#endif //vtkm_cont_CellLocatorUniformGrid_h
|