HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT > Struct Template Reference

Check that the magnitude of a value, a, is close to a fixed magnitude, b, given a fixed tolerance c. That is | |a| - |b| | <= c. More...

#include <Diagnostics.h>

Public Types

typedef VecTraits< typename
GridT::ValueType >
::ElementType 
ElementType
 
typedef TreeIterT TileIterT
 
typedef tree::IterTraits
< typename TreeIterT::NodeT,
typename TreeIterT::ValueIterT >
::template NodeConverter
< typename
GridT::TreeType::LeafNodeType >
::Type 
VoxelIterT
 

Public Member Functions

 CheckMagnitude (const ElementType &a, const ElementType &t=math::Tolerance< ElementType >::value())
 Default constructor. More...
 
bool operator() (const ElementType &v) const
 
template<typename T >
hboost::enable_if_c< VecTraits
< T >::IsVec, bool >::type 
operator() (const T &v) const
 Return true if any of the vector components are infinite. More...
 
bool operator() (const TreeIterT &iter) const
 Return true if the tile at the iterator location is infinite. More...
 
bool operator() (const VoxelIterT &iter) const
 Return true if the tile at the iterator location is infinite. More...
 
std::string str () const
 Return a string describing a failed check. More...
 

Public Attributes

const ElementType absVal
 
const ElementType tolVal
 

Detailed Description

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
struct openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >

Check that the magnitude of a value, a, is close to a fixed magnitude, b, given a fixed tolerance c. That is | |a| - |b| | <= c.

Definition at line 243 of file Diagnostics.h.

Member Typedef Documentation

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
typedef VecTraits<typename GridT::ValueType>::ElementType openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::ElementType

Definition at line 245 of file Diagnostics.h.

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
typedef TreeIterT openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::TileIterT

Definition at line 246 of file Diagnostics.h.

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
typedef tree::IterTraits<typename TreeIterT::NodeT, typename TreeIterT::ValueIterT>::template NodeConverter<typename GridT::TreeType::LeafNodeType>::Type openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::VoxelIterT

Definition at line 248 of file Diagnostics.h.

Constructor & Destructor Documentation

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::CheckMagnitude ( const ElementType a,
const ElementType t = math::Tolerance<ElementType>::value() 
)
inline

Default constructor.

Definition at line 251 of file Diagnostics.h.

Member Function Documentation

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
bool openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::operator() ( const ElementType v) const
inline

Return true if the magnitude of the value is not approximately equal to totVal.

Definition at line 259 of file Diagnostics.h.

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
template<typename T >
hboost::enable_if_c<VecTraits<T>::IsVec, bool>::type openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::operator() ( const T &  v) const
inline

Return true if any of the vector components are infinite.

Definition at line 266 of file Diagnostics.h.

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
bool openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::operator() ( const TreeIterT &  iter) const
inline

Return true if the tile at the iterator location is infinite.

Definition at line 273 of file Diagnostics.h.

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
bool openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::operator() ( const VoxelIterT iter) const
inline

Return true if the tile at the iterator location is infinite.

Definition at line 276 of file Diagnostics.h.

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
std::string openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::str ( ) const
inline

Return a string describing a failed check.

Definition at line 279 of file Diagnostics.h.

Member Data Documentation

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
const ElementType openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::absVal

Definition at line 286 of file Diagnostics.h.

template<typename GridT, typename TreeIterT = typename GridT::ValueOffCIter>
const ElementType openvdb::OPENVDB_VERSION_NAME::tools::CheckMagnitude< GridT, TreeIterT >::tolVal

Definition at line 286 of file Diagnostics.h.


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