HDK
|
#include <copyUtils.h>
Public Types | |
using | EditFunction = std::function< void(const SdfLayerHandle &, const SdfPath &)> |
Public Member Functions | |
SdfCopySpecsValueEdit (const EditFunction &edit) | |
const EditFunction & | GetEditFunction () const |
bool | operator== (const SdfCopySpecsValueEdit &rhs) const |
bool | operator!= (const SdfCopySpecsValueEdit &rhs) const |
Value containing an editing operation for SdfCopySpecs.
The SdfShouldCopyValueFn callback allows users to return a value to copy into the destination spec via the valueToCopy
parameter. However, there may be cases where it would be more efficient to perform incremental edits using specific SdfLayer API instead.
To accommodate this, consumers may provide a callback that applies a scene description edit in valueToCopy
via an SdfCopySpecsValueEdit object.
Definition at line 116 of file copyUtils.h.
using SdfCopySpecsValueEdit::EditFunction = std::function<void(const SdfLayerHandle&, const SdfPath&)> |
Callback to apply a scene description edit to the specified layer and spec path.
Definition at line 122 of file copyUtils.h.
|
inlineexplicit |
Definition at line 124 of file copyUtils.h.
|
inline |
Definition at line 125 of file copyUtils.h.
|
inline |
Definition at line 130 of file copyUtils.h.
|
inline |
SdfCopySpecsValueEdit objects are not comparable, but must provide operator== to be stored in a VtValue.
Definition at line 129 of file copyUtils.h.