mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1039 - pre-proto - Added command feature for generating new fracture
This commit is contained in:
@@ -59,6 +59,8 @@
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
#include "RimFractureCollection.h"
|
||||
|
||||
#include "ToggleCommands/RicToggleItemsFeatureImpl.h"
|
||||
|
||||
#include "cafPdmUiItem.h"
|
||||
@@ -351,6 +353,11 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
|
||||
{
|
||||
commandIds << "RicExportFaultsFeature";
|
||||
}
|
||||
else if (dynamic_cast<RimFractureCollection*>(uiItem))
|
||||
{
|
||||
commandIds << "RicNewSimWellFractureFeature";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (dynamic_cast<RimView*>(uiItem))
|
||||
|
||||
@@ -53,8 +53,8 @@ RimFracture::RimFracture(void)
|
||||
CAF_PDM_InitFieldNoDefault(&wellpath, "WellPath", "Well path for measured deph", "", "", "");
|
||||
|
||||
CAF_PDM_InitField(&i, "I", 1, "Fracture location cell I", "", "", "");
|
||||
CAF_PDM_InitField(&i, "J", 1, "Fracture location cell J", "", "", "");
|
||||
CAF_PDM_InitField(&i, "K", 1, "Fracture location cell K", "", "", "");
|
||||
CAF_PDM_InitField(&j, "J", 1, "Fracture location cell J", "", "", "");
|
||||
CAF_PDM_InitField(&k, "K", 1, "Fracture location cell K", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&fractureDefinition, "FractureDef", "FractureDef", "", "", "");
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ RimFractureCollection::RimFractureCollection(void)
|
||||
CAF_PDM_InitField(&isActive, "Active", true, "Active", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&fractures, "Fractures", "", "", "", "");
|
||||
|
||||
fractures.uiCapability()->setUiHidden(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -76,9 +76,6 @@ public:
|
||||
|
||||
caf::PdmChildArrayField<RimMultiSnapshotDefinition*> multiSnapshotDefinitions;
|
||||
|
||||
caf::PdmChildArrayField<RimFractureDefinition*> fractureDefinition;
|
||||
caf::PdmChildArrayField<RimFractureCollection*> fractureCollection;
|
||||
|
||||
caf::PdmField<QString> mainWindowTreeViewState;
|
||||
caf::PdmField<QString> mainWindowCurrentModelIndexPath;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user