ug4
ug::Traverser_RayElementIntersection< tree_t > Class Template Reference

#include <ntree_traverser.h>

Public Types

typedef tree_t::box_t box_t
 
typedef tree_t::elem_t elem_t
 
typedef RayElemIntersectionRecord< elem_tintersection_record_t
 
typedef tree_t::vector_t vector_t
 

Public Member Functions

void begin_traversal (const tree_t &tree)
 
void end_traversal (const tree_t &)
 
const std::vector< intersection_record_t > & result () const
 
 Traverser_RayElementIntersection (const vector_t &rayFrom, const vector_t rayDir, const number small=1.e-12)
 
void visit_down (const tree_t &, size_t)
 
int visit_up (const tree_t &tree, size_t node)
 

Private Attributes

std::vector< intersection_record_tm_intersections
 
vector_t m_rayDir
 
vector_t m_rayFrom
 
const number m_small
 

Member Typedef Documentation

◆ box_t

template<class tree_t >
typedef tree_t::box_t ug::Traverser_RayElementIntersection< tree_t >::box_t

◆ elem_t

template<class tree_t >
typedef tree_t::elem_t ug::Traverser_RayElementIntersection< tree_t >::elem_t

◆ intersection_record_t

◆ vector_t

template<class tree_t >
typedef tree_t::vector_t ug::Traverser_RayElementIntersection< tree_t >::vector_t

Constructor & Destructor Documentation

◆ Traverser_RayElementIntersection()

template<class tree_t >
ug::Traverser_RayElementIntersection< tree_t >::Traverser_RayElementIntersection ( const vector_t rayFrom,
const vector_t  rayDir,
const number  small = 1.e-12 
)
inline

Member Function Documentation

◆ begin_traversal()

template<class tree_t >
void ug::Traverser_RayElementIntersection< tree_t >::begin_traversal ( const tree_t &  tree)
inline

◆ end_traversal()

template<class tree_t >
void ug::Traverser_RayElementIntersection< tree_t >::end_traversal ( const tree_t &  )
inline

◆ result()

template<class tree_t >
const std::vector<intersection_record_t>& ug::Traverser_RayElementIntersection< tree_t >::result ( ) const
inline

◆ visit_down()

template<class tree_t >
void ug::Traverser_RayElementIntersection< tree_t >::visit_down ( const tree_t &  ,
size_t   
)
inline

◆ visit_up()

Member Data Documentation

◆ m_intersections

◆ m_rayDir

template<class tree_t >
vector_t ug::Traverser_RayElementIntersection< tree_t >::m_rayDir
private

◆ m_rayFrom

template<class tree_t >
vector_t ug::Traverser_RayElementIntersection< tree_t >::m_rayFrom
private

◆ m_small

template<class tree_t >
const number ug::Traverser_RayElementIntersection< tree_t >::m_small
private

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