1 //============================================================================ 2 // Copyright (c) Kitware, Inc. 3 // All rights reserved. 4 // See LICENSE.txt for details. 5 // 6 // This software is distributed WITHOUT ANY WARRANTY; without even 7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 8 // PURPOSE. See the above copyright notice for more information. 9 //============================================================================ 10 #ifndef vtk_m_exec_PointLocator_h 11 #define vtk_m_exec_PointLocator_h 12 13 #include <vtkm/VirtualObjectBase.h> 14 15 #ifdef VTKM_NO_DEPRECATED_VIRTUAL 16 #error "PointLocator with virtual methods is removed. Do not include PointLocator.h" 17 #endif 18 19 namespace vtkm 20 { 21 namespace exec 22 { 23 24 class VTKM_DEPRECATED(1.6, "PointLocator with virtual methods no longer supported.") 25 VTKM_ALWAYS_EXPORT PointLocator : public vtkm::VirtualObjectBase 26 { 27 VTKM_DEPRECATED_SUPPRESS_BEGIN 28 public: ~PointLocator()29 VTKM_EXEC_CONT virtual ~PointLocator() noexcept 30 { 31 // This must not be defaulted, since defaulted virtual destructors are 32 // troublesome with CUDA __host__ __device__ markup. 33 } 34 35 VTKM_EXEC 36 virtual void FindNearestNeighbor(const vtkm::Vec3f& queryPoint, 37 vtkm::Id& pointId, 38 vtkm::FloatDefault& distanceSquared) const = 0; 39 VTKM_DEPRECATED_SUPPRESS_END 40 }; 41 42 } // vtkm::exec 43 } // vtkm 44 45 #endif // vtk_m_exec_PointLocator_h 46