7 #ifndef PXR_USD_PCP_LAYER_RELOCATES_EDIT_BUILDER_H
8 #define PXR_USD_PCP_LAYER_RELOCATES_EDIT_BUILDER_H
61 const PcpLayerStackPtr &layerStack,
62 const SdfLayerHandle &addNewRelocatesLayer =
nullptr);
137 std::string *whyNot =
nullptr);
154 std::string *whyNot =
nullptr);
184 void _UpdateExistingRelocates(
189 mutable std::optional<SdfRelocatesMap> _relocatesMap;
193 size_t _editForNewRelocatesIndex = ~0;
209 #endif // PXR_USD_PCP_LAYER_RELOCATES_EDIT_BUILDER_H
bool Pcp_ModifyRelocates(SdfRelocates *relocates, const SdfPath &oldPath, const SdfPath &newPath)
std::map< SdfPath, SdfPath > SdfRelocatesMap
A map of source SdfPaths to target SdfPaths for relocation.
PCP_API PcpLayerRelocatesEditBuilder(const PcpLayerStackPtr &layerStack, const SdfLayerHandle &addNewRelocatesLayer=nullptr)
std::set< SdfHandleTo< SdfLayer >::Handle > SdfLayerHandleSet
PXR_NAMESPACE_OPEN_SCOPE SDF_DECLARE_HANDLES(SdfLayer)
PCP_API const SdfRelocatesMap & GetEditedRelocatesMap() const
Returns a map of relocates composed from the edited layer relocates.
PCP_API LayerRelocatesEdits GetEdits() const
GLsizei GLsizei GLchar * source
PCP_API bool RemoveRelocate(const SdfPath &sourcePath, std::string *whyNot=nullptr)
std::pair< SdfLayerHandle, SdfRelocates > LayerRelocatesEdit
std::vector< PcpErrorBasePtr > PcpErrorVector
PCP_API bool Relocate(const SdfPath &sourcePath, const SdfPath &targetPath, std::string *whyNot=nullptr)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
TF_DECLARE_WEAK_PTRS(PcpLayerStack)
#define PXR_NAMESPACE_CLOSE_SCOPE
std::vector< SdfRelocate > SdfRelocates
A vector of relocation source path to target path pairs.
std::vector< LayerRelocatesEdit > LayerRelocatesEdits
List of relocates edits to perform on all layers.