//============================================================================ // 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_Glyph_Intersector_h #define vtk_m_rendering_raytracing_Glyph_Intersector_h #include #include namespace vtkm { namespace rendering { namespace raytracing { class GlyphIntersector : public ShapeIntersector { public: GlyphIntersector(vtkm::rendering::GlyphType glyphType); virtual ~GlyphIntersector() override; void SetGlyphType(vtkm::rendering::GlyphType glyphType); void SetData(const vtkm::cont::CoordinateSystem& coords, vtkm::cont::ArrayHandle pointIds, vtkm::cont::ArrayHandle sizes); 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) override; void IntersectionData(Ray& rays, const vtkm::cont::Field scalarField, const vtkm::Range& scalarRange) override; vtkm::Id GetNumberOfShapes() const override; protected: vtkm::cont::ArrayHandle PointIds; vtkm::cont::ArrayHandle Sizes; vtkm::rendering::GlyphType GlyphType; }; // class GlyphIntersector } } } //namespace vtkm::rendering::raytracing #endif //vtk_m_rendering_raytracing_Glyph_Intersector_h