Commit 34073412 authored by Martin Schultz's avatar Martin Schultz

added better more descriptive tooltips for mindihedral angle and max angle of flood fill

moved parameters to different tabs (general and flood fill)
changed unit of min dihedral angle to be set in degree (internal use is still radians)
parent b87deb90
......@@ -2268,7 +2268,7 @@ void MeshObjectSelectionPlugin::addedEmptyObject(int _id )
void MeshObjectSelectionPlugin::set_dihedral_angle_threshold(const double _a)
{
dihedral_angle_threshold_ = _a;
dihedral_angle_threshold_ = OpenMesh::deg_to_rad(_a);
}
double MeshObjectSelectionPlugin::get_dihedral_angle_threshold()
......@@ -2288,7 +2288,7 @@ double MeshObjectSelectionPlugin::get_max_angle()
void MeshObjectSelectionPlugin::update_dihedral_angle_threshold_from_ui()
{
dihedral_angle_threshold_ = parameterWidget_->minDihedralAngle->value();
set_dihedral_angle_threshold( parameterWidget_->minDihedralAngle->value());
}
#if QT_VERSION < 0x050000
......
......@@ -16,6 +16,64 @@
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>323</width>
<height>139</height>
</size>
</property>
<attribute name="title">
<string>General</string>
</attribute>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>301</width>
<height>121</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="sizeConstraint">
<enum>QLayout::SetMaximumSize</enum>
</property>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Select Above Dihedral Angle:</string>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="minDihedralAngle">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Minimum dihedral angle of selected (Half)Edges (unit is degree)&lt;/p&gt;&lt;p&gt;Affects: &lt;/p&gt;&lt;p&gt;* Sphere Selection&lt;/p&gt;&lt;p&gt;* Lasso Selection&lt;/p&gt;&lt;p&gt;* Volume Selection&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="statusTip">
<string>Minimum dihedral angle of selected (Half)Edges (unit is degree)</string>
</property>
<property name="decimals">
<number>4</number>
</property>
<property name="maximum">
<double>180.000000000000000</double>
</property>
<property name="value">
<double>0.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Flood Fill</string>
......@@ -27,46 +85,28 @@
<enum>QLayout::SetMaximumSize</enum>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetMaximumSize</enum>
</property>
<item>
<widget class="QLabel" name="label_4">
<widget class="QLabel" name="label">
<property name="text">
<string>Select Above Dihedral Angle:</string>
<string>Maximum Angle</string>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="minDihedralAngle">
<widget class="QDoubleSpinBox" name="maxAngle">
<property name="toolTip">
<string>Maximum angle between faces that get flood filled</string>
<string>Maximum angle between faces that get flood filled (unit is degree)</string>
</property>
<property name="statusTip">
<string>Maximum angle between faces that get flood filled</string>
<string>Maximum angle between faces that get flood filled (unit is degree)</string>
</property>
<property name="decimals">
<number>4</number>
<property name="whatsThis">
<string/>
</property>
<property name="maximum">
<double>180.000000000000000</double>
</property>
<property name="value">
<double>0.000000000000000</double>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Maximum Angle</string>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="maxAngle">
<property name="maximum">
<double>180.000000000000000</double>
</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment