HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT > Class Template Reference

Copy the values from a dense grid into an OpenVDB tree. More...

#include <Dense.h>

Public Types

using DenseT = _DenseT
 
using TreeT = _TreeT
 
using ValueT = typename TreeT::ValueType
 
using LeafT = typename TreeT::LeafNodeType
 
using AccessorT = tree::ValueAccessor< TreeT >
 

Public Member Functions

 CopyFromDense (const DenseT &dense, TreeT &tree, const ValueT &tolerance)
 
 CopyFromDense (const CopyFromDense &other)
 
void copy (bool serial=false)
 Copy values from the dense grid to the sparse tree. More...
 
void operator() (const tbb::blocked_range< size_t > &r) const
 Public method called by tbb::parallel_for. More...
 

Detailed Description

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
class openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >

Copy the values from a dense grid into an OpenVDB tree.

Values in the dense grid that are within a tolerance of the background value are truncated to inactive background voxels or tiles. This allows the tree to form a sparse representation of the dense grid.

Note
Since this class allocates leaf nodes concurrently it is recommended to use a scalable implementation of new like the one provided by TBB, rather than the mutex-protected standard library new.

Definition at line 471 of file Dense.h.

Member Typedef Documentation

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
using openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::AccessorT = tree::ValueAccessor<TreeT>

Definition at line 478 of file Dense.h.

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
using openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::DenseT = _DenseT

Definition at line 474 of file Dense.h.

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
using openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::LeafT = typename TreeT::LeafNodeType

Definition at line 477 of file Dense.h.

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
using openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::TreeT = _TreeT

Definition at line 475 of file Dense.h.

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
using openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::ValueT = typename TreeT::ValueType

Definition at line 476 of file Dense.h.

Constructor & Destructor Documentation

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::CopyFromDense ( const DenseT dense,
TreeT tree,
const ValueT tolerance 
)
inline

Definition at line 480 of file Dense.h.

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::CopyFromDense ( const CopyFromDense< _TreeT, _DenseT > &  other)
inline

Definition at line 488 of file Dense.h.

Member Function Documentation

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
void openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::copy ( bool  serial = false)
inline

Copy values from the dense grid to the sparse tree.

Definition at line 498 of file Dense.h.

template<typename _TreeT, typename _DenseT = Dense<typename _TreeT::ValueType>>
void openvdb::OPENVDB_VERSION_NAME::tools::CopyFromDense< _TreeT, _DenseT >::operator() ( const tbb::blocked_range< size_t > &  r) const
inline

Public method called by tbb::parallel_for.

Warning
Never call this method directly!

Definition at line 542 of file Dense.h.


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