initial rough working

This commit is contained in:
robin
2024-05-06 11:11:12 +02:00
parent d7201962a5
commit 481375a6b7
22 changed files with 131 additions and 159 deletions

View File

@@ -7,22 +7,28 @@
#include <vtkProperty2D.h>
#include <vtkRenderer.h>
#include <vtkVertexGlyphFilter.h>
#include <memory>
#include "layers/BackgroundImage.h"
#include "layers/EGlyphLayer.h"
#include "layers/LGlyphLayer.h"
#include "Program.h"
#include "advection/UVGrid.h"
#include "advection/RK4AdvectionKernel.h"
using namespace std;
int main() {
auto l = new LGlyphLayer();
l->spoofPoints();
shared_ptr<UVGrid> uvGrid = std::make_shared<UVGrid>();
auto kernelRK4 = make_unique<RK4AdvectionKernel>(uvGrid);
auto l = new LGlyphLayer(move(kernelRK4));
// l->spoofPoints();
Program *program = new Program();
program->addLayer(new BackgroundImage("../../../../data/map_661-661.png"));
program->addLayer(new EGlyphLayer());
program->addLayer(new EGlyphLayer(uvGrid));
program->addLayer(l);
program->render();