mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Handling new field "Disable Lighting" in the view (#311)
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "cafPdmUiListEditor.h"
|
||||
#include "RigGeoMechCaseData.h"
|
||||
#include "RigFemPartResultsCollection.h"
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
namespace caf {
|
||||
|
||||
@@ -134,6 +135,15 @@ void RimGeoMechResultSlot::setReservoirView(RimGeoMechView* ownerReservoirView)
|
||||
m_reservoirView = ownerReservoirView;
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimGeoMechView* RimGeoMechResultSlot::reservoirView()
|
||||
{
|
||||
return m_reservoirView;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -177,6 +187,8 @@ void RimGeoMechResultSlot::fieldChangedByUi(const caf::PdmFieldHandle* changedFi
|
||||
if (m_reservoirView->geoMechCase()->geoMechData()->femPartResults()->assertResultsLoaded(this->resultAddress()))
|
||||
{
|
||||
m_reservoirView->hasUserRequestedAnimation = true;
|
||||
m_reservoirView->uiEnableDisableLighting(true);
|
||||
RiuMainWindow::instance()->refreshDrawStyleActions();
|
||||
}
|
||||
|
||||
m_reservoirView->createDisplayModelAndRedraw();
|
||||
|
||||
Reference in New Issue
Block a user