//============================================================================ // 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 vtk_m_rendering_raytracing_Cylinder_Intersector_h #define vtk_m_rendering_raytracing_Cylinder_Intersector_h #include #include namespace vtkm { namespace rendering { namespace raytracing { namespace detail { } class CylinderIntersector : public ShapeIntersector { protected: vtkm::cont::ArrayHandle CylIds; vtkm::cont::ArrayHandle Radii; public: CylinderIntersector(); virtual ~CylinderIntersector() override; void SetData(const vtkm::cont::CoordinateSystem& coords, vtkm::cont::ArrayHandle cylIds, vtkm::cont::ArrayHandle radii); void IntersectRays(Ray& rays, bool returnCellIndex = false) override; void IntersectRays(Ray& rays, bool returnCellIndex = false) override; template void IntersectRaysImp(Ray& rays, bool returnCellIndex); template void IntersectionDataImp(Ray& rays, const vtkm::cont::Field scalarField, const vtkm::Range& scalarRange); void IntersectionData(Ray& rays, const vtkm::cont::Field scalarField, const vtkm::Range& scalarRange = vtkm::Range()) override; void IntersectionData(Ray& rays, const vtkm::cont::Field scalarField, const vtkm::Range& scalarRange = vtkm::Range()) override; vtkm::Id GetNumberOfShapes() const override; }; // class ShapeIntersector } } } //namespace vtkm::rendering::raytracing #endif //vtk_m_rendering_raytracing_Shape_Intersector_h