mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update legend and 3D info on display model gen
This commit is contained in:
parent
be2f261f9d
commit
f13f05709f
@ -181,6 +181,8 @@ void RimGeoMechView::createDisplayModelAndRedraw()
|
||||
m_viewer->zoomAll();
|
||||
m_viewer->update();
|
||||
|
||||
updateLegends();
|
||||
overlayInfoConfig()->update3DInfo();
|
||||
}
|
||||
}
|
||||
RiuMainWindow::instance()->refreshAnimationActions();
|
||||
@ -205,6 +207,18 @@ void RimGeoMechView::resetLegendsInViewer()
|
||||
m_viewer->addColorLegendToBottomLeftCorner(this->cellResult()->legendConfig->legend());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::updateLegends()
|
||||
{
|
||||
if (m_viewer)
|
||||
{
|
||||
m_viewer->removeAllColorLegends();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -81,6 +81,7 @@ private:
|
||||
virtual void createDisplayModelAndRedraw();
|
||||
virtual void resetLegendsInViewer();
|
||||
|
||||
void updateLegends();
|
||||
caf::PdmPointer<RimGeoMechCase> m_geomechCase;
|
||||
cvf::ref<RivGeoMechPartMgr> m_geoMechVizModel;
|
||||
};
|
||||
|
@ -55,7 +55,6 @@ public:
|
||||
caf::PdmField<int> maximumFrameRate;
|
||||
caf::PdmField<bool> animationMode;
|
||||
|
||||
caf::PdmField<Rim3dOverlayInfoConfig*> overlayInfoConfig;
|
||||
// Animation
|
||||
int currentTimeStep() { return m_currentTimeStep;}
|
||||
virtual void setCurrentTimeStep(int frameIdx) = 0;
|
||||
@ -75,6 +74,8 @@ protected:
|
||||
virtual void updateViewerWidgetWindowTitle() = 0;
|
||||
QPointer<RiuViewer> m_viewer;
|
||||
caf::PdmField<int> m_currentTimeStep;
|
||||
caf::PdmField<Rim3dOverlayInfoConfig*> overlayInfoConfig;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user