mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2121 Intersections: Set dip angle range to [0, 180]
This commit is contained in:
parent
3983aecd2e
commit
17cb520879
@ -649,12 +649,18 @@ void RimIntersection::defineEditorAttribute(const caf::PdmFieldHandle* field, QS
|
|||||||
caf::PdmUiDoubleSliderEditorAttribute* doubleSliderAttrib = dynamic_cast<caf::PdmUiDoubleSliderEditorAttribute*>(attribute);
|
caf::PdmUiDoubleSliderEditorAttribute* doubleSliderAttrib = dynamic_cast<caf::PdmUiDoubleSliderEditorAttribute*>(attribute);
|
||||||
if (doubleSliderAttrib)
|
if (doubleSliderAttrib)
|
||||||
{
|
{
|
||||||
if (field == &m_azimuthAngle || field == &m_dipAngle)
|
if (field == &m_azimuthAngle)
|
||||||
{
|
{
|
||||||
doubleSliderAttrib->m_minimum = 0;
|
doubleSliderAttrib->m_minimum = 0;
|
||||||
doubleSliderAttrib->m_maximum = 360;
|
doubleSliderAttrib->m_maximum = 360;
|
||||||
doubleSliderAttrib->m_sliderTickCount = 360;
|
doubleSliderAttrib->m_sliderTickCount = 360;
|
||||||
}
|
}
|
||||||
|
else if (field == &m_dipAngle)
|
||||||
|
{
|
||||||
|
doubleSliderAttrib->m_minimum = 0;
|
||||||
|
doubleSliderAttrib->m_maximum = 180;
|
||||||
|
doubleSliderAttrib->m_sliderTickCount = 180;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (field == &inputPolyLineFromViewerEnabled)
|
else if (field == &inputPolyLineFromViewerEnabled)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user