virtual ~VectorAnimationRendererPlugin() {}
/**
- * @brief Creates a renderer to render an vector animation file.
+ * @brief Sets the url of the animation file.
+ *
+ * @param[in] url The url of the animation file
+ */
+ virtual void SetUrl( const std::string& url ) = 0;
+
+ /**
+ * @brief Sets the renderer used to display the result image.
+ *
+ * @param[in] renderer The renderer used to display the result image
+ */
+ virtual void SetRenderer( Renderer renderer ) = 0;
+
+ /**
+ * @brief Sets the target image size.
*
- * @param[in] url The url of an animation file
- * @param[in] renderer The renderer used to render the image
* @param[in] width The target image width
* @param[in] height The target image height
- * @return True if the renderer is successfully created, false otherwise
*/
- virtual bool CreateRenderer( const std::string& url, Renderer renderer, uint32_t width, uint32_t height ) = 0;
+ virtual void SetSize( uint32_t width, uint32_t height ) = 0;
/**
* @brief Starts the rendering.
virtual void Render( uint32_t frameNumber ) = 0;
/**
- * @brief Gets the total number of frames of the file
+ * @brief Gets the total number of frames of the file.
*
* @return The total number of frames
*/
- virtual uint32_t GetTotalFrameNumber() = 0;
+ virtual uint32_t GetTotalFrameNumber() const = 0;
+
+ /**
+ * @brief Gets the frame rate of the file.
+ *
+ * @return The frame rate of the file
+ */
+ virtual float GetFrameRate() const = 0;
/**
* @brief Function pointer called in adaptor to create a plugin instance.