Add svg conversion.
This commit is contained in:
parent
1f85954e98
commit
dfbc87cb09
33 changed files with 602 additions and 79 deletions
|
@ -2,12 +2,17 @@
|
|||
|
||||
#include "SvgElement.h"
|
||||
#include "Color.h"
|
||||
#include "Transform.h"
|
||||
|
||||
class SvgShapeElement : public SvgElement
|
||||
{
|
||||
public:
|
||||
SvgShapeElement(const std::string& tagName);
|
||||
|
||||
Transform getTransform() const;
|
||||
|
||||
bool hasTransform() const;
|
||||
|
||||
void setFill(const Color& fill);
|
||||
|
||||
void setNoFill();
|
||||
|
@ -17,4 +22,8 @@ public:
|
|||
void setStrokeColor(const Color& stroke);
|
||||
|
||||
void setNoStroke();
|
||||
|
||||
private:
|
||||
std::string getLabelledContent(const std::string& key, const std::string& content) const;
|
||||
Point parsePoint(const std::string& pointString, double defaultVal = 0.0) const;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue