1 #include <QVTKOpenGLWidget.h>
2 #include <vtkSmartPointer.h>
4 #include <QApplication>
5 #include <QSurfaceFormat>
15 #include <vtkAutoInit.h>
16 VTK_MODULE_INIT(vtkInteractionStyle)
17 VTK_MODULE_INIT(vtkRenderingFreeType)
18 VTK_MODULE_INIT(vtkRenderingOpenGL2)
21 int main(
int argc,
char* argv[])
24 QSurfaceFormat::setDefaultFormat(QVTKOpenGLWidget::defaultFormat());
26 auto myOutputWindow = vtkSmartPointer<VtkConsoleOutputWindow>::New();
27 vtkOutputWindow::SetInstance(myOutputWindow);
29 QApplication a(argc, argv);
30 QApplication::setApplicationName(
"OpenGeoSys - Data Explorer");
31 QApplication::setApplicationVersion(
33 QApplication::setOrganizationName(
"OpenGeoSys Community");
34 QApplication::setOrganizationDomain(
"opengeosys.org");
35 setlocale(LC_NUMERIC,
"C");
36 QLocale::setDefault(QLocale::German);
37 auto w = std::make_unique<MainWindow>();
38 w->setWindowTitle(w->windowTitle() +
" - " +
40 if (QCoreApplication::arguments().size() > 1)
42 w->loadFileOnStartUp(QCoreApplication::arguments().at(1));
45 int returncode = QApplication::exec();
int main(int argc, char *argv[])
GITINFOLIB_EXPORT const std::string ogs_version