HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::math::VolumeHDDA< TreeT, RayT, ChildNodeLevel > Class Template Reference

Helper class that implements Hierarchical Digital Differential Analyzers for ray intersections against a generic volume. More...

#include <DDA.h>

Public Types

using ChainT = typename TreeT::RootNodeType::NodeChainType
 
using NodeT = typename ChainT::template Get< ChildNodeLevel >
 
using TimeSpanT = typename RayT::TimeSpan
 

Public Member Functions

 VolumeHDDA ()
 
template<typename AccessorT >
TimeSpanT march (RayT &ray, AccessorT &acc)
 
template<typename AccessorT , typename ListT >
void hits (RayT &ray, AccessorT &acc, ListT &times)
 

Friends

class VolumeHDDA< TreeT, RayT, ChildNodeLevel+1 >
 

Detailed Description

template<typename TreeT, typename RayT, int ChildNodeLevel>
class openvdb::OPENVDB_VERSION_NAME::math::VolumeHDDA< TreeT, RayT, ChildNodeLevel >

Helper class that implements Hierarchical Digital Differential Analyzers for ray intersections against a generic volume.

The template argument ChildNodeLevel specifies the entry upper node level used for the hierarchical ray-marching. The final lowest level is always the leaf node level, i.e. not the voxel level!

Definition at line 187 of file DDA.h.

Member Typedef Documentation

template<typename TreeT, typename RayT, int ChildNodeLevel>
using openvdb::OPENVDB_VERSION_NAME::math::VolumeHDDA< TreeT, RayT, ChildNodeLevel >::ChainT = typename TreeT::RootNodeType::NodeChainType

Definition at line 191 of file DDA.h.

template<typename TreeT, typename RayT, int ChildNodeLevel>
using openvdb::OPENVDB_VERSION_NAME::math::VolumeHDDA< TreeT, RayT, ChildNodeLevel >::NodeT = typename ChainT::template Get<ChildNodeLevel>

Definition at line 192 of file DDA.h.

template<typename TreeT, typename RayT, int ChildNodeLevel>
using openvdb::OPENVDB_VERSION_NAME::math::VolumeHDDA< TreeT, RayT, ChildNodeLevel >::TimeSpanT = typename RayT::TimeSpan

Definition at line 193 of file DDA.h.

Constructor & Destructor Documentation

template<typename TreeT, typename RayT, int ChildNodeLevel>
openvdb::OPENVDB_VERSION_NAME::math::VolumeHDDA< TreeT, RayT, ChildNodeLevel >::VolumeHDDA ( )
inline

Definition at line 195 of file DDA.h.

Member Function Documentation

template<typename TreeT, typename RayT, int ChildNodeLevel>
template<typename AccessorT , typename ListT >
void openvdb::OPENVDB_VERSION_NAME::math::VolumeHDDA< TreeT, RayT, ChildNodeLevel >::hits ( RayT &  ray,
AccessorT &  acc,
ListT &  times 
)
inline

ListType is a list of RayType::TimeSpan and is required to have the two methods: clear() and push_back(). Thus, it could be std::vector<typename RayType::TimeSpan> or std::deque<typename RayType::TimeSpan>.

Definition at line 210 of file DDA.h.

template<typename TreeT, typename RayT, int ChildNodeLevel>
template<typename AccessorT >
TimeSpanT openvdb::OPENVDB_VERSION_NAME::math::VolumeHDDA< TreeT, RayT, ChildNodeLevel >::march ( RayT &  ray,
AccessorT &  acc 
)
inline

Definition at line 198 of file DDA.h.

Friends And Related Function Documentation

template<typename TreeT, typename RayT, int ChildNodeLevel>
friend class VolumeHDDA< TreeT, RayT, ChildNodeLevel+1 >
friend

Definition at line 220 of file DDA.h.


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