From: Eunki, Hong Date: Tue, 7 Nov 2023 11:14:43 +0000 (+0900) Subject: (AnimatedVector) Make API to get marker information X-Git-Tag: accepted/tizen/7.0/unified/20240314.152336^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=950f76323e92283eb06beaea54de649b9d2ba7f0 (AnimatedVector) Make API to get marker information Change-Id: I1a598341cdede6228cf573bd0d9903bab39f4045 Signed-off-by: Eunki, Hong --- diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h b/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h index 04c1e31..af39342 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h @@ -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. */ diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp b/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp index d816fa5..a1be59b 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp @@ -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(); diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer.h b/dali/devel-api/adaptor-framework/vector-animation-renderer.h index a308392..3fbbc3e 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer.h +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer.h @@ -19,6 +19,7 @@ */ // EXTERNAL INCLUDES +#include #include #include @@ -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. */ diff --git a/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp b/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp index 8bf5f5f..258da7f 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp +++ b/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp @@ -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(); diff --git a/dali/internal/vector-animation/common/vector-animation-renderer-impl.h b/dali/internal/vector-animation/common/vector-animation-renderer-impl.h index 27ed34f..f0b9633 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-impl.h +++ b/dali/internal/vector-animation/common/vector-animation-renderer-impl.h @@ -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(); diff --git a/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp b/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp index 6a3c015..6e18261 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp +++ b/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp @@ -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) diff --git a/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h b/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h index 3a97542..75ee8dc 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h +++ b/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h @@ -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();