(AnimatedVector) Make API to get marker information 38/301038/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 7 Nov 2023 11:14:43 +0000 (20:14 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 7 Nov 2023 11:15:42 +0000 (20:15 +0900)
Change-Id: I1a598341cdede6228cf573bd0d9903bab39f4045
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h
dali/devel-api/adaptor-framework/vector-animation-renderer.cpp
dali/devel-api/adaptor-framework/vector-animation-renderer.h
dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp
dali/internal/vector-animation/common/vector-animation-renderer-impl.h
dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp
dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h

index 150b7a7..bbefdab 100644 (file)
@@ -146,6 +146,13 @@ public:
   virtual bool GetMarkerInfo(const std::string& marker, uint32_t& startFrame, uint32_t& endFrame) const = 0;
 
   /**
+   * @brief Gets the all composition marker informations.
+   *
+   * @param[out] map The marker information
+   */
+  virtual void GetMarkerInfo(Property::Map& map) const = 0;
+
+  /**
    * @brief Invalidates the rendered buffer.
    * @note The upload completed signal will be emitted again.
    */
index 29e3a37..b31ff19 100644 (file)
@@ -113,6 +113,11 @@ bool VectorAnimationRenderer::GetMarkerInfo(const std::string& marker, uint32_t&
   return GetImplementation(*this).GetMarkerInfo(marker, startFrame, endFrame);
 }
 
+void VectorAnimationRenderer::GetMarkerInfo(Property::Map& map) const
+{
+  GetImplementation(*this).GetMarkerInfo(map);
+}
+
 void VectorAnimationRenderer::InvalidateBuffer()
 {
   GetImplementation(*this).InvalidateBuffer();
index 15f148b..f345780 100644 (file)
@@ -19,9 +19,9 @@
  */
 
 // EXTERNAL INCLUDES
+#include <dali/public-api/common/dali-vector.h>
 #include <dali/public-api/object/base-handle.h>
 #include <dali/public-api/rendering/renderer.h>
-#include <dali/public-api/common/dali-vector.h>
 
 // INTERNAL INCLUDES
 #include <dali/public-api/dali-adaptor-common.h>
@@ -191,6 +191,13 @@ public:
   bool GetMarkerInfo(const std::string& marker, uint32_t& startFrame, uint32_t& endFrame) const;
 
   /**
+   * @brief Gets the all composition marker informations.
+   *
+   * @param[out] map The marker information
+   */
+  void GetMarkerInfo(Property::Map& map) const;
+
+  /**
    * @brief Invalidates the rendered buffer.
    * @note The upload completed signal will be emitted again.
    */
index 3d9caa6..1d4eb34 100644 (file)
@@ -116,6 +116,11 @@ bool VectorAnimationRenderer::GetMarkerInfo(const std::string& marker, uint32_t&
   return mPlugin.GetMarkerInfo(marker, startFrame, endFrame);
 }
 
+void VectorAnimationRenderer::GetMarkerInfo(Property::Map& map) const
+{
+  mPlugin.GetMarkerInfo(map);
+}
+
 void VectorAnimationRenderer::InvalidateBuffer()
 {
   mPlugin.InvalidateBuffer();
index 296026c..84d4230 100644 (file)
@@ -108,6 +108,11 @@ public:
   bool GetMarkerInfo(const std::string& marker, uint32_t& startFrame, uint32_t& endFrame) const;
 
   /**
+   * @copydoc Dali::VectorAnimationRenderer::GetMarkerInfo()
+   */
+  void GetMarkerInfo(Property::Map& map) const;
+
+  /**
    * @copydoc Dali::VectorAnimationRenderer::InvalidateBuffer()
    */
   void InvalidateBuffer();
index aaeea75..eec7646 100644 (file)
@@ -204,6 +204,14 @@ bool VectorAnimationRendererPluginProxy::GetMarkerInfo(const std::string& marker
   return false;
 }
 
+void VectorAnimationRendererPluginProxy::GetMarkerInfo(Property::Map& map) const
+{
+  if(mPlugin)
+  {
+    mPlugin->GetMarkerInfo(map);
+  }
+}
+
 void VectorAnimationRendererPluginProxy::InvalidateBuffer()
 {
   if(mPlugin)
index e65a2cb..47ddf69 100644 (file)
@@ -104,6 +104,11 @@ public:
   bool GetMarkerInfo(const std::string& marker, uint32_t& startFrame, uint32_t& endFrame) const;
 
   /**
+   * @copydoc Dali::VectorAnimationRendererPlugin::GetMarkerInfo()
+   */
+  void GetMarkerInfo(Property::Map& map) const;
+
+  /**
    * @copydoc Dali::VectorAnimationRendererPlugin::InvalidateBuffer()
    */
   void InvalidateBuffer();