initial rough working

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

No files matched your search

+9 -3
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();
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.