HDK
|
#include <stageEdit.h>
Static Public Member Functions | |
static void | GetPrimPathAndEditFromVariantsPath (const SdfPath &pathWithVariants, SdfPath &primPath, GusdStageEditPtr &edit) |
Additional Inherited Members | |
Protected Member Functions inherited from UT_IntrusiveRefCounter< GusdStageEdit > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Basic stage edit covering common types of edits.
This class provides a single point for describing all of the common types of edits so that, at least in the typical cases, code pulling data from the stage cache are using a common type of edit.
Note that when applying variant edits, variant selection paths should be stripped of any trailing path components following the variant selection. For example, rather than creating an edit applying variant selection /foo{a=b}bar
, it is better to use path /foo{a=b}
as the variant selection path. The GetPrimPathAndEditFromVariantsPath helper automatically strips all such trailing path components.
Definition at line 57 of file stageEdit.h.
bool GusdStageEdit::Apply | ( | const SdfLayerHandle & | layer, |
UT_ErrorSeverity | sev = UT_ERROR_ABORT |
||
) | const |
bool GusdStageEdit::Apply | ( | const UsdStagePtr & | stage, |
UT_ErrorSeverity | sev = UT_ERROR_ABORT |
||
) | const |
size_t GusdStageEdit::GetHash | ( | ) | const |
|
inline |
Definition at line 88 of file stageEdit.h.
|
inline |
Definition at line 91 of file stageEdit.h.
|
static |
Extract a prim path and an edit from a path string, which may include variant selections. This covers the common case where a single parameter provides a prim path, which may include variant selections (Eg., as /foo{variant=sel}bar).
Definition at line 82 of file stageEdit.h.
Definition at line 85 of file stageEdit.h.
bool GusdStageEdit::operator== | ( | const GusdStageEdit & | o | ) | const |