kopia lustrzana https://github.com/jameshball/osci-render
23 wiersze
546 B
C++
23 wiersze
546 B
C++
#pragma once
|
|
#include "../shape/OsciPoint.h"
|
|
#include <JuceHeader.h>
|
|
#include "../shape/Shape.h"
|
|
#include "../svg/SvgParser.h"
|
|
#include "../shape/Line.h"
|
|
|
|
class LineArtParser {
|
|
public:
|
|
LineArtParser(juce::String json);
|
|
~LineArtParser();
|
|
|
|
void setFrame(int fNum);
|
|
std::vector<std::unique_ptr<Shape>> draw();
|
|
|
|
static std::vector<Line> generateFrame(juce::Array < juce::var> objects, double focalLength);
|
|
private:
|
|
void parseJsonFrames(juce::String jsonStr);
|
|
int frameNumber = 0;
|
|
std::vector<std::vector<Line>> frames;
|
|
int numFrames = 0;
|
|
};
|