#1568 Add checkbox to well path fracture collection

This commit is contained in:
Magne Sjaastad
2017-06-09 10:33:50 +02:00
parent 7d1deb319f
commit 5f20ef1a0a
3 changed files with 24 additions and 4 deletions

View File

@@ -18,7 +18,9 @@
#include "RimWellPathFractureCollection.h"
#include "RimProject.h"
#include "RimWellPathFracture.h"
#include "cafPdmObject.h"
@@ -35,6 +37,9 @@ RimWellPathFractureCollection::RimWellPathFractureCollection(void)
CAF_PDM_InitFieldNoDefault(&fractures, "Fractures", "", "", "", "");
fractures.uiCapability()->setUiHidden(true);
setName("Fractures");
nameField()->uiCapability()->setUiHidden(true);
}
//--------------------------------------------------------------------------------------------------
@@ -43,7 +48,6 @@ RimWellPathFractureCollection::RimWellPathFractureCollection(void)
RimWellPathFractureCollection::~RimWellPathFractureCollection()
{
fractures.deleteAllChildObjects();
}
//--------------------------------------------------------------------------------------------------
@@ -53,3 +57,13 @@ void RimWellPathFractureCollection::deleteFractures()
{
fractures.deleteAllChildObjects();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellPathFractureCollection::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
{
RimProject* proj;
this->firstAncestorOrThisOfTypeAsserted(proj);
proj->createDisplayModelAndRedrawAllViews();
}