mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1842 RFT Plot. Implement property view and RFT plot commands
This commit is contained in:
@@ -41,8 +41,8 @@ RimRftPlotCollection::RimRftPlotCollection()
|
||||
{
|
||||
CAF_PDM_InitObject("RFT Plots", ":/WellLogPlots16x16.png", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&rftPlots, "RftPlots", "", "", "", "");
|
||||
rftPlots.uiCapability()->setUiHidden(true);
|
||||
CAF_PDM_InitFieldNoDefault(&m_rftPlots, "RftPlots", "", "", "", "");
|
||||
m_rftPlots.uiCapability()->setUiHidden(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -50,7 +50,7 @@ RimRftPlotCollection::RimRftPlotCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimRftPlotCollection::~RimRftPlotCollection()
|
||||
{
|
||||
rftPlots.deleteAllChildObjects();
|
||||
m_rftPlots.deleteAllChildObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -184,3 +184,42 @@ void RimRftPlotCollection::removeExtractors(const RigGeoMechCaseData* caseData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::vector<RimWellRftPlot*> RimRftPlotCollection::rftPlots() const
|
||||
{
|
||||
std::vector<RimWellRftPlot*> plots;
|
||||
for (const auto& plot : m_rftPlots)
|
||||
{
|
||||
plots.push_back(plot);
|
||||
}
|
||||
return plots;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimRftPlotCollection::addPlot(RimWellRftPlot* newPlot)
|
||||
{
|
||||
m_rftPlots.push_back(newPlot);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimRftPlotCollection::removePlot(RimWellRftPlot* plot)
|
||||
{
|
||||
size_t index = m_rftPlots.index(plot);
|
||||
if (index < m_rftPlots.size())
|
||||
m_rftPlots.erase(index);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimRftPlotCollection::deleteAllPlots()
|
||||
{
|
||||
m_rftPlots.deleteAllChildObjects();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user