OpenVDB
1.2.0
|
This struct collects both input and output arguments to "grid combiner" functors used with the tree::TypedGrid::combineExtended() and combine2Extended() methods. ValueType is the value type of the two grids being combined. More...
#include <Types.h>
Public Types | |
typedef ValueType | ValueT |
Public Member Functions | |
CombineArgs () | |
CombineArgs (const ValueType &a, const ValueType &b, ValueType &result, bool aOn=false, bool bOn=false) | |
Use this constructor when the result value is stored externally. More... | |
CombineArgs (const ValueType &a, const ValueType &b, bool aOn=false, bool bOn=false) | |
Use this constructor when the result value should be stored in this struct. More... | |
const ValueType & | a () const |
Get the A input value. More... | |
const ValueType & | b () const |
Get the B input value. More... | |
CombineArgs & | setResult (const ValueType &val) |
Set the output value. More... | |
CombineArgs & | setARef (const ValueType &a) |
Redirect the A value to a new external source. More... | |
CombineArgs & | setBRef (const ValueType &b) |
Redirect the B value to a new external source. More... | |
CombineArgs & | setResultRef (ValueType &val) |
Redirect the result value to a new external destination. More... | |
bool | aIsActive () const |
bool | bIsActive () const |
bool | resultIsActive () const |
CombineArgs & | setAIsActive (bool b) |
Set the active state of the A value. More... | |
CombineArgs & | setBIsActive (bool b) |
Set the active state of the B value. More... | |
CombineArgs & | setResultIsActive (bool b) |
Set the active state of the output value. More... | |
const ValueType & | result () const |
Get the output value. More... | |
ValueType & | result () |
Get the output value. More... | |
Protected Member Functions | |
void | updateResultActive () |
Protected Attributes | |
const ValueType * | mAValPtr |
const ValueType * | mBValPtr |
ValueType | mResultVal |
ValueType * | mResultValPtr |
bool | mAIsActive |
bool | mBIsActive |
bool | mResultIsActive |
This struct collects both input and output arguments to "grid combiner" functors used with the tree::TypedGrid::combineExtended() and combine2Extended() methods. ValueType is the value type of the two grids being combined.
Setter methods return references to this object, to facilitate the following usage:
typedef ValueType ValueT |
|
inline |
|
inline |
Use this constructor when the result value is stored externally.
|
inline |
Use this constructor when the result value should be stored in this struct.
|
inline |
Get the A input value.
|
inline |
|
inline |
Get the B input value.
|
inline |
|
inline |
Get the output value.
|
inline |
Get the output value.
|
inline |
|
inline |
Set the active state of the A value.
|
inline |
Redirect the A value to a new external source.
|
inline |
Set the active state of the B value.
|
inline |
Redirect the B value to a new external source.
|
inline |
Set the output value.
|
inline |
Set the active state of the output value.
|
inline |
Redirect the result value to a new external destination.
|
inlineprotected |
By default, the result value is active if either of the input values is active, but this behavior can be overridden by calling setResultIsActive().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |