Refactor radar system
This commit is contained in:
@@ -10,6 +10,7 @@ Layout is intentionally split into two independent plot surfaces:
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from PyQt6.QtCore import Qt
|
||||
from PyQt6.QtWidgets import (
|
||||
QComboBox,
|
||||
QFrame,
|
||||
@@ -145,13 +146,22 @@ class AppWindowUiMixin:
|
||||
def _build_sar3d_plot_page(self) -> None:
|
||||
"""Create the 3D SAR page: front, side, top and 3D views in a 2x2 grid."""
|
||||
self._sar3d_plots_container = QWidget()
|
||||
layout = QGridLayout(self._sar3d_plots_container)
|
||||
layout = QVBoxLayout(self._sar3d_plots_container)
|
||||
layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.setSpacing(6)
|
||||
self._sar3d_status_label = QLabel()
|
||||
self._sar3d_status_label.setTextFormat(Qt.TextFormat.PlainText)
|
||||
self._sar3d_status_label.setWordWrap(True)
|
||||
layout.addWidget(self._sar3d_status_label)
|
||||
self._sar3d_plot_grid = QWidget()
|
||||
grid = QGridLayout(self._sar3d_plot_grid)
|
||||
grid.setContentsMargins(0, 0, 0, 0)
|
||||
grid.setSpacing(6)
|
||||
layout.addWidget(self._sar3d_plot_grid, stretch=1)
|
||||
self._sar3d_plots = {}
|
||||
for index, name in enumerate(SAR3D_VIEWS):
|
||||
self._sar3d_plots[name] = self._create_plot_widget(background="#0f141c")
|
||||
layout.addWidget(self._sar3d_plots[name], index // 2, index % 2)
|
||||
grid.addWidget(self._sar3d_plots[name], index // 2, index % 2)
|
||||
self._init_sar3d_views()
|
||||
self._clear_sar3d_plot()
|
||||
self._plot_stack.addWidget(self._sar3d_plots_container)
|
||||
|
||||
Reference in New Issue
Block a user