VTK-m  2.0
Public Member Functions | Protected Attributes | List of all members
vtkm::rendering::raytracing::SphereIntersector Class Reference

#include <SphereIntersector.h>

Inheritance diagram for vtkm::rendering::raytracing::SphereIntersector:
vtkm::rendering::raytracing::ShapeIntersector

Public Member Functions

 SphereIntersector ()
 
virtual ~SphereIntersector () override
 
void SetData (const vtkm::cont::CoordinateSystem &coords, vtkm::cont::ArrayHandle< vtkm::Id > pointIds, vtkm::cont::ArrayHandle< vtkm::Float32 > radii)
 
void IntersectRays (Ray< vtkm::Float32 > &rays, bool returnCellIndex=false) override
 
void IntersectRays (Ray< vtkm::Float64 > &rays, bool returnCellIndex=false) override
 
template<typename Precision >
void IntersectRaysImp (Ray< Precision > &rays, bool returnCellIndex)
 
template<typename Precision >
void IntersectionDataImp (Ray< Precision > &rays, const vtkm::cont::Field scalarField, const vtkm::Range &scalarRange)
 
void IntersectionData (Ray< vtkm::Float32 > &rays, const vtkm::cont::Field scalarField, const vtkm::Range &scalarRange) override
 
void IntersectionData (Ray< vtkm::Float64 > &rays, const vtkm::cont::Field scalarField, const vtkm::Range &scalarRange) override
 
vtkm::Id GetNumberOfShapes () const override
 
- Public Member Functions inherited from vtkm::rendering::raytracing::ShapeIntersector
 ShapeIntersector ()
 
virtual ~ShapeIntersector ()
 
template<typename Precision >
void IntersectionPointImp (Ray< Precision > &rays)
 
void IntersectionPoint (Ray< vtkm::Float32 > &rays)
 
void IntersectionPoint (Ray< vtkm::Float64 > &rays)
 
vtkm::Bounds GetShapeBounds () const
 

Protected Attributes

vtkm::cont::ArrayHandle< vtkm::IdPointIds
 
vtkm::cont::ArrayHandle< vtkm::Float32Radii
 
- Protected Attributes inherited from vtkm::rendering::raytracing::ShapeIntersector
LinearBVH BVH
 
vtkm::cont::CoordinateSystem CoordsHandle
 
vtkm::Bounds ShapeBounds
 

Additional Inherited Members

- Protected Member Functions inherited from vtkm::rendering::raytracing::ShapeIntersector
void SetAABBs (AABBs &aabbs)
 

Constructor & Destructor Documentation

◆ SphereIntersector()

vtkm::rendering::raytracing::SphereIntersector::SphereIntersector ( )

◆ ~SphereIntersector()

virtual vtkm::rendering::raytracing::SphereIntersector::~SphereIntersector ( )
overridevirtual

Member Function Documentation

◆ GetNumberOfShapes()

vtkm::Id vtkm::rendering::raytracing::SphereIntersector::GetNumberOfShapes ( ) const
overridevirtual

◆ IntersectionData() [1/2]

void vtkm::rendering::raytracing::SphereIntersector::IntersectionData ( Ray< vtkm::Float32 > &  rays,
const vtkm::cont::Field  scalarField,
const vtkm::Range scalarRange 
)
overridevirtual

◆ IntersectionData() [2/2]

void vtkm::rendering::raytracing::SphereIntersector::IntersectionData ( Ray< vtkm::Float64 > &  rays,
const vtkm::cont::Field  scalarField,
const vtkm::Range scalarRange 
)
overridevirtual

◆ IntersectionDataImp()

template<typename Precision >
void vtkm::rendering::raytracing::SphereIntersector::IntersectionDataImp ( Ray< Precision > &  rays,
const vtkm::cont::Field  scalarField,
const vtkm::Range scalarRange 
)

◆ IntersectRays() [1/2]

void vtkm::rendering::raytracing::SphereIntersector::IntersectRays ( Ray< vtkm::Float32 > &  rays,
bool  returnCellIndex = false 
)
overridevirtual

◆ IntersectRays() [2/2]

void vtkm::rendering::raytracing::SphereIntersector::IntersectRays ( Ray< vtkm::Float64 > &  rays,
bool  returnCellIndex = false 
)
overridevirtual

◆ IntersectRaysImp()

template<typename Precision >
void vtkm::rendering::raytracing::SphereIntersector::IntersectRaysImp ( Ray< Precision > &  rays,
bool  returnCellIndex 
)

◆ SetData()

void vtkm::rendering::raytracing::SphereIntersector::SetData ( const vtkm::cont::CoordinateSystem coords,
vtkm::cont::ArrayHandle< vtkm::Id pointIds,
vtkm::cont::ArrayHandle< vtkm::Float32 radii 
)

Member Data Documentation

◆ PointIds

vtkm::cont::ArrayHandle<vtkm::Id> vtkm::rendering::raytracing::SphereIntersector::PointIds
protected

◆ Radii

vtkm::cont::ArrayHandle<vtkm::Float32> vtkm::rendering::raytracing::SphereIntersector::Radii
protected

The documentation for this class was generated from the following file: