Improve node to svg conversion.
This commit is contained in:
parent
64f0b3e77a
commit
26ecae46b3
22 changed files with 403 additions and 126 deletions
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "SvgShapeElement.h"
|
||||
#include "DiscretePoint.h"
|
||||
#include "Point.h"
|
||||
|
||||
#include "XmlAttribute.h"
|
||||
|
||||
|
@ -10,9 +10,9 @@ class SvgCircle : public SvgShapeElement
|
|||
public:
|
||||
SvgCircle();
|
||||
|
||||
void setLocation(const DiscretePoint& loc);
|
||||
void setLocation(const Point& loc);
|
||||
|
||||
void setRadius(unsigned rad);
|
||||
void setRadius(double rad);
|
||||
};
|
||||
|
||||
class SvgRectangle : public SvgShapeElement
|
||||
|
@ -20,11 +20,11 @@ class SvgRectangle : public SvgShapeElement
|
|||
public:
|
||||
SvgRectangle();
|
||||
|
||||
void setLocation(const DiscretePoint& loc);
|
||||
void setLocation(const Point& loc);
|
||||
|
||||
void setWidth(unsigned width);
|
||||
void setWidth(double width);
|
||||
|
||||
void setHeight(unsigned height);
|
||||
void setHeight(double height);
|
||||
};
|
||||
|
||||
class SvgPolygon : public SvgShapeElement
|
||||
|
@ -32,7 +32,7 @@ class SvgPolygon : public SvgShapeElement
|
|||
public:
|
||||
SvgPolygon();
|
||||
|
||||
void setPoints(const std::vector<DiscretePoint>& loc);
|
||||
void setPoints(const std::vector<Point>& loc);
|
||||
};
|
||||
|
||||
class SvgPolyline : public SvgShapeElement
|
||||
|
@ -40,7 +40,7 @@ class SvgPolyline : public SvgShapeElement
|
|||
public:
|
||||
SvgPolyline();
|
||||
|
||||
void setPoints(const std::vector<DiscretePoint>& loc);
|
||||
void setPoints(const std::vector<Point>& loc);
|
||||
};
|
||||
|
||||
class SvgPath : public SvgShapeElement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue