HDK
|
Checks the norm of the gradient against a range, i.e., |∇Φ| ∈ [min, max]. More...
#include <Diagnostics.h>
Public Types | |
using | ValueType = typename GridT::ValueType |
using | TileIterT = TreeIterT |
using | VoxelIterT = typename tree::IterTraits< typename TreeIterT::NodeT, typename TreeIterT::ValueIterT >::template NodeConverter< typename GridT::TreeType::LeafNodeType >::Type |
using | AccT = typename GridT::ConstAccessor |
Public Member Functions | |
CheckNormGrad (const GridT &grid, const ValueType &_min, const ValueType &_max) | |
Constructor taking a grid and a range to be tested against. More... | |
CheckNormGrad (const CheckNormGrad &other) | |
bool | operator() (const ValueType &v) const |
Return true if the value is smaller than min or larger than max. More... | |
bool | operator() (const TreeIterT &) const |
Return true if zero is outside the range. More... | |
bool | operator() (const VoxelIterT &iter) const |
Return true if the norm of the gradient at a voxel location of the iterator is out of range. More... | |
std::string | str () const |
Return a string describing a failed check. More... | |
Public Attributes | |
AccT | acc |
const ValueType | invdx2 |
const ValueType | minVal2 |
const ValueType | maxVal2 |
Checks the norm of the gradient against a range, i.e., |∇Φ| ∈ [min, max].
Definition at line 428 of file Diagnostics.h.
using openvdb::OPENVDB_VERSION_NAME::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >::AccT = typename GridT::ConstAccessor |
Definition at line 437 of file Diagnostics.h.
using openvdb::OPENVDB_VERSION_NAME::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >::TileIterT = TreeIterT |
Definition at line 433 of file Diagnostics.h.
using openvdb::OPENVDB_VERSION_NAME::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >::ValueType = typename GridT::ValueType |
Definition at line 430 of file Diagnostics.h.
using openvdb::OPENVDB_VERSION_NAME::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >::VoxelIterT = typename tree::IterTraits<typename TreeIterT::NodeT, typename TreeIterT::ValueIterT> ::template NodeConverter< typename GridT::TreeType::LeafNodeType>::Type |
Definition at line 436 of file Diagnostics.h.
|
inline |
Constructor taking a grid and a range to be tested against.
Definition at line 440 of file Diagnostics.h.
|
inline |
Definition at line 454 of file Diagnostics.h.
|
inline |
Return true if the value is smaller than min or larger than max.
Definition at line 463 of file Diagnostics.h.
|
inline |
Return true if zero is outside the range.
Definition at line 467 of file Diagnostics.h.
|
inline |
Return true if the norm of the gradient at a voxel location of the iterator is out of range.
Definition at line 471 of file Diagnostics.h.
|
inline |
Return a string describing a failed check.
Definition at line 478 of file Diagnostics.h.
AccT openvdb::OPENVDB_VERSION_NAME::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >::acc |
Definition at line 485 of file Diagnostics.h.
const ValueType openvdb::OPENVDB_VERSION_NAME::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >::invdx2 |
Definition at line 486 of file Diagnostics.h.
const ValueType openvdb::OPENVDB_VERSION_NAME::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >::maxVal2 |
Definition at line 486 of file Diagnostics.h.
const ValueType openvdb::OPENVDB_VERSION_NAME::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >::minVal2 |
Definition at line 486 of file Diagnostics.h.