/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Dali
{
-
-VectorAnimationRenderer VectorAnimationRenderer::New( const std::string& url )
+VectorAnimationRenderer VectorAnimationRenderer::New()
{
Internal::Adaptor::VectorAnimationRendererPtr animationRenderer = Internal::Adaptor::VectorAnimationRenderer::New();
- if( animationRenderer )
- {
- animationRenderer->Initialize( url );
- }
-
- return VectorAnimationRenderer( animationRenderer.Get() );
+ return VectorAnimationRenderer(animationRenderer.Get());
}
VectorAnimationRenderer::VectorAnimationRenderer()
{
}
-VectorAnimationRenderer::VectorAnimationRenderer( Internal::Adaptor::VectorAnimationRenderer* internal )
-: BaseHandle( internal )
+VectorAnimationRenderer::VectorAnimationRenderer(Internal::Adaptor::VectorAnimationRenderer* internal)
+: BaseHandle(internal)
{
}
-VectorAnimationRenderer::VectorAnimationRenderer( const VectorAnimationRenderer& handle )
-: BaseHandle( handle )
+VectorAnimationRenderer::VectorAnimationRenderer(const VectorAnimationRenderer& handle)
+: BaseHandle(handle)
{
}
-VectorAnimationRenderer& VectorAnimationRenderer::operator=( const VectorAnimationRenderer& rhs )
+VectorAnimationRenderer& VectorAnimationRenderer::operator=(const VectorAnimationRenderer& rhs)
{
- BaseHandle::operator=( rhs );
+ BaseHandle::operator=(rhs);
return *this;
}
-void VectorAnimationRenderer::SetRenderer( Renderer renderer )
+void VectorAnimationRenderer::Finalize()
+{
+ GetImplementation(*this).Finalize();
+}
+
+bool VectorAnimationRenderer::Load(const std::string& url)
{
- GetImplementation( *this ).SetRenderer( renderer );
+ return GetImplementation(*this).Load(url);
}
-void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
+void VectorAnimationRenderer::SetRenderer(Renderer renderer)
{
- GetImplementation( *this ).SetSize( width, height );
+ GetImplementation(*this).SetRenderer(renderer);
}
-void VectorAnimationRenderer::StopRender()
+void VectorAnimationRenderer::SetSize(uint32_t width, uint32_t height)
{
- GetImplementation( *this ).StopRender();
+ GetImplementation(*this).SetSize(width, height);
}
-bool VectorAnimationRenderer::Render( uint32_t frameNumber )
+bool VectorAnimationRenderer::Render(uint32_t frameNumber)
{
- return GetImplementation( *this ).Render( frameNumber );
+ return GetImplementation(*this).Render(frameNumber);
}
uint32_t VectorAnimationRenderer::GetTotalFrameNumber() const
{
- return GetImplementation( *this ).GetTotalFrameNumber();
+ return GetImplementation(*this).GetTotalFrameNumber();
}
float VectorAnimationRenderer::GetFrameRate() const
{
- return GetImplementation( *this ).GetFrameRate();
+ return GetImplementation(*this).GetFrameRate();
+}
+
+void VectorAnimationRenderer::GetDefaultSize(uint32_t& width, uint32_t& height) const
+{
+ GetImplementation(*this).GetDefaultSize(width, height);
+}
+
+void VectorAnimationRenderer::GetLayerInfo(Property::Map& map) const
+{
+ GetImplementation(*this).GetLayerInfo(map);
+}
+
+bool VectorAnimationRenderer::GetMarkerInfo(const std::string& marker, uint32_t& startFrame, uint32_t& endFrame) const
+{
+ return GetImplementation(*this).GetMarkerInfo(marker, startFrame, endFrame);
+}
+
+void VectorAnimationRenderer::InvalidateBuffer()
+{
+ GetImplementation(*this).InvalidateBuffer();
+}
+
+void VectorAnimationRenderer::AddPropertyValueCallback(const std::string& keyPath, VectorProperty property, CallbackBase* callback, int32_t id)
+{
+ GetImplementation(*this).AddPropertyValueCallback(keyPath, property, callback, id);
}
-void VectorAnimationRenderer::GetDefaultSize( uint32_t& width, uint32_t& height ) const
+VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
{
- GetImplementation( *this ).GetDefaultSize( width, height );
+ return GetImplementation(*this).UploadCompletedSignal();
}
} // namespace Dali