HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_RevertOperation< HAS_MIN, HAS_MAX, HAS_REVERT > Class Template Reference

This class works as a functor to clamp/revert values. More...

#include <GAS_Limit.h>

Public Member Functions

 GAS_RevertOperation (bool useMinField, float minValue, bool useMaxField, float maxValue, bool useRevertField, float revertValue, float blendwidth)
 
float operator() (float v, float mv, float Mv, float rv) const
 

Static Public Attributes

static constexpr float MINBLEND = 1e-3
 Blend widths below this amount get clamped to 0. More...
 

Detailed Description

template<bool HAS_MIN, bool HAS_MAX, bool HAS_REVERT>
class GAS_RevertOperation< HAS_MIN, HAS_MAX, HAS_REVERT >

This class works as a functor to clamp/revert values.

Definition at line 103 of file GAS_Limit.h.

Constructor & Destructor Documentation

template<bool HAS_MIN, bool HAS_MAX, bool HAS_REVERT>
GAS_RevertOperation< HAS_MIN, HAS_MAX, HAS_REVERT >::GAS_RevertOperation ( bool  useMinField,
float  minValue,
bool  useMaxField,
float  maxValue,
bool  useRevertField,
float  revertValue,
float  blendwidth 
)
inline

Definition at line 109 of file GAS_Limit.h.

Member Function Documentation

template<bool HAS_MIN, bool HAS_MAX, bool HAS_REVERT>
float GAS_RevertOperation< HAS_MIN, HAS_MAX, HAS_REVERT >::operator() ( float  v,
float  mv,
float  Mv,
float  rv 
) const
inline

Returns the limited/reverted value. v is the current voxel value, mv is the voxel value of the minimum field, Mv is the voxel value of the maximum field, rv is the voxel value of the revert field. Depending on the template instantiations and parameters passed to the constructor, some of these operations may be skipped or their voxel values replaced by constant bounds.

Definition at line 129 of file GAS_Limit.h.

Member Data Documentation

template<bool HAS_MIN, bool HAS_MAX, bool HAS_REVERT>
constexpr float GAS_RevertOperation< HAS_MIN, HAS_MAX, HAS_REVERT >::MINBLEND = 1e-3
static

Blend widths below this amount get clamped to 0.

Definition at line 107 of file GAS_Limit.h.


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