osci-render/Source/svg/SvgParser.h

18 wiersze
410 B
C++

#pragma once
#include "../shape/OsciPoint.h"
#include <JuceHeader.h>
#include "../shape/Shape.h"
class SvgParser {
public:
SvgParser(juce::String svgFile);
~SvgParser();
static void pathToShapes(juce::Path& path, std::vector<std::unique_ptr<Shape>>& shapes, bool normalise = false);
std::vector<std::unique_ptr<Shape>> draw();
private:
std::vector<std::unique_ptr<Shape>> shapes;
};