mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1037 - pre-proto - Moved fractureCollection from wellPathCollection to WellPath
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
#include "RivWellPathPartMgr.h"
|
||||
|
||||
#include "RimFractureCollection.h"
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include <QDir>
|
||||
@@ -96,6 +96,11 @@ RimWellPath::RimWellPath()
|
||||
CAF_PDM_InitFieldNoDefault(&m_wellLogFile, "WellLogFile", "Well Log File", "", "", "");
|
||||
m_wellLogFile.uiCapability()->setUiHidden(true);
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&fractureCollection, "FractureCollection", "Fractures", "", "", "");
|
||||
fractureCollection.uiCapability()->setUiHidden(true);
|
||||
fractureCollection = new RimFractureCollection();
|
||||
|
||||
|
||||
m_wellPath = NULL;
|
||||
}
|
||||
|
||||
@@ -124,6 +129,9 @@ RimWellPath::~RimWellPath()
|
||||
}
|
||||
}
|
||||
|
||||
if (fractureCollection()) delete fractureCollection();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
class RimProject;
|
||||
class RivWellPathPartMgr;
|
||||
class RimWellLogFile;
|
||||
class RimFractureCollection;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@@ -69,6 +70,9 @@ public:
|
||||
|
||||
caf::PdmChildField<RimWellLogFile*> m_wellLogFile;
|
||||
|
||||
caf::PdmChildField<RimFractureCollection*> fractureCollection;
|
||||
|
||||
|
||||
RigWellPath* wellPathGeometry() { return m_wellPath.p(); }
|
||||
RivWellPathPartMgr* partMgr();
|
||||
|
||||
|
||||
@@ -81,16 +81,16 @@ RimWellPathCollection::RimWellPathCollection()
|
||||
CAF_PDM_InitField(&wellPathClipZDistance, "WellPathClipZDistance", 100, "Well path clipping depth distance", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&wellPaths, "WellPaths", "Well Paths", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&fractureCollection, "FractureCollection", "Fractures", "", "", "");
|
||||
// CAF_PDM_InitFieldNoDefault(&fractureCollection, "FractureCollection", "Fractures", "", "", "");
|
||||
|
||||
wellPaths.uiCapability()->setUiHidden(true);
|
||||
fractureCollection.uiCapability()->setUiHidden(true);
|
||||
// fractureCollection.uiCapability()->setUiHidden(true);
|
||||
|
||||
m_wellPathCollectionPartManager = new RivWellPathCollectionPartMgr(this);
|
||||
|
||||
m_asciiFileReader = new RifWellPathAsciiFileReader;
|
||||
|
||||
fractureCollection = new RimFractureCollection();
|
||||
// fractureCollection = new RimFractureCollection();
|
||||
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ RimWellPathCollection::RimWellPathCollection()
|
||||
RimWellPathCollection::~RimWellPathCollection()
|
||||
{
|
||||
wellPaths.deleteAllChildObjects();
|
||||
if (fractureCollection()) delete fractureCollection();
|
||||
// if (fractureCollection()) delete fractureCollection();
|
||||
delete m_asciiFileReader;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
#include <QString>
|
||||
|
||||
class RimFractureCollection;
|
||||
//class RimFractureCollection;
|
||||
class RivWellPathCollectionPartMgr;
|
||||
class RifWellPathAsciiFileReader;
|
||||
class RimWellPath;
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
caf::PdmField<int> wellPathClipZDistance;
|
||||
|
||||
caf::PdmChildArrayField<RimWellPath*> wellPaths;
|
||||
caf::PdmChildField<RimFractureCollection*> fractureCollection;
|
||||
// caf::PdmChildField<RimFractureCollection*> fractureCollection;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user