HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType > Class Template Reference

Functor-based class used to extract data from a dense grid, at the index-space intersection with a supplied mask in the form of a sparse tree. The extractSparseTreeWithMask function wraps this class. More...

#include <DenseSparseTools.h>

Public Types

typedef DSConverter< DenseType,
MaskTreeType >::Type 
_ResultTreeType
 
typedef _ResultTreeType ResultTreeType
 
typedef
ResultTreeType::LeafNodeType 
ResultLeafNodeType
 
typedef ResultTreeType::ValueType ResultValueType
 
typedef ResultValueType DenseValueType
 
typedef
ResultTreeType::template
ValueConverter< ValueMask >
::Type 
MaskTree
 
typedef MaskTree::LeafCIter MaskLeafCIter
 
typedef std::vector< const
typename
MaskTree::LeafNodeType * > 
MaskLeafVec
 

Public Member Functions

 SparseMaskedExtractor (const DenseType &dense, const ResultValueType &background, const MaskLeafVec &leafVec)
 
 SparseMaskedExtractor (const SparseMaskedExtractor &other, tbb::split)
 
ResultTreeType::Ptr extract (bool threaded=true)
 
void operator() (const tbb::blocked_range< size_t > &range)
 
void join (SparseMaskedExtractor &rhs)
 

Detailed Description

template<typename DenseType, typename MaskTreeType>
class openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >

Functor-based class used to extract data from a dense grid, at the index-space intersection with a supplied mask in the form of a sparse tree. The extractSparseTreeWithMask function wraps this class.

Definition at line 440 of file DenseSparseTools.h.

Member Typedef Documentation

template<typename DenseType , typename MaskTreeType >
typedef DSConverter<DenseType, MaskTreeType>::Type openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::_ResultTreeType

Definition at line 444 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
typedef ResultValueType openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::DenseValueType

Definition at line 448 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
typedef MaskTree::LeafCIter openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::MaskLeafCIter

Definition at line 451 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
typedef std::vector<const typename MaskTree::LeafNodeType*> openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::MaskLeafVec

Definition at line 452 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
typedef ResultTreeType::template ValueConverter<ValueMask>::Type openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::MaskTree

Definition at line 450 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
typedef ResultTreeType::LeafNodeType openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::ResultLeafNodeType

Definition at line 446 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
typedef _ResultTreeType openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::ResultTreeType

Definition at line 445 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
typedef ResultTreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::ResultValueType

Definition at line 447 of file DenseSparseTools.h.

Constructor & Destructor Documentation

template<typename DenseType , typename MaskTreeType >
openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::SparseMaskedExtractor ( const DenseType &  dense,
const ResultValueType background,
const MaskLeafVec leafVec 
)
inline

Definition at line 455 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::SparseMaskedExtractor ( const SparseMaskedExtractor< DenseType, MaskTreeType > &  other,
tbb::split   
)
inline

Definition at line 466 of file DenseSparseTools.h.

Member Function Documentation

template<typename DenseType , typename MaskTreeType >
ResultTreeType::Ptr openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::extract ( bool  threaded = true)
inline

Definition at line 471 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
void openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::join ( SparseMaskedExtractor< DenseType, MaskTreeType > &  rhs)
inline

Definition at line 580 of file DenseSparseTools.h.

template<typename DenseType , typename MaskTreeType >
void openvdb::OPENVDB_VERSION_NAME::tools::SparseMaskedExtractor< DenseType, MaskTreeType >::operator() ( const tbb::blocked_range< size_t > &  range)
inline

Definition at line 487 of file DenseSparseTools.h.


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