//============================================================================ // 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_Vector_h #define vtk_m_rendering_raytracing_Glyph_Intersector_Vector_h #include #include namespace vtkm { namespace rendering { namespace raytracing { class GlyphIntersectorVector : public ShapeIntersector { public: GlyphIntersectorVector(vtkm::rendering::GlyphType glyphType); virtual ~GlyphIntersectorVector() 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 field, const vtkm::Range& range); void IntersectionData(Ray& rays, const vtkm::cont::Field field, const vtkm::Range& range) override; void IntersectionData(Ray& rays, const vtkm::cont::Field field, const vtkm::Range& range) override; vtkm::Id GetNumberOfShapes() const override; void SetArrowRadii(vtkm::Float32 bodyRadius, vtkm::Float32 headRadius); protected: vtkm::cont::ArrayHandle PointIds; vtkm::cont::ArrayHandle Sizes; vtkm::cont::ArrayHandle Normals; vtkm::rendering::GlyphType GlyphType; vtkm::Float32 ArrowBodyRadius; vtkm::Float32 ArrowHeadRadius; }; // class GlyphIntersectorVector } } } //namespace vtkm::rendering::raytracing #endif //vtk_m_rendering_raytracing_Glyph_Intersector_Vector_h