OpenVDB 11.0.0
|
Checks a value against a maximum. More...
#include </private/tmp/openvdb-20240426-83507-bnu7c4/openvdb-11.0.0/openvdb/openvdb/tools/Diagnostics.h>
Public Types | |
using | ElementType = typename VecTraits<typename GridT::ValueType>::ElementType |
using | TileIterT = TreeIterT |
using | VoxelIterT |
Public Member Functions | |
CheckMax (const ElementType &_max) | |
Constructor taking a maximum to be tested against. | |
bool | operator() (const ElementType &v) const |
Return true if the value is larger than max. | |
template<typename T > | |
std::enable_if< VecTraits< T >::IsVec, bool >::type | operator() (const T &v) const |
Return true if any of the vector components are larger than max. | |
bool | operator() (const TreeIterT &iter) const |
Return true if the tile at the iterator location is larger than max. | |
bool | operator() (const VoxelIterT &iter) const |
Return true if the voxel at the iterator location is larger than max. | |
std::string | str () const |
Return a string describing a failed check. | |
Public Attributes | |
const ElementType | maxVal |
Checks a value against a maximum.
using ElementType = typename VecTraits<typename GridT::ValueType>::ElementType |
using TileIterT = TreeIterT |
using VoxelIterT |
|
inline |
Constructor taking a maximum to be tested against.
|
inline |
Return true if the value is larger than max.
|
inline |
Return true if any of the vector components are larger than max.
|
inline |
Return true if the tile at the iterator location is larger than max.
|
inline |
Return true if the voxel at the iterator location is larger than max.
|
inline |
Return a string describing a failed check.
const ElementType maxVal |