9 #ifndef UI_MAIN_WINDOW_H
10 #define UI_MAIN_WINDOW_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QCheckBox>
16 #include <QtWidgets/QDockWidget>
17 #include <QtWidgets/QDoubleSpinBox>
18 #include <QtWidgets/QGridLayout>
19 #include <QtWidgets/QGroupBox>
20 #include <QtWidgets/QHBoxLayout>
21 #include <QtWidgets/QLabel>
22 #include <QtWidgets/QLineEdit>
23 #include <QtWidgets/QMainWindow>
24 #include <QtWidgets/QMenu>
25 #include <QtWidgets/QMenuBar>
26 #include <QtWidgets/QSpacerItem>
27 #include <QtWidgets/QSpinBox>
28 #include <QtWidgets/QToolBar>
29 #include <QtWidgets/QToolBox>
30 #include <QtWidgets/QToolButton>
31 #include <QtWidgets/QVBoxLayout>
32 #include <QtWidgets/QWidget>
137 if (MainWindow->objectName().isEmpty())
138 MainWindow->setObjectName(QString::fromUtf8(
"MainWindow"));
139 MainWindow->resize(1008, 600);
141 actionHelp->setObjectName(QString::fromUtf8(
"actionHelp"));
149 actionSaveAs->setObjectName(QString::fromUtf8(
"actionSaveAs"));
151 centralWidget->setObjectName(QString::fromUtf8(
"centralWidget"));
155 gridLayout_7->setObjectName(QString::fromUtf8(
"gridLayout_7"));
160 toolButton_1->setObjectName(QString::fromUtf8(
"toolButton_1"));
168 toolButton_2->setObjectName(QString::fromUtf8(
"toolButton_2"));
176 toolButton_3->setObjectName(QString::fromUtf8(
"toolButton_3"));
183 toolButton_4->setObjectName(QString::fromUtf8(
"toolButton_4"));
190 toolButton_5->setObjectName(QString::fromUtf8(
"toolButton_5"));
197 toolButton_6->setObjectName(QString::fromUtf8(
"toolButton_6"));
208 toolButton_0->setObjectName(QString::fromUtf8(
"toolButton_0"));
219 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
220 sizePolicy.setHorizontalStretch(0);
221 sizePolicy.setVerticalStretch(0);
229 dockWidget->setObjectName(QString::fromUtf8(
"dockWidget"));
230 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred);
231 sizePolicy1.setHorizontalStretch(0);
232 sizePolicy1.setVerticalStretch(0);
233 sizePolicy1.setHeightForWidth(
dockWidget->sizePolicy().hasHeightForWidth());
236 dockWidget->setFeatures(QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable);
242 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
244 toolBox->setObjectName(QString::fromUtf8(
"toolBox"));
245 toolBox->setMinimumSize(QSize(0, 0));
258 gridLayout_3->setObjectName(QString::fromUtf8(
"gridLayout_3"));
260 spinBox_y_max->setObjectName(QString::fromUtf8(
"spinBox_y_max"));
268 label_z_min->setObjectName(QString::fromUtf8(
"label_z_min"));
273 spinBox_x_max->setObjectName(QString::fromUtf8(
"spinBox_x_max"));
281 spinBox_y_min->setObjectName(QString::fromUtf8(
"spinBox_y_min"));
289 label_x_min->setObjectName(QString::fromUtf8(
"label_x_min"));
294 spinBox_z_max->setObjectName(QString::fromUtf8(
"spinBox_z_max"));
302 spinBox_x_min->setObjectName(QString::fromUtf8(
"spinBox_x_min"));
315 label_y_min->setObjectName(QString::fromUtf8(
"label_y_min"));
320 label_x_max->setObjectName(QString::fromUtf8(
"label_x_max"));
325 spinBox_z_min->setObjectName(QString::fromUtf8(
"spinBox_z_min"));
333 label_y_max->setObjectName(QString::fromUtf8(
"label_y_max"));
338 label_z_max->setObjectName(QString::fromUtf8(
"label_z_max"));
355 gridLayout->setContentsMargins(11, 11, 11, 11);
356 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
358 spinBox_h_max->setObjectName(QString::fromUtf8(
"spinBox_h_max"));
365 label_s_max->setObjectName(QString::fromUtf8(
"label_s_max"));
370 spinBox_s_min->setObjectName(QString::fromUtf8(
"spinBox_s_min"));
377 label_h_min->setObjectName(QString::fromUtf8(
"label_h_min"));
382 label_h_max->setObjectName(QString::fromUtf8(
"label_h_max"));
387 label_s_min->setObjectName(QString::fromUtf8(
"label_s_min"));
392 spinBox_v_min->setObjectName(QString::fromUtf8(
"spinBox_v_min"));
399 label_v_min->setObjectName(QString::fromUtf8(
"label_v_min"));
404 spinBox_v_max->setObjectName(QString::fromUtf8(
"spinBox_v_max"));
411 spinBox_h_min->setObjectName(QString::fromUtf8(
"spinBox_h_min"));
418 label_v_max->setObjectName(QString::fromUtf8(
"label_v_max"));
423 spinBox_s_max->setObjectName(QString::fromUtf8(
"spinBox_s_max"));
486 gridLayout_4->setObjectName(QString::fromUtf8(
"gridLayout_4"));
488 label_epsilon->setObjectName(QString::fromUtf8(
"label_epsilon"));
538 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
582 gridLayout_5->setObjectName(QString::fromUtf8(
"gridLayout_5"));
612 gridLayout_6->setObjectName(QString::fromUtf8(
"gridLayout_6"));
614 label_max_age->setObjectName(QString::fromUtf8(
"label_max_age"));
649 MainWindow->addDockWidget(static_cast<Qt::DockWidgetArea>(2),
dockWidget);
650 toolBar =
new QToolBar(MainWindow);
651 toolBar->setObjectName(QString::fromUtf8(
"toolBar"));
652 MainWindow->addToolBar(Qt::TopToolBarArea,
toolBar);
653 menuBar =
new QMenuBar(MainWindow);
654 menuBar->setObjectName(QString::fromUtf8(
"menuBar"));
655 menuBar->setGeometry(QRect(0, 0, 1008, 22));
657 menuFile->setObjectName(QString::fromUtf8(
"menuFile"));
658 MainWindow->setMenuBar(
menuBar);
659 #ifndef QT_NO_SHORTCUT
678 #endif // QT_NO_SHORTCUT
719 QObject::connect(
spinBox_x_min, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setXMin(
int)));
720 QObject::connect(
spinBox_x_max, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setXMax(
int)));
721 QObject::connect(
spinBox_y_min, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setYMin(
int)));
722 QObject::connect(
spinBox_y_max, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setYMax(
int)));
723 QObject::connect(
spinBox_z_min, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setZMin(
int)));
724 QObject::connect(
spinBox_z_max, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setZMax(
int)));
725 QObject::connect(
spinBox_h_min, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setHMin(
int)));
726 QObject::connect(
spinBox_h_max, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setHMax(
int)));
727 QObject::connect(
spinBox_s_min, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setSMin(
int)));
728 QObject::connect(
spinBox_s_max, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setSMax(
int)));
729 QObject::connect(
spinBox_v_min, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setVMin(
int)));
730 QObject::connect(
spinBox_v_max, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setVMax(
int)));
732 QObject::connect(
spinBox_xyz_erode_size, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setXYZErodeSize(
int)));
734 QObject::connect(
lineEdit_epsilon, SIGNAL(editingFinished()), MainWindow, SLOT(setEpsilon()));
735 QObject::connect(
spinBox_max_iterations, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setMaxIterations(
int)));
736 QObject::connect(
spinBox_min_overlap, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setMinOverlap(
int)));
737 QObject::connect(
lineEdit_max_fitness, SIGNAL(editingFinished()), MainWindow, SLOT(setMaxFitness()));
742 QObject::connect(
spinBox_max_age, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setMaxAge(
int)));
743 QObject::connect(
spinBox_min_directions, SIGNAL(valueChanged(
int)), MainWindow, SLOT(setMinDirections(
int)));
749 QMetaObject::connectSlotsByName(MainWindow);
754 MainWindow->setWindowTitle(QApplication::translate(
"MainWindow",
"MainWindow",
nullptr));
755 actionHelp->setText(QApplication::translate(
"MainWindow",
"Help",
nullptr));
757 #ifndef QT_NO_TOOLTIP
758 actionReset_camera->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Reset the camera (Shortcut: c)</p></body></html>",
nullptr));
759 #endif // QT_NO_TOOLTIP
761 #ifndef QT_NO_TOOLTIP
762 actionToggle_coloring->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Toggle the coloring (Shortcut: k):</p><p>- RGB</p><p>- One color</p><p>- Visibility-confidence</p></body></html>",
nullptr));
763 #endif // QT_NO_TOOLTIP
765 #ifndef QT_NO_TOOLTIP
766 actionMesh_representation->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Toggle the display of the mesh (Shortcut: s):</p><p>- Points</p><p>- Wireframe</p><p>- Closed surface</p></body></html>",
nullptr));
767 #endif // QT_NO_TOOLTIP
768 actionSaveAs->setText(QApplication::translate(
"MainWindow",
"Save As ...",
nullptr));
769 #ifndef QT_NO_SHORTCUT
770 actionSaveAs->setShortcut(QApplication::translate(
"MainWindow",
"Ctrl+S",
nullptr));
771 #endif // QT_NO_SHORTCUT
772 #ifndef QT_NO_TOOLTIP
773 toolButton_1->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Shows the unprocessed input data (Shortcut: 1).</p></body></html>",
nullptr));
774 #endif // QT_NO_TOOLTIP
775 toolButton_1->setText(QApplication::translate(
"MainWindow",
"Input",
nullptr));
776 #ifndef QT_NO_TOOLTIP
777 toolButton_2->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Shows the processed input data (Shortcut: 2).</p></body></html>",
nullptr));
778 #endif // QT_NO_TOOLTIP
779 toolButton_2->setText(QApplication::translate(
"MainWindow",
"Processed",
nullptr));
780 #ifndef QT_NO_TOOLTIP
781 toolButton_3->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Continuous registration (Shortcut: 3).</p></body></html>",
nullptr));
782 #endif // QT_NO_TOOLTIP
783 toolButton_3->setText(QApplication::translate(
"MainWindow",
"Continuous registration",
nullptr));
784 #ifndef QT_NO_TOOLTIP
785 toolButton_4->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Registers new data once and returns to showing the processed input data (Shortcut: 4).</p></body></html>",
nullptr));
786 #endif // QT_NO_TOOLTIP
787 toolButton_4->setText(QApplication::translate(
"MainWindow",
"Single registration",
nullptr));
788 #ifndef QT_NO_TOOLTIP
789 toolButton_5->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Shows the acquired model (Shortcut: 5).</p></body></html>",
nullptr));
790 #endif // QT_NO_TOOLTIP
791 toolButton_5->setText(QApplication::translate(
"MainWindow",
"Show model",
nullptr));
792 #ifndef QT_NO_TOOLTIP
793 toolButton_6->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Removes all unfit points (Shortcut: 6)</p></body></html>",
nullptr));
794 #endif // QT_NO_TOOLTIP
795 toolButton_6->setText(QApplication::translate(
"MainWindow",
"Clean",
nullptr));
796 #ifndef QT_NO_TOOLTIP
797 toolButton_0->setToolTip(QApplication::translate(
"MainWindow",
"<html><head/><body><p>Reset the scanning pipeline (Shortcut: 0).</p></body></html>",
nullptr));
798 #endif // QT_NO_TOOLTIP
799 toolButton_0->setText(QApplication::translate(
"MainWindow",
"Reset",
nullptr));
800 dockWidget->setWindowTitle(QApplication::translate(
"MainWindow",
"Settings",
nullptr));
801 #ifndef QT_NO_TOOLTIP
802 toolBox->setToolTip(QString());
803 #endif // QT_NO_TOOLTIP
804 #ifndef QT_NO_TOOLTIP
806 #endif // QT_NO_TOOLTIP
807 groupBox_crop_xyz->setTitle(QApplication::translate(
"MainWindow",
"Crop coordinates",
nullptr));
808 label_z_min->setText(QApplication::translate(
"MainWindow",
"z min",
nullptr));
809 label_x_min->setText(QApplication::translate(
"MainWindow",
"x min",
nullptr));
811 label_y_min->setText(QApplication::translate(
"MainWindow",
"y min",
nullptr));
812 label_x_max->setText(QApplication::translate(
"MainWindow",
"x max",
nullptr));
813 label_y_max->setText(QApplication::translate(
"MainWindow",
"y max",
nullptr));
814 label_z_max->setText(QApplication::translate(
"MainWindow",
"z max",
nullptr));
815 #ifndef QT_NO_TOOLTIP
817 #endif // QT_NO_TOOLTIP
818 groupBox_segment_hsv->setTitle(QApplication::translate(
"MainWindow",
"Color segmentation",
nullptr));
819 label_s_max->setText(QApplication::translate(
"MainWindow",
"S max",
nullptr));
820 label_h_min->setText(QApplication::translate(
"MainWindow",
"H min",
nullptr));
821 label_h_max->setText(QApplication::translate(
"MainWindow",
"H max",
nullptr));
822 label_s_min->setText(QApplication::translate(
"MainWindow",
"S min",
nullptr));
823 label_v_min->setText(QApplication::translate(
"MainWindow",
"V min",
nullptr));
824 label_v_max->setText(QApplication::translate(
"MainWindow",
"V max",
nullptr));
829 groupBox_convergence->setTitle(QApplication::translate(
"MainWindow",
"Convergence and failure criteria",
nullptr));
830 label_epsilon->setText(QApplication::translate(
"MainWindow",
"Epsilon",
nullptr));
831 label_max_iterations->setText(QApplication::translate(
"MainWindow",
"Max iterations",
nullptr));
832 label_min_overlap->setText(QApplication::translate(
"MainWindow",
"Min overlap",
nullptr));
833 label_max_fitness->setText(QApplication::translate(
"MainWindow",
"Max fitness",
nullptr));
838 groupBox_averaging->setTitle(QApplication::translate(
"MainWindow",
"Averaging",
nullptr));
842 label_max_age->setText(QApplication::translate(
"MainWindow",
"Max age",
nullptr));
843 label_min_directions->setText(QApplication::translate(
"MainWindow",
"Min directions",
nullptr));
845 toolBar->setWindowTitle(QApplication::translate(
"MainWindow",
"toolBar",
nullptr));
846 menuFile->setTitle(QApplication::translate(
"MainWindow",
"File",
nullptr));
857 #endif // UI_MAIN_WINDOW_H