(#396) untangled Geomech Result Definition from the use of GeoMechView

In order to reuse the RimGeoMechResultDefinition in the curve data.
This commit is contained in:
Jacob Støren
2015-09-01 17:11:23 +02:00
parent c35e3fceaf
commit 52281633d6
6 changed files with 29 additions and 49 deletions

View File

@@ -81,7 +81,7 @@ RimGeoMechView::RimGeoMechView(void)
m_propertyFilterCollection = new RimGeoMechPropertyFilterCollection();
m_propertyFilterCollection.uiCapability()->setUiHidden(true);
this->cellResult()->setReservoirView(this);
//this->cellResult()->setReservoirView(this);
this->cellResult()->legendConfig()->setReservoirView(this);
m_scaleTransform = new cvf::Transform();
@@ -362,6 +362,8 @@ void RimGeoMechView::updateDisplayModelVisibility()
void RimGeoMechView::setGeoMechCase(RimGeoMechCase* gmCase)
{
m_geomechCase = gmCase;
cellResult()->setGeoMechCase(gmCase);
}
//--------------------------------------------------------------------------------------------------
@@ -494,7 +496,7 @@ void RimGeoMechView::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
//--------------------------------------------------------------------------------------------------
void RimGeoMechView::initAfterRead()
{
this->cellResult()->setReservoirView(this);
this->cellResult()->setGeoMechCase(m_geomechCase);
this->updateUiIconFromToggleField();
}