mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
#3698 Scale bar. Enable check box for showing/hiding scale bar
This commit is contained in:
parent
e3c619ddfe
commit
939dfe664a
@ -66,9 +66,6 @@ RimContourMapView::RimContourMapView()
|
||||
m_contourMapProjectionPartMgr = new RivContourMapProjectionPartMgr(contourMapProjection(), this);
|
||||
|
||||
((RiuViewerToViewInterface*)this)->setCameraPosition(defaultViewMatrix);
|
||||
|
||||
//CAF_PDM_InitFieldNoDefault(&m_scaleLegendConfig, "ScaleLegendConfig", "Scale Legend Config", "", "", "");
|
||||
//m_scaleLegendConfig = new RimScaleLegendConfig();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -307,8 +304,7 @@ void RimContourMapView::updateLegends()
|
||||
}
|
||||
}
|
||||
|
||||
//m_viewer->addColorLegendToBottomLeftCorner(m_scaleLegendConfig->titledOverlayFrame());
|
||||
m_viewer->showScaleLegend(true);
|
||||
m_viewer->showScaleLegend(m_showScaleLegend());
|
||||
}
|
||||
}
|
||||
|
||||
@ -364,6 +360,11 @@ void RimContourMapView::fieldChangedByUi(const caf::PdmFieldHandle* changedField
|
||||
{
|
||||
scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
else if (changedField == &m_showScaleLegend)
|
||||
{
|
||||
updateLegends();
|
||||
scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user