1 #ifndef VTESTBED_GUI_ROOTWINDOW_HH 2 #define VTESTBED_GUI_ROOTWINDOW_HH 4 #include <sqlitex/connection.hh> 6 #include <vtestbed/core/testbed.hh> 7 #include <vtestbed/db/hull.hh> 8 #include <vtestbed/db/ship.hh> 9 #include <vtestbed/graphics/ShipCompartments.hh> 10 #include <vtestbed/gui/ApplicationBase.hh> 11 #include <vtestbed/gui/ConsoleWindow.hh> 12 #include <vtestbed/gui/ControlWindow.hh> 13 #include <vtestbed/gui/FileDialog.hh> 14 #include <vtestbed/gui/GeneratorPanel.hh> 15 #include <vtestbed/gui/HullWindow.hh> 16 #include <vtestbed/gui/MagnumImgui/MagnumImGui.h> 17 #include <vtestbed/gui/SettingsWindow.hh> 18 #include <vtestbed/gui/ShipCompartmentsWindow.hh> 19 #include <vtestbed/gui/ShipMotionWindow.hh> 20 #include <vtestbed/gui/SimulationWindow.hh> 21 #include <vtestbed/gui/StatisticsWindow.hh> 22 #include <vtestbed/gui/TablePanel.hh> 23 #include <vtestbed/gui/TestbedPipeline.hh> 24 #include <vtestbed/gui/WavySurfaceWindow.hh> 25 #include <vtestbed/gui/WindWindow.hh> 26 #include <vtestbed/gui/imgui.hh> 27 #include <vtestbed/gui/types.hh> 38 using database_type = sqlite::connection;
43 bool _showShip =
true;
44 bool _transparencyShip =
false;
45 bool _showWavySurface =
true;
46 bool _showVelocityPotential =
false;
47 bool _showEarthFixedAxes =
false;
48 bool _showBodyFixedAxes =
false;
49 bool _showWindField =
false;
50 bool _showWindFieldBoundary =
false;
51 bool _showHullWindow =
false;
75 inline const ship_type& selectedShip()
const {
return this->_selectedShip; }
76 inline ship_type& selectedShip() {
return this->_selectedShip; }
79 compartmentsWindow() {
80 return &this->_compartmentsWindow;
84 inline HullWindow<T>& hullWindow() {
return this->_hullWindow; }
87 simulationWindow()
const {
88 return this->_simulationWindow;
92 showShip()
const noexcept {
97 transparencyShip()
const noexcept {
98 return _transparencyShip;
102 showWavySurface()
const noexcept {
103 return _showWavySurface;
107 showVelocityPotential()
const noexcept {
108 return _showVelocityPotential;
111 inline bool showAxes()
const {
return this->_showEarthFixedAxes; }
112 inline bool showBodyFixedAxes()
const {
return this->_showBodyFixedAxes; }
113 inline bool showWindField()
const {
return this->_showWindField; }
114 inline bool showWindFieldBoundary()
const {
return this->_showWindFieldBoundary; }
116 inline database_type* db() {
return &this->_db; }
128 #endif // vim:filetype=cpp