fix: removed unnecessary code
This commit is contained in:
parent
8f4dd0afc2
commit
211a219431
|
|
@ -45,66 +45,5 @@ int main(int argc, char* argv[]) {
|
|||
|
||||
mainWindow.show();
|
||||
return app.exec();
|
||||
|
||||
// Control area.
|
||||
// QDockWidget controlDock;
|
||||
// mainWindow.addDockWidget(Qt::LeftDockWidgetArea, &controlDock);
|
||||
//
|
||||
// QLabel controlDockTitle("Control Dock");
|
||||
// controlDockTitle.setMargin(20);
|
||||
// controlDock.setTitleBarWidget(&controlDockTitle);
|
||||
//
|
||||
// QPointer<QVBoxLayout> dockLayout = new QVBoxLayout();
|
||||
// QWidget layoutContainer;
|
||||
// layoutContainer.setLayout(dockLayout);
|
||||
// controlDock.setWidget(&layoutContainer);
|
||||
//
|
||||
// QPushButton randomizeButton;
|
||||
// randomizeButton.setText("Randomize");
|
||||
// dockLayout->addWidget(&randomizeButton);
|
||||
|
||||
// Render area.
|
||||
// QPointer<QVTKOpenGLNativeWidget> vtkRenderWidget =
|
||||
// new QVTKOpenGLNativeWidget();
|
||||
// mainWindow.setCentralWidget(vtkRenderWidget);
|
||||
|
||||
// VTK part.
|
||||
// vtkNew<vtkGenericOpenGLRenderWindow> window;
|
||||
// vtkRenderWidget->setRenderWindow(window.Get());
|
||||
|
||||
cout << "Reading data..." << endl;
|
||||
string dataPath = "../../../../data";
|
||||
shared_ptr<UVGrid> uvGrid = make_shared<UVGrid>(dataPath);
|
||||
auto kernelRK4 = make_unique<RK4AdvectionKernel>(uvGrid);
|
||||
auto kernelRK4BoundaryChecked = make_unique<SnapBoundaryConditionKernel>(std::move(kernelRK4), uvGrid);
|
||||
cout << "Starting vtk..." << endl;
|
||||
|
||||
auto l = new LGlyphLayer(uvGrid, std::move(kernelRK4BoundaryChecked));
|
||||
// l->spoofPoints();
|
||||
l->setDt(DT);
|
||||
// TODO: implement feature to call this function on widget
|
||||
// l->cycleGlyphStyle();
|
||||
|
||||
unique_ptr<Program> program = make_unique<Program>();
|
||||
program->addLayer(new BackgroundImage(dataPath + "/map_qgis_1035.png"));
|
||||
// TODO: implement feature to cycle between layers thru QT
|
||||
program->addLayer(new EGlyphLayer(uvGrid));
|
||||
program->addLayer(new EColLayer(uvGrid));
|
||||
program->addLayer(l);
|
||||
|
||||
program->setupInteractions();
|
||||
|
||||
// program->render();
|
||||
|
||||
// Setup initial status.
|
||||
// std::mt19937 randEng(0);
|
||||
// ::Randomize(sphere, mapper, window, randEng);
|
||||
|
||||
// connect the buttons
|
||||
// QObject::connect(&randomizeButton, &QPushButton::released,
|
||||
// [&]() { ::Randomize(sphere, mapper, window, randEng); });
|
||||
|
||||
mainWindow.show();
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue