HDK
|
Class that performs various types of checks on fog volumes. More...
#include <Diagnostics.h>
Public Types | |
using | ValueType = typename GridType::ValueType |
using | MaskType = typename GridType::template ValueConverter< bool >::Type |
Public Member Functions | |
CheckFogVolume (const GridType &grid) | |
Index64 | valueCount () const |
Return the number of values (i.e. background, tiles or voxels) that have failed one or more checks. More... | |
Index64 | failureCount () const |
Return total number of failed checks. More... | |
const GridType & | grid () const |
Return a const reference to the grid. More... | |
void | clear () |
Clear the mask and error counter. More... | |
std::string | checkClassType () const |
Return a nonempty message if the grid's class is a level set. More... | |
std::string | checkBackground () const |
Return a nonempty message if the background value is not zero. More... | |
std::string | checkFinite (bool updateMask=false) |
Return a nonempty message if any of the values are not finite. i.e. NaN or inf. More... | |
std::string | checkInactiveValues (bool updateMask=false) |
Return a nonempty message if any of the inactive values are not zero. More... | |
std::string | checkRange (bool updateMask=false) |
Return a nonempty message if the active voxel values are out-of-range, i.e. not in the range [0,1]. More... | |
std::string | check (size_t n=6, bool updateMask=false) |
Return a nonempty message if an error or issue is detected. Only runs tests with a number lower than or equal to n, where: More... | |
MaskType::ConstPtr | mask () const |
Return a boolean mask of all the values (i.e. tiles and/or voxels) that have failed one or more checks. More... | |
MaskType::Ptr | mask () |
Return a boolean mask of all the values (i.e. tiles and/or voxels) that have failed one or more checks. More... | |
Static Public Member Functions | |
static std::string | checkValueType () |
Return a nonempty message if the grid's value type is a floating point. More... | |
Class that performs various types of checks on fog volumes.
Definition at line 962 of file Diagnostics.h.
using openvdb::OPENVDB_VERSION_NAME::tools::CheckFogVolume< GridType >::MaskType = typename GridType::template ValueConverter<bool>::Type |
Definition at line 966 of file Diagnostics.h.
using openvdb::OPENVDB_VERSION_NAME::tools::CheckFogVolume< GridType >::ValueType = typename GridType::ValueType |
Definition at line 965 of file Diagnostics.h.
|
inline |
Definition at line 968 of file Diagnostics.h.
|
inline |
Return a nonempty message if an error or issue is detected. Only runs tests with a number lower than or equal to n, where:
Fast checks 1: value type is floating point 2: has FOG volume class type 3: background value is zero
Slower checks 4: all the values are finite, i.e not NaN or infinite 5: inactive values are zero 6: active values are in the range [0,1]
Definition at line 1064 of file Diagnostics.h.
|
inline |
Return a nonempty message if the background value is not zero.
Definition at line 1014 of file Diagnostics.h.
|
inline |
Return a nonempty message if the grid's class is a level set.
Definition at line 1005 of file Diagnostics.h.
|
inline |
Return a nonempty message if any of the values are not finite. i.e. NaN or inf.
Definition at line 1027 of file Diagnostics.h.
|
inline |
Return a nonempty message if any of the inactive values are not zero.
Definition at line 1036 of file Diagnostics.h.
|
inline |
Return a nonempty message if the active voxel values are out-of-range, i.e. not in the range [0,1].
Definition at line 1046 of file Diagnostics.h.
|
inlinestatic |
Return a nonempty message if the grid's value type is a floating point.
Definition at line 996 of file Diagnostics.h.
|
inline |
Clear the mask and error counter.
Definition at line 991 of file Diagnostics.h.
|
inline |
Return total number of failed checks.
Definition at line 985 of file Diagnostics.h.
|
inline |
Return a const reference to the grid.
Definition at line 988 of file Diagnostics.h.
|
inline |
Return a boolean mask of all the values (i.e. tiles and/or voxels) that have failed one or more checks.
Definition at line 974 of file Diagnostics.h.
|
inline |
Return a boolean mask of all the values (i.e. tiles and/or voxels) that have failed one or more checks.
Definition at line 975 of file Diagnostics.h.
|
inline |
Return the number of values (i.e. background, tiles or voxels) that have failed one or more checks.
Definition at line 980 of file Diagnostics.h.