mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
(#639) Show E (x,1) on axis label
As the space is limited, the text is compressed to "E-x1", "N-y2", "Z-3"
This commit is contained in:
@@ -155,6 +155,8 @@ void RimGeoMechView::loadDataAndUpdate()
|
||||
progress.setProgressDescription("Create Display model");
|
||||
|
||||
updateViewerWidget();
|
||||
setCustomAxisCrossLabels();
|
||||
|
||||
this->geoMechPropertyFilterCollection()->loadAndInitializePropertyFilters();
|
||||
|
||||
this->scheduleCreateDisplayModelAndRedraw();
|
||||
@@ -481,6 +483,8 @@ void RimGeoMechView::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
{
|
||||
bool generateDisplayModel = (viewer() == NULL);
|
||||
updateViewerWidget();
|
||||
setCustomAxisCrossLabels();
|
||||
|
||||
if (generateDisplayModel)
|
||||
{
|
||||
scheduleCreateDisplayModelAndRedraw();
|
||||
@@ -512,6 +516,18 @@ void RimGeoMechView::initAfterRead()
|
||||
this->updateUiIconFromToggleField();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::setCustomAxisCrossLabels()
|
||||
{
|
||||
// Minimalistic - size of axis cross does not have to be adjusted
|
||||
if (m_viewer) m_viewer->setAxisLabels("E-x1", "N-y2", "Z-3");
|
||||
|
||||
// A bit larger - size of axis cross is slightly larger
|
||||
//if (m_viewer) m_viewer->setAxisLabels("E(x,1)", "N(y,2)", "Z(3)");
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user