HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT > Class Template Reference

A Tree Marcher for Generic Grids. More...

#include <HDDA.h>

Public Types

using ChildT = typename NodeT::ChildNodeType
 
using RealType = typename RayT::RealType
 
using RealT = RealType
 
using CoordType = CoordT
 

Public Member Functions

__hostdev__ TreeMarcher (AccT &acc)
 
__hostdev__ bool init (const RayT &indexRay)
 Initialize the TreeMarcher with an index-space ray. More...
 
__hostdev__ bool step (const NodeT **node, float &t0, float &t1)
 step the ray through the tree. If the ray hits a node then populate t0 & t1, and the node. More...
 
__hostdev__ const RayT & ray () const
 
__hostdev__ RayT & ray ()
 

Detailed Description

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
class nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >

A Tree Marcher for Generic Grids.

Definition at line 395 of file HDDA.h.

Member Typedef Documentation

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
using nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::ChildT = typename NodeT::ChildNodeType

Definition at line 398 of file HDDA.h.

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
using nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::CoordType = CoordT

Definition at line 401 of file HDDA.h.

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
using nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::RealT = RealType

Definition at line 400 of file HDDA.h.

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
using nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::RealType = typename RayT::RealType

Definition at line 399 of file HDDA.h.

Constructor & Destructor Documentation

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
__hostdev__ nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::TreeMarcher ( AccT &  acc)
inline

Definition at line 403 of file HDDA.h.

Member Function Documentation

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
__hostdev__ bool nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::init ( const RayT &  indexRay)
inline

Initialize the TreeMarcher with an index-space ray.

Definition at line 409 of file HDDA.h.

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
__hostdev__ const RayT& nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::ray ( ) const
inline

Definition at line 470 of file HDDA.h.

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
__hostdev__ RayT& nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::ray ( )
inline

Definition at line 472 of file HDDA.h.

template<typename NodeT, typename RayT, typename AccT, typename CoordT = Coord>
__hostdev__ bool nanovdb::TreeMarcher< NodeT, RayT, AccT, CoordT >::step ( const NodeT **  node,
float t0,
float t1 
)
inline

step the ray through the tree. If the ray hits a node then populate t0 & t1, and the node.

Returns
true when a node of type NodeT is intersected, false otherwise.

Definition at line 435 of file HDDA.h.


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