HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfCopySpecsValueEdit Class Reference

#include <copyUtils.h>

Public Types

using EditFunction = std::function< void(const SdfLayerHandle &, const SdfPath &)>
 

Public Member Functions

 SdfCopySpecsValueEdit (const EditFunction &edit)
 
const EditFunctionGetEditFunction () const
 
bool operator== (const SdfCopySpecsValueEdit &rhs) const
 
bool operator!= (const SdfCopySpecsValueEdit &rhs) const
 

Detailed Description

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.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

SdfCopySpecsValueEdit::SdfCopySpecsValueEdit ( const EditFunction edit)
inlineexplicit

Definition at line 124 of file copyUtils.h.

Member Function Documentation

const EditFunction& SdfCopySpecsValueEdit::GetEditFunction ( ) const
inline

Definition at line 125 of file copyUtils.h.

bool SdfCopySpecsValueEdit::operator!= ( const SdfCopySpecsValueEdit rhs) const
inline

Definition at line 130 of file copyUtils.h.

bool SdfCopySpecsValueEdit::operator== ( const SdfCopySpecsValueEdit rhs) const
inline

SdfCopySpecsValueEdit objects are not comparable, but must provide operator== to be stored in a VtValue.

Definition at line 129 of file copyUtils.h.


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