#include <QVTKOpenGLWidget.h>
#include <vtkSmartPointer.h>
#include <QApplication>
#include <QSurfaceFormat>
#include <memory>
#include "InfoLib/GitInfo.h"
#include "VtkVis/VtkConsoleOutputWindow.h"
#include "mainwindow.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 21 of file main.cpp.
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();
GITINFOLIB_EXPORT const std::string ogs_version
References GitInfoLib::GitInfo::ogs_version.