Move xml and svg to lower levels.
This commit is contained in:
parent
942cc2539c
commit
7cab70f839
32 changed files with 35 additions and 33 deletions
29
src/rendering/visual_elements/svg/SvgShapeElement.h
Normal file
29
src/rendering/visual_elements/svg/SvgShapeElement.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#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();
|
||||
|
||||
void setStrokeWidth(double width);
|
||||
|
||||
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