HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::NanoToOpenVDB< NanoBuildT > Class Template Reference

This class will serialize an OpenVDB grid into a NanoVDB grid managed by a GridHandle. More...

#include <NanoToOpenVDB.h>

Public Member Functions

 NanoToOpenVDB ()
 Construction from an existing const OpenVDB Grid. More...
 
OpenGridT::Ptr operator() (const NanoGrid< NanoBuildT > &grid, int verbose=0)
 Return a shared pointer to a NanoVDB grid constructed from the specified OpenVDB grid. More...
 
template<typename SrcNodeT , typename DstNodeT >
DstNodeT * processNode (const SrcNodeT *srcNode)
 
template<typename NanoLeafT >
std::enable_if<!std::is_same
< bool, typename
NanoLeafT::BuildType >::value
&&!std::is_same< ValueMask,
typename NanoLeafT::BuildType >
::value &&!std::is_same< Fp4,
typename NanoLeafT::BuildType >
::value &&!std::is_same< Fp8,
typename NanoLeafT::BuildType >
::value &&!std::is_same< Fp16,
typename NanoLeafT::BuildType >
::value &&!std::is_same< FpN,
typename NanoLeafT::BuildType >
::value, typename
NanoToOpenVDB< T >::OpenNode0 * >
::type 
process (const NanoLeafT *srcNode)
 
template<typename NanoLeafT >
std::enable_if< std::is_same
< Fp4, typename
NanoLeafT::BuildType >::value||std::is_same
< Fp8, typename
NanoLeafT::BuildType >::value||std::is_same
< Fp16, typename
NanoLeafT::BuildType >::value||std::is_same
< FpN, typename
NanoLeafT::BuildType >::value,
typename NanoToOpenVDB< T >
::OpenNode0 * >::type 
process (const NanoLeafT *srcNode)
 
template<typename NanoLeafT >
std::enable_if< std::is_same
< ValueMask, typename
NanoLeafT::BuildType >::value,
typename NanoToOpenVDB< T >
::OpenNode0 * >::type 
process (const NanoLeafT *srcNode)
 
template<typename NanoLeafT >
std::enable_if< std::is_same
< bool, typename
NanoLeafT::BuildType >::value,
typename NanoToOpenVDB< T >
::OpenNode0 * >::type 
process (const NanoLeafT *srcNode)
 

Detailed Description

template<typename NanoBuildT>
class nanovdb::NanoToOpenVDB< NanoBuildT >

This class will serialize an OpenVDB grid into a NanoVDB grid managed by a GridHandle.

Definition at line 63 of file NanoToOpenVDB.h.

Constructor & Destructor Documentation

template<typename NanoBuildT>
nanovdb::NanoToOpenVDB< NanoBuildT >::NanoToOpenVDB ( )
inline

Construction from an existing const OpenVDB Grid.

Definition at line 84 of file NanoToOpenVDB.h.

Member Function Documentation

template<typename NanoBuildT >
NanoToOpenVDB< NanoBuildT >::OpenGridT::Ptr nanovdb::NanoToOpenVDB< NanoBuildT >::operator() ( const NanoGrid< NanoBuildT > &  grid,
int  verbose = 0 
)

Return a shared pointer to a NanoVDB grid constructed from the specified OpenVDB grid.

Definition at line 133 of file NanoToOpenVDB.h.

template<typename NanoBuildT>
template<typename NanoLeafT >
std::enable_if<!std::is_same<bool, typename NanoLeafT::BuildType>::value && !std::is_same<ValueMask, typename NanoLeafT::BuildType>::value && !std::is_same<Fp4, typename NanoLeafT::BuildType>::value && !std::is_same<Fp8, typename NanoLeafT::BuildType>::value && !std::is_same<Fp16,typename NanoLeafT::BuildType>::value && !std::is_same<FpN, typename NanoLeafT::BuildType>::value, typename NanoToOpenVDB<T>::OpenNode0*>::type nanovdb::NanoToOpenVDB< NanoBuildT >::process ( const NanoLeafT *  srcNode)
inline

Definition at line 226 of file NanoToOpenVDB.h.

template<typename NanoBuildT>
template<typename NanoLeafT >
std::enable_if<std::is_same<Fp4, typename NanoLeafT::BuildType>::value || std::is_same<Fp8, typename NanoLeafT::BuildType>::value || std::is_same<Fp16,typename NanoLeafT::BuildType>::value || std::is_same<FpN, typename NanoLeafT::BuildType>::value, typename NanoToOpenVDB<T>::OpenNode0*>::type nanovdb::NanoToOpenVDB< NanoBuildT >::process ( const NanoLeafT *  srcNode)
inline

Definition at line 251 of file NanoToOpenVDB.h.

template<typename NanoBuildT>
template<typename NanoLeafT >
std::enable_if<std::is_same<ValueMask, typename NanoLeafT::BuildType>::value, typename NanoToOpenVDB<T>::OpenNode0*>::type nanovdb::NanoToOpenVDB< NanoBuildT >::process ( const NanoLeafT *  srcNode)
inline

Definition at line 272 of file NanoToOpenVDB.h.

template<typename NanoBuildT>
template<typename NanoLeafT >
std::enable_if<std::is_same<bool, typename NanoLeafT::BuildType>::value, typename NanoToOpenVDB<T>::OpenNode0*>::type nanovdb::NanoToOpenVDB< NanoBuildT >::process ( const NanoLeafT *  srcNode)
inline

Definition at line 286 of file NanoToOpenVDB.h.

template<typename NanoBuildT>
template<typename SrcNodeT , typename DstNodeT >
DstNodeT* nanovdb::NanoToOpenVDB< NanoBuildT >::processNode ( const SrcNodeT *  srcNode)

Definition at line 183 of file NanoToOpenVDB.h.


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