7#ifndef PXR_USD_USD_INHERITS_H
8#define PXR_USD_USD_INHERITS_H
11#include "pxr/usd/usd/api.h"
16#include "pxr/usd/sdf/path.h"
18PXR_NAMESPACE_OPEN_SCOPE
77 explicit operator bool() {
return bool(_prim); }
87PXR_NAMESPACE_CLOSE_SCOPE
A path value used to locate objects in layers or scenegraphs.
Represents a prim description in an SdfLayer object.
A proxy class for applying listOp edits to the inherit paths list for a prim.
USD_API bool RemoveInherit(const SdfPath &primPath)
Removes the specified path from the inheritPaths listOp at the current EditTarget.
USD_API bool SetInherits(const SdfPathVector &items)
Explicitly set the inherited paths, potentially blocking weaker opinions that add or remove items,...
USD_API bool ClearInherits()
Removes the authored inheritPaths listOp edits at the current edit target.
USD_API SdfPathVector GetAllDirectInherits() const
Return all the paths in this prim's stage's local layer stack that would compose into this prim via d...
USD_API bool AddInherit(const SdfPath &primPath, UsdListPosition position=UsdListPositionBackOfPrependList)
Adds a path to the inheritPaths listOp at the current EditTarget, in the position specified by positi...
const UsdPrim & GetPrim() const
Return the prim this object is bound to.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
UsdListPosition
Specifies a position to add items to lists.
@ UsdListPositionBackOfPrependList
The position at the back of the prepend list.