mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3468 Add new valve completions to perforation intervals.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "RimProject.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathValve.h"
|
||||
|
||||
#include "cafPdmUiDateEditor.h"
|
||||
#include "cafPdmUiDoubleSliderEditor.h"
|
||||
@@ -51,6 +52,9 @@ RimPerforationInterval::RimPerforationInterval()
|
||||
CAF_PDM_InitField(&m_useCustomEndDate, "UseCustomEndDate", false, "Custom End Date", "", "", "");
|
||||
CAF_PDM_InitField(&m_endDate, "EndDate", QDateTime::currentDateTime(), "End Date", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_valves, "Valves", "Valves", "", "", "");
|
||||
m_valves.uiCapability()->setUiHidden(true);
|
||||
|
||||
nameField()->uiCapability()->setUiReadOnly(true);
|
||||
|
||||
m_startMD.uiCapability()->setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());
|
||||
@@ -205,6 +209,27 @@ void RimPerforationInterval::setUnitSystemSpecificDefaults()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPerforationInterval::addValve(RimWellPathValve* valve)
|
||||
{
|
||||
m_valves.push_back(valve);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimWellPathValve*> RimPerforationInterval::valves() const
|
||||
{
|
||||
std::vector<RimWellPathValve*> allValves;
|
||||
for (RimWellPathValve* valve : m_valves())
|
||||
{
|
||||
allValves.push_back(valve);
|
||||
}
|
||||
return allValves;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user