|
OpenVDB
4.0.2
|
This struct collects both input and output arguments to "grid combiner" functors used with the tree::TypedGrid::combineExtended() and combine2Extended() methods. AValueType and BValueType are the value types of the two grids being combined. More...
#include <Types.h>
Public Types | |
| using | AValueT = AValueType |
| using | BValueT = BValueType |
Public Member Functions | |
| CombineArgs () | |
| CombineArgs (const AValueType &a, const BValueType &b, AValueType &result, bool aOn=false, bool bOn=false) | |
| Use this constructor when the result value is stored externally. More... | |
| CombineArgs (const AValueType &a, const BValueType &b, bool aOn=false, bool bOn=false) | |
| Use this constructor when the result value should be stored in this struct. More... | |
| const AValueType & | a () const |
| Get the A input value. More... | |
| const BValueType & | b () const |
| Get the B input value. More... | |
| CombineArgs & | setResult (const AValueType &val) |
| Set the output value. More... | |
| CombineArgs & | setARef (const AValueType &a) |
| Redirect the A value to a new external source. More... | |
| CombineArgs & | setBRef (const BValueType &b) |
| Redirect the B value to a new external source. More... | |
| CombineArgs & | setResultRef (AValueType &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 AValueType & | result () const |
| Get the output value. More... | |
| AValueType & | result () |
| Get the output value. More... | |
Protected Member Functions | |
| void | updateResultActive () |
Protected Attributes | |
| const AValueType * | mAValPtr |
| const BValueType * | mBValPtr |
| AValueType | mResultVal |
| AValueType * | 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. AValueType and BValueType are the value types of the two grids being combined.
Setter methods return references to this object, to facilitate the following usage:
| using AValueT = AValueType |
| using BValueT = BValueType |
|
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 |
1.8.13