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

Functor-based class used to extract data that satisfies some criteria defined by the embedded OpType functor. The extractSparseTree function wraps this class. More...

#include <DenseSparseTools.h>

Public Types

using Index = openvdb::math::Coord::ValueType
 
using DenseValueType = typename DenseType::ValueType
 
using ResultTreeType = typename OpType::ResultTreeType
 
using ResultValueType = typename ResultTreeType::ValueType
 
using ResultLeafNodeType = typename ResultTreeType::LeafNodeType
 
using MaskTree = typename ResultTreeType::template ValueConverter< ValueMask >::Type
 
using Range3d = tbb::blocked_range3d< Index, Index, Index >
 

Public Member Functions

 SparseExtractor (const DenseType &dense, const OpType &functor, const ResultValueType background)
 
 SparseExtractor (const DenseType &dense, const openvdb::math::CoordBBox &bbox, const OpType &functor, const ResultValueType background)
 
 SparseExtractor (SparseExtractor &other, tbb::split)
 
ResultTreeType::Ptr extract (bool threaded=true)
 
void operator() (const Range3d &range)
 
void join (SparseExtractor &rhs)
 

Detailed Description

template<typename OpType, typename DenseType>
class openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >

Functor-based class used to extract data that satisfies some criteria defined by the embedded OpType functor. The extractSparseTree function wraps this class.

Definition at line 173 of file DenseSparseTools.h.

Member Typedef Documentation

template<typename OpType, typename DenseType>
using openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::DenseValueType = typename DenseType::ValueType

Definition at line 178 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
using openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::Index = openvdb::math::Coord::ValueType

Definition at line 176 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
using openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::MaskTree = typename ResultTreeType::template ValueConverter<ValueMask>::Type

Definition at line 182 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
using openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::Range3d = tbb::blocked_range3d<Index, Index, Index>

Definition at line 184 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
using openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::ResultLeafNodeType = typename ResultTreeType::LeafNodeType

Definition at line 181 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
using openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::ResultTreeType = typename OpType::ResultTreeType

Definition at line 179 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
using openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::ResultValueType = typename ResultTreeType::ValueType

Definition at line 180 of file DenseSparseTools.h.

Constructor & Destructor Documentation

template<typename OpType, typename DenseType>
openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::SparseExtractor ( const DenseType &  dense,
const OpType &  functor,
const ResultValueType  background 
)
inline

Definition at line 196 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::SparseExtractor ( const DenseType &  dense,
const openvdb::math::CoordBBox &  bbox,
const OpType &  functor,
const ResultValueType  background 
)
inline

Definition at line 205 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::SparseExtractor ( SparseExtractor< OpType, DenseType > &  other,
tbb::split   
)
inline

Definition at line 221 of file DenseSparseTools.h.

Member Function Documentation

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

Definition at line 229 of file DenseSparseTools.h.

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

Definition at line 377 of file DenseSparseTools.h.

template<typename OpType, typename DenseType>
void openvdb::OPENVDB_VERSION_NAME::tools::SparseExtractor< OpType, DenseType >::operator() ( const Range3d range)
inline

Definition at line 271 of file DenseSparseTools.h.


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