From: Eunki, Hong Date: Tue, 7 Nov 2023 11:14:43 +0000 (+0900) Subject: (AnimatedVector) Make API to get marker information X-Git-Tag: dali_2.2.52~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=082c5ea6945cdb8653627749c7ef64ca86f83918;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git (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 150b7a7..bbefdab 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h @@ -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. */ diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp b/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp index 29e3a37..b31ff19 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp @@ -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(); diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer.h b/dali/devel-api/adaptor-framework/vector-animation-renderer.h index 15f148b..f345780 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer.h +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer.h @@ -19,9 +19,9 @@ */ // EXTERNAL INCLUDES +#include #include #include -#include // INTERNAL INCLUDES #include @@ -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. */ 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 3d9caa6..1d4eb34 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp +++ b/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp @@ -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(); 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 296026c..84d4230 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-impl.h +++ b/dali/internal/vector-animation/common/vector-animation-renderer-impl.h @@ -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(); 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 aaeea75..eec7646 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 @@ -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) 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 e65a2cb..47ddf69 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 @@ -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();