24 #ifndef PXR_USD_SDF_LAYER_STATE_DELEGATE_H
25 #define PXR_USD_SDF_LAYER_STATE_DELEGATE_H
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;
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;
375 #endif // PXR_USD_SDF_LAYER_STATE_DELEGATE_H
SDF_API void SetField(const SdfPath &path, const TfToken &field, const VtValue &value, VtValue *oldValue=NULL)
PXR_NAMESPACE_OPEN_SCOPE SDF_DECLARE_HANDLES(SdfLayer)
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.
virtual void _OnCreateSpec(const SdfPath &path, SdfSpecType specType, bool inert)=0
Invoked when a new spec is created on the associated layer.
SDF_API void SetFieldDictValueByKey(const SdfPath &path, const TfToken &field, const TfToken &keyPath, const VtValue &value, VtValue *oldValue=NULL)
TF_DECLARE_WEAK_AND_REF_PTRS(SdfLayerStateDelegateBase)
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.
GT_API const UT_StringHolder time
virtual void _OnSetTimeSample(const SdfPath &path, double time, const VtValue &value)=0
Invoked when a time sample is being changed on the associated layer.
GLsizei const GLchar *const * path
virtual SDF_API ~SdfLayerStateDelegateBase()
virtual SDF_API void _OnDeleteSpec(const SdfPath &path, bool inert) override
virtual SDF_API void _OnCreateSpec(const SdfPath &path, SdfSpecType specType, bool inert) override
Invoked when a new spec is created on the associated layer.
SDF_API void PopChild(const SdfPath &parentPath, const TfToken &field, const TfToken &oldValue)
SDF_API SdfSimpleLayerStateDelegate()
GLenum GLuint GLint GLint layer
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.
static SDF_API SdfSimpleLayerStateDelegateRefPtr New()
virtual SDF_API void _MarkCurrentStateAsDirty() override
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.
SDF_API SdfAbstractDataPtr _GetLayerData() const
virtual void _OnSetLayer(const SdfLayerHandle &layer)=0
virtual SDF_API void _OnMoveSpec(const SdfPath &oldPath, const SdfPath &newPath) override
Invoked when a spec and its children are moved.
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.
TF_DECLARE_WEAK_PTRS(SdfAbstractData)
virtual SDF_API void _MarkCurrentStateAsClean() override
virtual bool _IsDirty()=0
SDF_API void CreateSpec(const SdfPath &path, SdfSpecType specType, bool inert)
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.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
SDF_API void DeleteSpec(const SdfPath &path, bool inert)
virtual void _MarkCurrentStateAsClean()=0
virtual SDF_API bool _IsDirty() override
virtual void _OnSetField(const SdfPath &path, const TfToken &fieldName, const VtValue &value)=0
Invoked when a field is being changed on the associated layer.
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.
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_API void PushChild(const SdfPath &parentPath, const TfToken &field, const TfToken &value)
virtual void _MarkCurrentStateAsDirty()=0
SDF_API void SetTimeSample(const SdfPath &path, double time, const VtValue &value)
SDF_API SdfLayerStateDelegateBase()
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.
virtual SDF_API void _OnSetLayer(const SdfLayerHandle &layer) override
SDF_API SdfLayerHandle _GetLayer() const
virtual void _OnDeleteSpec(const SdfPath &path, bool inert)=0
SDF_API void MoveSpec(const SdfPath &oldPath, const SdfPath &newPath)