24 #ifndef PXR_USD_PCP_CHANGES_H
25 #define PXR_USD_PCP_CHANGES_H
148 void Retain(
const PcpLayerStackRefPtr& layerStack);
158 std::set<SdfLayerRefPtr> _layers;
159 std::set<PcpLayerStackRefPtr> _layerStacks;
193 const SdfLayerHandle&
layer,
201 const SdfLayerHandle& srcLayer,
237 const SdfLayerHandle& changedLayer,
271 void Swap(PcpChanges& other);
302 typedef std::map<PcpCache*, PcpCacheChanges::PathEditMap> _RenameChanges;
318 void _Optimize()
const;
331 enum _SublayerChangeType {
339 const SdfLayerHandle& layer,
341 _SublayerChangeType changeType)
const;
347 _SublayerChangeType changeType)
const;
352 void _DidChangeSublayerAndLayerStacks(
const PcpCache* cache,
353 const PcpLayerStackPtrVector& stacks,
355 const SdfLayerHandle& sublayer,
356 _SublayerChangeType sublayerChange,
361 void _DidChangeSublayer(
const PcpCache* cache,
362 const PcpLayerStackPtrVector& layerStacks,
364 const SdfLayerHandle& sublayer,
365 _SublayerChangeType sublayerChange,
370 void _DidChangeLayerStack(
const PcpLayerStackPtr& layerStack,
371 bool requiresLayerStackChange,
372 bool requiresLayerStackOffsetsChange,
373 bool requiresSignificantChange);
379 void _DidChangeLayerStackRelocations(
381 const PcpLayerStackPtr & layerStack,
386 void _DidChangeLayerStackResolvedPath(
388 const PcpLayerStackPtr& layerStack,
394 void _DidChangeSpecStackInternal(
400 _RenameChanges _renameChanges;
406 #endif // PXR_USD_PCP_CHANGES_H
PCP_API void DidChange(const TfSpan< const PcpCache * > &caches, const SdfLayerChangeListVec &changes)
PXR_NAMESPACE_OPEN_SCOPE SDF_DECLARE_HANDLES(SdfLayer)
std::map< SdfPath, SdfPath > PathEditMap
PCP_API void DidMaybeFixSublayer(const PcpCache *cache, const SdfLayerHandle &layer, const std::string &assetPath)
SdfRelocatesMap newIncrementalRelocatesTargetToSource
SdfPathSet didChangePrims
PCP_API void DidChangeLayers(const PcpCache *cache)
std::map< SdfPath, SdfPath > SdfRelocatesMap
A map of source SdfPaths to target SdfPaths for relocation.
TF_DECLARE_WEAK_AND_REF_PTRS(PcpLayerStack)
PCP_API void Apply() const
Applies the changes to the layer stacks and caches.
PCP_API const CacheChanges & GetCacheChanges() const
Returns a map of all of the cache changes.
SdfPathVector newRelocatesPrimPaths
PCP_API const LayerStackChanges & GetLayerStackChanges() const
PCP_API void DidChangeRelocates(const PcpCache *cache, const SdfPath &path)
PCP_API void DidChangeSignificantly(const PcpCache *cache, const SdfPath &path)
SdfPathSet pathsAffectedByRelocationChanges
Paths that are affected by the above relocation changes.
PathEditMap didChangePath
PCP_API const PcpLifeboat & GetLifeboat() const
std::map< SdfPath, int, SdfPath::FastLessThan > didChangeTargets
Must rebuild the connections/targets at each path.
PCP_API void DidChangeSpecs(const PcpCache *cache, const SdfPath &path, const SdfLayerHandle &changedLayer, const SdfPath &changedPath)
PCP_API void DidDestroyCache(const PcpCache *cache)
Remove any changes for cache.
PCP_API void DidMuteLayer(const PcpCache *cache, const std::string &layerId)
The layer identified by layerId was muted in cache.
void Swap(PcpLifeboat &other)
Swap the contents of this and other.
SdfRelocatesMap newIncrementalRelocatesSourceToTarget
bool didChangeLayers
Must rebuild the layer tree. Implies didChangeLayerOffsets.
std::map< PcpLayerStackPtr, PcpLayerStackChanges > LayerStackChanges
PCP_API void Swap(PcpChanges &other)
Swap the contents of this and other.
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
PCP_API void DidChangePaths(const PcpCache *cache, const SdfPath &oldPath, const SdfPath &newPath)
std::set< class SdfPath > SdfPathSet
A set of SdfPaths.
std::map< PcpCache *, PcpCacheChanges > CacheChanges
GLsizei const GLchar *const * path
SdfPathSet didChangeSpecs
Must rebuild the prim/property stacks at each path.
bool didChangeRelocates
Must rebuild the relocation tables.
GLsizei const GLchar *const * string
PCP_API void DidChangeLayerOffsets(const PcpCache *cache)
The sublayer offsets changed.
std::vector< std::pair< SdfLayerHandle, SdfChangeList > > SdfLayerChangeListVec
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
SdfPathSet didChangeSignificantly
PCP_API bool IsEmpty() const
Returns true iff there are no changes.
SdfRelocatesMap newRelocatesTargetToSource
PCP_API void DidChangeTargets(const PcpCache *cache, const SdfPath &path, PcpCacheChanges::TargetType targetType)
GLint GLboolean GLint layer
#define PXR_NAMESPACE_CLOSE_SCOPE
bool didChangeSignificantly
PCP_API void DidMaybeFixAsset(const PcpCache *cache, const PcpSite &site, const SdfLayerHandle &srcLayer, const std::string &assetPath)
SdfRelocatesMap newRelocatesSourceToTarget
const std::set< PcpLayerStackRefPtr > & GetLayerStacks() const
PCP_API void DidUnmuteLayer(const PcpCache *cache, const std::string &layerId)
The layer identified by layerId was unmuted in cache.
void Retain(const SdfLayerRefPtr &layer)
Ensure that layer exists until this object is destroyed.
PCP_API void DidChangeSpecStack(const PcpCache *cache, const SdfPath &path)
bool didChangeLayerOffsets
Must rebuild the layer offsets.