24 #ifndef PXR_USD_USD_REFERENCES_H 25 #define PXR_USD_USD_REFERENCES_H 28 #include "pxr/usd/usd/api.h" 33 #include "pxr/usd/sdf/path.h" 36 PXR_NAMESPACE_OPEN_SCOPE
282 explicit operator bool() {
return bool(_prim); }
288 PXR_NAMESPACE_CLOSE_SCOPE
290 #endif // PXR_USD_USD_REFERENCES_H const UsdPrim & GetPrim() const
Return the prim this object is bound to.
UsdListPosition
Specifies a position to add items to lists.
USD_API bool RemoveReference(const SdfReference &ref)
Removes the specified reference from the references listOp at the current EditTarget.
USD_API bool ClearReferences()
Removes the authored reference listOp edits at the current EditTarget.
UsdReferences provides an interface to authoring and introspecting references in Usd.
USD_API bool AddReference(const SdfReference &ref, UsdListPosition position=UsdListPositionBackOfPrependList)
Adds a reference to the reference listOp at the current EditTarget, in the position specified by posi...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
USD_API bool SetReferences(const SdfReferenceVector &items)
Explicitly set the references, potentially blocking weaker opinions that add or remove items.
A path value used to locate objects in layers or scenegraphs.
Represents a reference and all its meta data.
USD_API bool AddInternalReference(const SdfPath &primPath, const SdfLayerOffset &layerOffset=SdfLayerOffset(), UsdListPosition position=UsdListPositionBackOfPrependList)
Add an internal reference to the specified prim.
The position at the back of the prepend list.
Represents a time offset and scale between layers.