(AnimatedVector) Make API to get marker information 48/307348/1 accepted/tizen/7.0/unified/20240314.152336
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 7 Nov 2023 11:14:43 +0000 (20:14 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 7 Mar 2024 06:43:08 +0000 (15:43 +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 04c1e31..af39342 100644 (file)
@@ -138,6 +138,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 d816fa5..a1be59b 100644 (file)
@@ -108,6 +108,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 a308392..3fbbc3e 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 // 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>
 
@@ -182,6 +183,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 8bf5f5f..258da7f 100644 (file)
@@ -111,6 +111,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 27ed34f..f0b9633 100644 (file)
@@ -103,6 +103,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 6a3c015..6e18261 100644 (file)
@@ -195,6 +195,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 3a97542..75ee8dc 100644 (file)
@@ -99,6 +99,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();