First draft of the training GUI + other stuff

This commit is contained in:
Daniel Girardeau-Montaut
2018-09-21 20:16:44 +02:00
parent ebb04ac70b
commit aa3fb9f9b9
4 changed files with 1553 additions and 3 deletions
+110
View File
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>30</x>
<y>240</y>
<width>341</width>
<height>32</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QFrame" name="testCloudFrame">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>205</width>
<height>54</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QComboBox" name="testCloudComboBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Source cloud #1 (not labelled)</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_12">
<property name="styleSheet">
<string notr="true">color: red;</string>
</property>
<property name="text">
<string>Warning: points must be associated to the
same class labels as the trained classes</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>
+2 -2
View File
@@ -32,7 +32,7 @@ void qCanupo2Plugin::onNewSelection(const ccHObject::Container& selectedEntities
// m_action->setEnabled(!selectedEntities.empty());
}
void qCanupo2Plugin::getActions(QActionGroup& group)
QList<QAction*> qCanupo2Plugin::getActions()
{
if (!m_action)
{
@@ -43,7 +43,7 @@ void qCanupo2Plugin::getActions(QActionGroup& group)
connect(m_action, SIGNAL(triggered()), this, SLOT(doAction()));
}
group.addAction(m_action);
return QList<QAction*>{m_action};
}
void qCanupo2Plugin::doAction()
+1 -1
View File
@@ -41,7 +41,7 @@ public:
//inherited from ccStdPluginInterface
void onNewSelection(const ccHObject::Container& selectedEntities) override;
virtual void getActions(QActionGroup& group) override;
virtual QList<QAction*> getActions() override;
protected slots:
+1440
View File
File diff suppressed because it is too large Load Diff