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 <openvdb/Types.h>
template<typename AValueType, typename BValueType = AValueType>
class openvdb::v10_0::CombineArgs< AValueType, BValueType >
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.
- See also
- openvdb/tree/Tree.h for usage information.
Setter methods return references to this object, to facilitate the following usage:
This struct collects both input and output arguments to "grid combiner" functors used with the tree::...
Definition: Types.h:530
CombineArgs & setARef(const AValueType &a)
Redirect the A value to a new external source.
Definition: Types.h:582
CombineArgs & setBIsActive(bool b)
Set the active state of the B value.
Definition: Types.h:598
CombineArgs & setBRef(const BValueType &b)
Redirect the B value to a new external source.
Definition: Types.h:584
CombineArgs & setAIsActive(bool b)
Set the active state of the A value.
Definition: Types.h:596
◆ AValueT
◆ BValueT
◆ CombineArgs() [1/3]
◆ CombineArgs() [2/3]
CombineArgs |
( |
const AValueType & |
a, |
|
|
const BValueType & |
b, |
|
|
AValueType & |
result, |
|
|
bool |
aOn = false , |
|
|
bool |
bOn = false |
|
) |
| |
|
inline |
Use this constructor when the result value is stored externally.
◆ CombineArgs() [3/3]
CombineArgs |
( |
const AValueType & |
a, |
|
|
const BValueType & |
b, |
|
|
bool |
aOn = false , |
|
|
bool |
bOn = false |
|
) |
| |
|
inline |
Use this constructor when the result value should be stored in this struct.
◆ a()
const AValueType & a |
( |
| ) |
const |
|
inline |
◆ aIsActive()
- Returns
- true if the A value is active
◆ b()
const BValueType & b |
( |
| ) |
const |
|
inline |
◆ bIsActive()
- Returns
- true if the B value is active
◆ result() [1/2]
◆ result() [2/2]
const AValueType & result |
( |
| ) |
const |
|
inline |
◆ resultIsActive()
bool resultIsActive |
( |
| ) |
const |
|
inline |
- Returns
- true if the output value is active
◆ setAIsActive()
Set the active state of the A value.
◆ setARef()
Redirect the A value to a new external source.
◆ setBIsActive()
Set the active state of the B value.
◆ setBRef()
Redirect the B value to a new external source.
◆ setResult()
◆ setResultIsActive()
Set the active state of the output value.
◆ setResultRef()
Redirect the result value to a new external destination.
◆ updateResultActive()
void updateResultActive |
( |
| ) |
|
|
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().
◆ mAIsActive
◆ mAValPtr
const AValueType* mAValPtr |
|
protected |
◆ mBIsActive
◆ mBValPtr
const BValueType* mBValPtr |
|
protected |
◆ mResultIsActive
◆ mResultVal
◆ mResultValPtr
AValueType* mResultValPtr |
|
protected |