24 #ifndef PXR_USD_SDF_NOTICE_H
25 #define PXR_USD_SDF_NOTICE_H
28 #include "pxr/usd/sdf/api.h"
31 #include "pxr/usd/sdf/path.h"
34 PXR_NAMESPACE_OPEN_SCOPE
63 , _serialNumber(serialNumber)
66 using const_iterator = SdfLayerChangeListVec::const_iterator;
67 using iterator = const_iterator;
76 const_iterator begin()
const {
return _vec->begin(); }
77 const_iterator cbegin()
const {
return _vec->cbegin(); }
78 const_iterator end()
const {
return _vec->end(); }
79 const_iterator cend()
const {
return _vec->cend(); }
81 const_iterator find(SdfLayerHandle
const &layer)
const {
84 [&layer](SdfLayerChangeListVec::value_type
const &p) {
85 return p.first == layer;
89 bool count(SdfLayerHandle
const &layer)
const {
90 return find(layer) != end();
97 const SdfLayerChangeListVec *_vec;
98 const size_t _serialNumber;
156 const std::string& newIdentifier);
158 ~LayerIdentifierDidChange();
215 : _layerPath(layerPath)
216 , _wasMuted(wasMuted)
228 std::string _layerPath;
233 PXR_NAMESPACE_CLOSE_SCOPE
235 #endif // PXR_USD_SDF_NOTICE_H
SDF_API SdfLayerHandleVector GetLayers() const
A list of layers changed.
A unit of scene description that you combine with other units of scene description to form a shot...
Wrapper class for Sdf notices.
const std::string & GetLayerPath() const
Returns the path of the layer that was muted or unmuted.
The base class for objects used to notify interested parties (listeners) when events have occurred...
Similar behavior to LayersDidChange, but only gets sent if a change in the dirty status of a layer oc...
Base class for LayersDidChange and LayersDidChangeSentPerLayer.
const SdfLayerChangeListVec & GetChangeListVec() const
A list of layers and the changes that occurred to them.
bool WasMuted() const
Returns true if the layer was muted, false if unmuted.
size_t GetSerialNumber() const
The serial number for this round of change processing.
Sent after a layer has been added or removed from the set of muted layers.
Token for efficient comparison, assignment, and hashing of known strings.
Base notification class for scene.
Sent when the (scene spec) info of a layer have changed.
const std::string & GetOldIdentifier() const
Returns the old identifier for the layer.
Global notice sent to indicate that layer contents have changed.
Sent after a menv layer has been loaded from a file.
Notice sent per-layer indicating all layers whose contents have changed within a single round of chan...
const std::string & GetNewIdentifier() const
Returns the new identifier for the layer.
const TfToken & key() const
Return the key affected.
Sent after a layer is reloaded.
Sent when the identifier of a layer has changed.
Sent after a layer is saved to file.