#define DALI_INTERNAL_SCENE_GRAPH_PROPERTY_OWNER_H
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace SceneGraph
{
class PropertyOwner;
+class ResetterManager;
using OwnedPropertyContainer = OwnerContainer<PropertyBase*>;
using OwnedPropertyIter = OwnedPropertyContainer::Iterator;
* Mark an property owner with the updated flag.
* @param[in] updated The updated flag
*/
- virtual void SetUpdated(bool updated)
+ void SetUpdated(bool updated)
{
mUpdated = updated;
}
const UniformMap& GetUniformMap() const;
/**
- * @copydoc UniformMap::AddUniformMapObserver
- */
- void AddUniformMapObserver(UniformMap::Observer& observer);
-
- /**
- * @copydoc UniformMap::RemoveUniformMapObserver
- */
- void RemoveUniformMapObserver(UniformMap::Observer& observer);
-
- /**
* Query whether playing an animation is possible or not.
* @return true if playing an animation is possible.
*/
return true;
}
+ /**
+ * @brief Install custom resetter messages to resetter manager.
+ * @pre ConnectToSceneGraph() Should be called before this API.
+ *
+ * @param[in] manager ResetterManager to add resetter.
+ */
+ virtual void AddInitializeResetter(ResetterManager& manager) const
+ {
+ // Do nothing
+ }
+
protected:
/**
* Protected constructor.
*/
PropertyOwner();
+ /**
+ * Method to inform derived classes when property maps have been modified.
+ */
+ virtual void OnMappingChanged()
+ {
+ // Default behaviour is to do nothing
+ }
+
private:
// Undefined
PropertyOwner(const PropertyOwner&);