ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
gui.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include <iostream>
9 
10 #ifdef GUI_ENABLED
11 #include <QApplication>
12 
13 #include "ui/main_window.h"
14 #else
15 // Dummy QApplication class when GUI is disabled
16 class QApplication {
17 public:
18  QApplication(int argc, char** argv) {}
19 };
20 #endif
21 
22 namespace colmap {
23 
24 #if defined(CUDA_ENABLED) || !defined(OPENGL_ENABLED)
25 const bool kUseOpenGL = false;
26 #else
27 const bool kUseOpenGL = true;
28 #endif
29 
30 int RunGraphicalUserInterface(int argc, char** argv);
31 int RunProjectGenerator(int argc, char** argv);
32 
33 } // namespace colmap
QApplication(int argc, char **argv)
Definition: gui.h:18
const bool kUseOpenGL
Definition: gui.h:25
int RunGraphicalUserInterface(int argc, char **argv)
Definition: gui.cc:39
int RunProjectGenerator(int argc, char **argv)
Definition: gui.cc:76