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

#include <RayTracer.h>

Public Member Functions

VTKM_CONT RayTracer ()
 
VTKM_CONT ~RayTracer ()
 
VTKM_CONT CameraGetCamera ()
 
VTKM_CONT void AddShapeIntersector (std::shared_ptr< ShapeIntersector > intersector)
 
VTKM_CONT void SetField (const vtkm::cont::Field &scalarField, const vtkm::Range &scalarRange)
 
VTKM_CONT void SetColorMap (const vtkm::cont::ArrayHandle< vtkm::Vec4f_32 > &colorMap)
 
VTKM_CONT void SetShadingOn (bool on)
 
VTKM_CONT void Render (vtkm::rendering::raytracing::Ray< vtkm::Float32 > &rays)
 
VTKM_CONT void Render (vtkm::rendering::raytracing::Ray< vtkm::Float64 > &rays)
 
VTKM_CONT vtkm::Id GetNumberOfShapes () const
 
VTKM_CONT void Clear ()
 

Protected Member Functions

template<typename Precision >
void RenderOnDevice (Ray< Precision > &rays)
 

Protected Attributes

std::vector< std::shared_ptr< ShapeIntersector > > Intersectors
 
Camera camera
 
vtkm::cont::Field ScalarField
 
vtkm::Id NumberOfShapes
 
vtkm::cont::ArrayHandle< vtkm::Vec4f_32ColorMap
 
vtkm::Range ScalarRange
 
bool Shade
 

Constructor & Destructor Documentation

◆ RayTracer()

VTKM_CONT vtkm::rendering::raytracing::RayTracer::RayTracer ( )

◆ ~RayTracer()

VTKM_CONT vtkm::rendering::raytracing::RayTracer::~RayTracer ( )

Member Function Documentation

◆ AddShapeIntersector()

VTKM_CONT void vtkm::rendering::raytracing::RayTracer::AddShapeIntersector ( std::shared_ptr< ShapeIntersector intersector)

◆ Clear()

VTKM_CONT void vtkm::rendering::raytracing::RayTracer::Clear ( )

◆ GetCamera()

VTKM_CONT Camera& vtkm::rendering::raytracing::RayTracer::GetCamera ( )

◆ GetNumberOfShapes()

VTKM_CONT vtkm::Id vtkm::rendering::raytracing::RayTracer::GetNumberOfShapes ( ) const

◆ Render() [1/2]

VTKM_CONT void vtkm::rendering::raytracing::RayTracer::Render ( vtkm::rendering::raytracing::Ray< vtkm::Float32 > &  rays)

◆ Render() [2/2]

VTKM_CONT void vtkm::rendering::raytracing::RayTracer::Render ( vtkm::rendering::raytracing::Ray< vtkm::Float64 > &  rays)

◆ RenderOnDevice()

template<typename Precision >
void vtkm::rendering::raytracing::RayTracer::RenderOnDevice ( Ray< Precision > &  rays)
protected

◆ SetColorMap()

VTKM_CONT void vtkm::rendering::raytracing::RayTracer::SetColorMap ( const vtkm::cont::ArrayHandle< vtkm::Vec4f_32 > &  colorMap)

◆ SetField()

VTKM_CONT void vtkm::rendering::raytracing::RayTracer::SetField ( const vtkm::cont::Field scalarField,
const vtkm::Range scalarRange 
)

◆ SetShadingOn()

VTKM_CONT void vtkm::rendering::raytracing::RayTracer::SetShadingOn ( bool  on)

Member Data Documentation

◆ camera

Camera vtkm::rendering::raytracing::RayTracer::camera
protected

◆ ColorMap

vtkm::cont::ArrayHandle<vtkm::Vec4f_32> vtkm::rendering::raytracing::RayTracer::ColorMap
protected

◆ Intersectors

std::vector<std::shared_ptr<ShapeIntersector> > vtkm::rendering::raytracing::RayTracer::Intersectors
protected

◆ NumberOfShapes

vtkm::Id vtkm::rendering::raytracing::RayTracer::NumberOfShapes
protected

◆ ScalarField

vtkm::cont::Field vtkm::rendering::raytracing::RayTracer::ScalarField
protected

◆ ScalarRange

vtkm::Range vtkm::rendering::raytracing::RayTracer::ScalarRange
protected

◆ Shade

bool vtkm::rendering::raytracing::RayTracer::Shade
protected

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