2018-06-22 20:21:07 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2018-06-22 20:21:07 +00:00
|
|
|
// 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 vtk_m_exec_PointLocator_h
|
|
|
|
#define vtk_m_exec_PointLocator_h
|
|
|
|
|
|
|
|
#include <vtkm/VirtualObjectBase.h>
|
|
|
|
|
2020-11-11 22:02:10 +00:00
|
|
|
#ifdef VTKM_NO_DEPRECATED_VIRTUAL
|
|
|
|
#error "PointLocator with virtual methods is removed. Do not include PointLocator.h"
|
|
|
|
#endif
|
|
|
|
|
2021-04-23 20:07:11 +00:00
|
|
|
VTKM_DEPRECATED_SUPPRESS_BEGIN
|
|
|
|
|
2018-06-22 20:21:07 +00:00
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace exec
|
|
|
|
{
|
|
|
|
|
2020-11-11 22:02:10 +00:00
|
|
|
class VTKM_DEPRECATED(1.6, "PointLocator with virtual methods no longer supported.")
|
|
|
|
VTKM_ALWAYS_EXPORT PointLocator : public vtkm::VirtualObjectBase
|
2018-06-22 20:21:07 +00:00
|
|
|
{
|
2020-11-11 22:02:10 +00:00
|
|
|
VTKM_DEPRECATED_SUPPRESS_BEGIN
|
2018-06-22 20:21:07 +00:00
|
|
|
public:
|
2019-06-17 12:44:33 +00:00
|
|
|
VTKM_EXEC_CONT virtual ~PointLocator() noexcept
|
|
|
|
{
|
|
|
|
// This must not be defaulted, since defaulted virtual destructors are
|
|
|
|
// troublesome with CUDA __host__ __device__ markup.
|
|
|
|
}
|
|
|
|
|
2020-11-11 22:02:10 +00:00
|
|
|
VTKM_EXEC
|
|
|
|
virtual void FindNearestNeighbor(const vtkm::Vec3f& queryPoint,
|
|
|
|
vtkm::Id& pointId,
|
|
|
|
vtkm::FloatDefault& distanceSquared) const = 0;
|
|
|
|
VTKM_DEPRECATED_SUPPRESS_END
|
2018-06-22 20:21:07 +00:00
|
|
|
};
|
2020-11-11 22:02:10 +00:00
|
|
|
|
|
|
|
} // vtkm::exec
|
|
|
|
} // vtkm
|
|
|
|
|
2021-04-23 20:07:11 +00:00
|
|
|
VTKM_DEPRECATED_SUPPRESS_END
|
|
|
|
|
2018-06-26 19:44:05 +00:00
|
|
|
#endif // vtk_m_exec_PointLocator_h
|