mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1568 Add checkbox to well path fracture collection
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user