#1842 RFT Plot. Implement property view and RFT plot commands

This commit is contained in:
Bjørn Erik Jensen
2017-09-29 11:24:18 +02:00
parent 536225eb7e
commit 141bfd27d7
16 changed files with 306 additions and 658 deletions

View File

@@ -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();
}