#3468 Add new valve completions to perforation intervals.

This commit is contained in:
Gaute Lindkvist
2018-10-10 11:10:56 +02:00
parent ce2430ac2d
commit cfbe6a1a24
14 changed files with 453 additions and 14 deletions

View File

@@ -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;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------