Handling new field "Disable Lighting" in the view (#311)

This commit is contained in:
Stein Dale
2015-06-17 15:07:20 +02:00
parent 4b1a71fd91
commit 8bdb957c8c
7 changed files with 31 additions and 12 deletions

View File

@@ -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();