24 #ifndef PXR_USD_SDF_LAYER_STATE_DELEGATE_H 25 #define PXR_USD_SDF_LAYER_STATE_DELEGATE_H 28 #include "pxr/usd/sdf/api.h" 35 PXR_NAMESPACE_OPEN_SCOPE
84 void SetFieldDictValueByKey(
92 void SetFieldDictValueByKey(
180 const SdfLayerHandle& layer) = 0;
257 SDF_API
void _SetLayer(
const SdfLayerHandle& layer);
260 SdfLayerHandle _layer;
271 static SdfSimpleLayerStateDelegateRefPtr New();
289 const SdfLayerHandle& layer)
override;
295 const VtValue& value)
override;
308 const VtValue& value)
override;
321 const VtValue& value)
override;
333 bool inert)
override;
338 bool inert)
override;
343 const SdfPath& newPath)
override;
349 const TfToken& value)
override;
355 const SdfPath& value)
override;
361 const TfToken& oldValue)
override;
367 const SdfPath& oldValue)
override;
373 PXR_NAMESPACE_CLOSE_SCOPE
375 #endif // PXR_USD_SDF_LAYER_STATE_DELEGATE_H A scene description container that can combine with other such containers to form simple component as...
virtual SDF_API void _OnMoveSpec(const SdfPath &oldPath, const SdfPath &newPath) override
Invoked when a spec and its children are moved.
#define TF_DECLARE_WEAK_PTRS(type)
Define standard weak pointer types.
Standard pointer typedefs.
virtual SDF_API void _OnSetField(const SdfPath &path, const TfToken &fieldName, const VtValue &value) override
Invoked when a field is being changed on the associated layer.
A type-erased container for a const field value in an SdfAbstractData.
virtual void _OnPushChild(const SdfPath &parentPath, const TfToken &fieldName, const TfToken &value)=0
Invoked when a child spec is pushed onto a parent's list of children.
virtual void _MarkCurrentStateAsDirty()=0
Mark the current state of the layer as dirty, i.e.
virtual void _OnMoveSpec(const SdfPath &oldPath, const SdfPath &newPath)=0
Invoked when a spec and its children are moved.
virtual SDF_API void _OnSetFieldDictValueByKey(const SdfPath &path, const TfToken &fieldName, const TfToken &keyPath, const VtValue &value) override
Invoked when a field dict key is being changed on the associated layer.
virtual void _OnSetLayer(const SdfLayerHandle &layer)=0
Invoked when the state delegate is associated with layer layer.
virtual void _OnCreateSpec(const SdfPath &path, SdfSpecType specType, bool inert)=0
Invoked when a new spec is created on the associated layer.
virtual SDF_API void _OnDeleteSpec(const SdfPath &path, bool inert) override
Invoked when a spec and its children are deleted from the associated layer.
#define TF_DECLARE_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
A layer state delegate that simply records whether any changes have been made to a layer.
virtual void _OnSetField(const SdfPath &path, const TfToken &fieldName, const VtValue &value)=0
Invoked when a field is being changed on the associated layer.
Enable a concrete base class for use with TfRefPtr.
Token for efficient comparison, assignment, and hashing of known strings.
virtual SDF_API void _OnSetTimeSample(const SdfPath &path, double time, const VtValue &value) override
Invoked when a time sample is being changed on the associated layer.
virtual SDF_API void _MarkCurrentStateAsClean() override
Mark the current state of the layer as clean, i.e.
virtual SDF_API void _OnPopChild(const SdfPath &path, const TfToken &fieldName, const TfToken &oldValue) override
Invoked when a child spec is popped off a parent's list of children.
SDF_API SdfAbstractDataPtr _GetLayerData() const
Returns the underlying data object for the layer associated with this state delegate.
virtual SDF_API void _OnPushChild(const SdfPath &path, const TfToken &fieldName, const TfToken &value) override
Invoked when a child spec is pushed onto a parent's list of children.
A path value used to locate objects in layers or scenegraphs.
virtual SDF_API void _MarkCurrentStateAsDirty() override
Mark the current state of the layer as dirty, i.e.
virtual SDF_API bool _IsDirty() override
Returns true if the associated layer has been authored to since the last time the layer was marked cl...
virtual void _OnPopChild(const SdfPath &parentPath, const TfToken &fieldName, const TfToken &oldValue)=0
Invoked when a child spec is popped off a parent's list of children.
virtual SDF_API void _OnCreateSpec(const SdfPath &path, SdfSpecType specType, bool inert) override
Invoked when a new spec is created on the associated layer.
SdfSpecType
An enum that specifies the type of an object.
virtual bool _IsDirty()=0
Returns true if the associated layer has been authored to since the last time the layer was marked cl...
virtual void _OnDeleteSpec(const SdfPath &path, bool inert)=0
Invoked when a spec and its children are deleted from the associated layer.
virtual SDF_API void _OnSetLayer(const SdfLayerHandle &layer) override
Invoked when the state delegate is associated with layer layer.
Maintains authoring state information for an associated layer.
virtual void _OnSetTimeSample(const SdfPath &path, double time, const VtValue &value)=0
Invoked when a time sample is being changed on the associated layer.
virtual void _OnSetFieldDictValueByKey(const SdfPath &path, const TfToken &fieldName, const TfToken &keyPath, const VtValue &value)=0
Invoked when a field dict key is being changed on the associated layer.
Enable a concrete base class for use with TfWeakPtr.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Interface for scene description data storage.
SDF_API SdfLayerHandle _GetLayer() const
Returns the layer associated with this state delegate.
virtual void _MarkCurrentStateAsClean()=0
Mark the current state of the layer as clean, i.e.