31 lines
934 B
C++
31 lines
934 B
C++
/** @file
|
|
* @author Edouard DUPIN
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
* @license MPL v2.0 (see license file)
|
|
*/
|
|
#pragma once
|
|
|
|
#include <esvg/Base.hpp>
|
|
|
|
namespace esvg {
|
|
class Ellipse : public esvg::Base {
|
|
private:
|
|
vec2 m_c; //!< Center property of the ellipse
|
|
vec2 m_r; //!< Radius property of the ellipse
|
|
public:
|
|
Ellipse(PaintState _parentPaintState);
|
|
~Ellipse();
|
|
bool parseXML(const exml::Element& _element, mat2x3& _parentTrans, vec2& _sizeMax) override;
|
|
void display(int32_t _spacing) override;
|
|
void draw(esvg::Renderer& _myRenderer, mat2x3& _basicTrans, int32_t _level) override;
|
|
void drawShapePoints(etk::Vector<etk::Vector<vec2>>& _out,
|
|
int32_t _recurtionMax,
|
|
float _threshold,
|
|
mat2x3& _basicTrans,
|
|
int32_t _level=1) override;
|
|
private:
|
|
esvg::render::Path createPath();
|
|
};
|
|
}
|
|
|