7#ifndef PXR_USD_USD_REFERENCES_H
8#define PXR_USD_USD_REFERENCES_H
11#include "pxr/usd/usd/api.h"
16#include "pxr/usd/sdf/path.h"
19PXR_NAMESPACE_OPEN_SCOPE
265 explicit operator bool() {
return bool(_prim); }
271PXR_NAMESPACE_CLOSE_SCOPE
Represents a time offset and scale between layers.
A path value used to locate objects in layers or scenegraphs.
Represents a reference and all its meta data.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
UsdReferences provides an interface to authoring and introspecting references in Usd.
USD_API bool AddInternalReference(const SdfPath &primPath, const SdfLayerOffset &layerOffset=SdfLayerOffset(), UsdListPosition position=UsdListPositionBackOfPrependList)
Add an internal reference to the specified prim.
USD_API bool ClearReferences()
Removes the authored reference listOp edits at the current EditTarget.
USD_API bool AddReference(const std::string &identifier, const SdfPath &primPath, const SdfLayerOffset &layerOffset=SdfLayerOffset(), UsdListPosition position=UsdListPositionBackOfPrependList)
This is an overloaded member function, provided for convenience. It differs from the above function o...
USD_API bool RemoveReference(const SdfReference &ref)
Removes the specified reference from the references listOp at the current EditTarget.
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...
USD_API bool AddReference(const std::string &identifier, const SdfLayerOffset &layerOffset=SdfLayerOffset(), UsdListPosition position=UsdListPositionBackOfPrependList)
This is an overloaded member function, provided for convenience. It differs from the above function o...
USD_API bool SetReferences(const SdfReferenceVector &items)
Explicitly set the references, potentially blocking weaker opinions that add or remove items.
const UsdPrim & GetPrim() const
Return the prim this object is bound to.
UsdPrim GetPrim()
This is an overloaded member function, provided for convenience. It differs from the above function o...
UsdListPosition
Specifies a position to add items to lists.
@ UsdListPositionBackOfPrependList
The position at the back of the prepend list.