(#679) Inactive cells can be toggled from the intersection

This commit is contained in:
Jacob Støren
2015-11-27 13:51:39 +01:00
parent 9f0c9d13b9
commit 0bda8e9a2f
5 changed files with 24 additions and 7 deletions
@@ -74,6 +74,8 @@ RimCrossSection::RimCrossSection()
CAF_PDM_InitFieldNoDefault(&simulationWell, "SimulationWell", "Simulation Well", "", "", "");
CAF_PDM_InitField (&m_branchIndex, "Branch", -1, "Branch", "", "", "");
CAF_PDM_InitField (&m_extentLength, "ExtentLength", 200.0, "Extent length", "", "", "");
CAF_PDM_InitField (&showInactiveCells, "ShowInactiveCells", false, "Inactive Cells", "", "", "");
uiCapability()->setUiChildrenHidden(true);
}
@@ -89,7 +91,8 @@ void RimCrossSection::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
changedField == &wellPath ||
changedField == &simulationWell ||
changedField == &m_branchIndex ||
changedField == &m_extentLength)
changedField == &m_extentLength ||
changedField == &showInactiveCells)
{
m_crossSectionPartMgr = NULL;
@@ -149,6 +152,8 @@ void RimCrossSection::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering&
// User defined poly line
}
uiOrdering.add(&showInactiveCells);
updateWellExtentDefaultValue();
uiOrdering.setForgetRemainingFields(true);