- add display debug to faster developpement - add multiple line path in the pointing list - better integration of conficuration of svg parameter
27 lines
668 B
C++
27 lines
668 B
C++
/**
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license APACHE v2.0 (see license file)
|
|
*/
|
|
|
|
#include <esvg/render/Element.h>
|
|
#include <esvg/debug.h>
|
|
|
|
#undef __class__
|
|
#define __class__ "rerder::ElementCurveTo"
|
|
|
|
|
|
esvg::render::ElementCurveTo::ElementCurveTo(bool _relative, const vec2& _pos1, const vec2& _pos2, const vec2& _pos):
|
|
Element(esvg::render::path_curveTo, _relative) {
|
|
m_pos = _pos;
|
|
m_pos1 = _pos1;
|
|
m_pos2 = _pos2;
|
|
}
|
|
|
|
|
|
|
|
std::string esvg::render::ElementCurveTo::display() const {
|
|
return std::string("pos=") + etk::to_string(m_pos) + " pos1=" + etk::to_string(m_pos1) + " pos2=" + etk::to_string(m_pos2);
|
|
} |