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
|
@ -1,71 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include "SvgShapeElement.h"
|
||||
#include "Point.h"
|
||||
|
||||
#include "XmlAttribute.h"
|
||||
|
||||
class SvgCircle : public SvgShapeElement
|
||||
{
|
||||
public:
|
||||
enum class Type
|
||||
{
|
||||
REGULAR,
|
||||
ELLIPSE
|
||||
};
|
||||
|
||||
SvgCircle(Type type = Type::REGULAR);
|
||||
|
||||
Point getLocation() const;
|
||||
|
||||
double getRadius() const;
|
||||
|
||||
Type getType() const;
|
||||
|
||||
double getMinorRadius() const;
|
||||
|
||||
void setLocation(const Point& loc);
|
||||
|
||||
void setRadius(double rad);
|
||||
|
||||
void setMinorRadius(double rad);
|
||||
private:
|
||||
Type mType{ Type::REGULAR };
|
||||
};
|
||||
|
||||
class SvgRectangle : public SvgShapeElement
|
||||
{
|
||||
public:
|
||||
SvgRectangle();
|
||||
|
||||
void setLocation(const Point& loc);
|
||||
|
||||
void setWidth(double width);
|
||||
|
||||
void setHeight(double height);
|
||||
};
|
||||
|
||||
class SvgPolygon : public SvgShapeElement
|
||||
{
|
||||
public:
|
||||
SvgPolygon();
|
||||
|
||||
void setPoints(const std::vector<Point>& loc);
|
||||
};
|
||||
|
||||
class SvgPolyline : public SvgShapeElement
|
||||
{
|
||||
public:
|
||||
SvgPolyline();
|
||||
|
||||
void setPoints(const std::vector<Point>& loc);
|
||||
};
|
||||
|
||||
class SvgPath : public SvgShapeElement
|
||||
{
|
||||
public:
|
||||
SvgPath();
|
||||
|
||||
void setPath(const std::string& mPath);
|
||||
void setFillRule(const std::string& fillRule);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue