* @brief Constructor.
*
* @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
- * @param[in] url The url of the vector animation file
*/
- VectorAnimationTask(VisualFactoryCache& factoryCache, const std::string& url);
+ VectorAnimationTask(VisualFactoryCache& factoryCache);
/**
* @brief Destructor.
void Finalize();
/**
+ * @brief Loads the animation file.
+ *
+ * @param[in] url The url of the vector animation file
+ * @return True if loading success, false otherwise.
+ */
+ bool Load(const std::string& url);
+
+ /**
* @brief Sets the renderer used to display the result image.
*
* @param[in] renderer The renderer used to display the result image
private:
/**
- * @brief Initializes the vector renderer.
- */
- void Initialize();
-
- /**
* @brief Play the vector animation.
*/
void PlayAnimation();