(Vector) Add GetLayerInfo method 96/215596/2
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 11 Oct 2019 08:19:38 +0000 (17:19 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 14 Oct 2019 03:57:25 +0000 (03:57 +0000)
Change-Id: I870fa93b48de93788538bab5aa8a17356571255e

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 6fa992d..a640f3c 100644 (file)
@@ -94,13 +94,21 @@ public:
   virtual float GetFrameRate() const = 0;
 
   /**
-   * @brief Gets the default size of the file,.
+   * @brief Gets the default size of the file.
    *
-   * @return The default size of the file
+   * @param[out] width The default width of the file
+   * @param[out] height The default height of the file
    */
   virtual void GetDefaultSize( uint32_t& width, uint32_t& height ) const = 0;
 
   /**
+   * @brief Gets the layer information of all the child layers.
+   *
+   * @param[out] map The layer information
+   */
+  virtual void GetLayerInfo( Property::Map& map ) const = 0;
+
+  /**
    * @brief Connect to this signal to be notified when the texture upload is completed.
    *
    * @return The signal to connect to.
index e9fe5e0..f55d839 100755 (executable)
@@ -89,6 +89,11 @@ void VectorAnimationRenderer::GetDefaultSize( uint32_t& width, uint32_t& height
   GetImplementation( *this ).GetDefaultSize( width, height );
 }
 
+void VectorAnimationRenderer::GetLayerInfo( Property::Map& map ) const
+{
+  GetImplementation( *this ).GetLayerInfo( map );
+}
+
 VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
 {
   return GetImplementation( *this ).UploadCompletedSignal();
index 0c0a24a..5db1122 100755 (executable)
@@ -122,12 +122,20 @@ public:
   float GetFrameRate() const;
 
   /**
-   * @brief Gets the default size of the file,.
+   * @brief Gets the default size of the file.
    *
-   * @return The default size of the file
+   * @param[out] width The default width of the file
+   * @param[out] height The default height of the file
    */
   void GetDefaultSize( uint32_t& width, uint32_t& height ) const;
 
+  /**
+   * @brief Gets the layer information of all the child layers.
+   *
+   * @param[out] map The layer information
+   */
+  void GetLayerInfo( Property::Map& map ) const;
+
 public: // Signals
 
   /**
index 885861f..b1e3a17 100644 (file)
@@ -95,6 +95,11 @@ void VectorAnimationRenderer::GetDefaultSize( uint32_t& width, uint32_t& height
   mPlugin.GetDefaultSize( width, height );
 }
 
+void VectorAnimationRenderer::GetLayerInfo( Property::Map& map ) const
+{
+  mPlugin.GetLayerInfo( map );
+}
+
 Dali::VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
 {
   return mPlugin.UploadCompletedSignal();
index 1bc7bac..5ede97e 100755 (executable)
@@ -87,6 +87,11 @@ public:
   void GetDefaultSize( uint32_t& width, uint32_t& height ) const;
 
   /**
+   * @copydoc Dali::VectorAnimationRenderer::GetLayerInfo()
+   */
+  void GetLayerInfo( Property::Map& map ) const;
+
+  /**
    * @copydoc Dali::VectorAnimationRenderer::UploadCompletedSignal()
    */
   Dali::VectorAnimationRenderer::UploadCompletedSignalType& UploadCompletedSignal();
index b704c58..009312b 100644 (file)
@@ -161,6 +161,14 @@ void VectorAnimationRendererPluginProxy::GetDefaultSize( uint32_t& width, uint32
   }
 }
 
+void VectorAnimationRendererPluginProxy::GetLayerInfo( Property::Map& map ) const
+{
+  if( mPlugin )
+  {
+    mPlugin->GetLayerInfo( map );
+  }
+}
+
 VectorAnimationRendererPlugin::UploadCompletedSignalType& VectorAnimationRendererPluginProxy::UploadCompletedSignal()
 {
   if( mPlugin )
index 2c6267b..17ba06b 100644 (file)
@@ -83,6 +83,11 @@ public:
   void GetDefaultSize( uint32_t& width, uint32_t& height ) const;
 
   /**
+   * @copydoc Dali::VectorAnimationRendererPlugin::GetLayerInfo()
+   */
+  void GetLayerInfo( Property::Map& map ) const;
+
+  /**
    * @copydoc Dali::VectorAnimationRendererPlugin::UploadCompletedSignal()
    */
   VectorAnimationRendererPlugin::UploadCompletedSignalType& UploadCompletedSignal();