mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 01:54:42 +00:00
Detacher dialog
This commit is contained in:
parent
ce4083ad8b
commit
59b63f5c90
142
src/meshlabplugins/meshfilter/detacher.ui
Normal file
142
src/meshlabplugins/meshfilter/detacher.ui
Normal file
@ -0,0 +1,142 @@
|
||||
<ui version="4.0" >
|
||||
<author></author>
|
||||
<comment></comment>
|
||||
<exportmacro></exportmacro>
|
||||
<class>DetacherDialog</class>
|
||||
<widget class="QDialog" name="DetacherDialog" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>204</width>
|
||||
<height>80</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>80</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<property name="windowIcon" >
|
||||
<iconset>..\..\meshlab\images\eye16.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<property name="margin" >
|
||||
<number>8</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item row="1" column="0" >
|
||||
<layout class="QHBoxLayout" >
|
||||
<property name="margin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QPushButton" name="okButton" >
|
||||
<property name="text" >
|
||||
<string>OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="cancelButton" >
|
||||
<property name="text" >
|
||||
<string>Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="0" >
|
||||
<layout class="QHBoxLayout" >
|
||||
<property name="margin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="thresholdLBL" >
|
||||
<property name="text" >
|
||||
<string>Threshold</string>
|
||||
</property>
|
||||
<property name="buddy" >
|
||||
<cstring>thresholdSB</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="thresholdSB" >
|
||||
<property name="decimals" >
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<double>99.999</double>
|
||||
</property>
|
||||
<property name="singleStep" >
|
||||
<double>0.001</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<tabstops>
|
||||
<tabstop>thresholdSB</tabstop>
|
||||
<tabstop>okButton</tabstop>
|
||||
<tabstop>cancelButton</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>okButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>DetacherDialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>87</x>
|
||||
<y>57</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>170</x>
|
||||
<y>67</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cancelButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>DetacherDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>165</x>
|
||||
<y>57</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>175</x>
|
||||
<y>67</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
33
src/meshlabplugins/meshfilter/detacherdialog.h
Normal file
33
src/meshlabplugins/meshfilter/detacherdialog.h
Normal file
@ -0,0 +1,33 @@
|
||||
#ifndef DETACHER_DIALOG_H
|
||||
#define DETACHER_DIALOG_H
|
||||
|
||||
// for options on decimator
|
||||
#include <QDialog>
|
||||
#include "ui_detacher.h"
|
||||
|
||||
class DetacherDialog : public QDialog, Ui::DetacherDialog {
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DetacherDialog() : QDialog()
|
||||
{
|
||||
setupUi( this );
|
||||
threshold = 0.00;
|
||||
}
|
||||
public slots:
|
||||
void on_thresholdSB_valueChanged(double threshold) {
|
||||
this->threshold = threshold;
|
||||
}
|
||||
public:
|
||||
|
||||
inline double getThreshold() {
|
||||
return threshold;
|
||||
}
|
||||
|
||||
private:
|
||||
// threshold value for refine
|
||||
double threshold;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
x
Reference in New Issue
Block a user