Improve node to svg conversion.
This commit is contained in:
parent
64f0b3e77a
commit
26ecae46b3
22 changed files with 403 additions and 126 deletions
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include "AbstractGeometricItem.h"
|
||||
#include "Point.h"
|
||||
|
||||
class Circle : public AbstractGeometricItem
|
||||
{
|
||||
public:
|
||||
Circle(const Point& centre, double radius = 0.5);
|
||||
|
||||
const Point& getLocation() const override;
|
||||
|
||||
double getRadius() const;
|
||||
|
||||
double getMinorRadius() const;
|
||||
|
||||
void setMinorRadius(double radius);
|
||||
|
||||
void sample(Grid<unsigned char>* grid) const override;
|
||||
|
||||
Bounds getSize() const override;
|
||||
|
||||
Type getType() const override;
|
||||
|
||||
private:
|
||||
double mMinorRadius{ 0.5 };
|
||||
double mRadius{ 0.5 };
|
||||
Point mCentre;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue