2023-01-23 22:40:55 +00:00
|
|
|
#pragma once
|
|
|
|
#include "../shape/Vector2.h"
|
2023-02-05 00:43:57 +00:00
|
|
|
#include <JuceHeader.h>
|
|
|
|
#include "../shape/Shape.h"
|
2023-01-23 22:40:55 +00:00
|
|
|
|
2023-02-05 00:43:57 +00:00
|
|
|
class SvgParser {
|
|
|
|
public:
|
|
|
|
SvgParser(juce::String svgFile);
|
|
|
|
~SvgParser();
|
|
|
|
|
2023-07-30 13:01:56 +00:00
|
|
|
static void pathToShapes(juce::Path& path, std::vector<std::unique_ptr<Shape>>& shapes);
|
|
|
|
|
2023-02-05 00:43:57 +00:00
|
|
|
std::vector<std::unique_ptr<Shape>> draw();
|
|
|
|
private:
|
|
|
|
|
|
|
|
std::vector<std::unique_ptr<Shape>> shapes;
|
2023-01-23 22:40:55 +00:00
|
|
|
};
|