mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Curve creator. Minor refactoring
This commit is contained in:
@@ -262,7 +262,7 @@ void RicSummaryCurveCreator::updateFromSummaryPlot(RimSummaryPlot* targetPlot)
|
|||||||
if (m_targetPlot)
|
if (m_targetPlot)
|
||||||
{
|
{
|
||||||
populateCurveCreator(*m_targetPlot);
|
populateCurveCreator(*m_targetPlot);
|
||||||
loadDataAndUpdatePlot();
|
syncPreviewCurvesFromUiSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
caf::PdmUiItem::updateConnectedEditors();
|
caf::PdmUiItem::updateConnectedEditors();
|
||||||
@@ -328,7 +328,7 @@ void RicSummaryCurveCreator::fieldChangedByUi(const caf::PdmFieldHandle* changed
|
|||||||
changedField == &m_selectedSummaryCategories ||
|
changedField == &m_selectedSummaryCategories ||
|
||||||
identifierAndField != nullptr)
|
identifierAndField != nullptr)
|
||||||
{
|
{
|
||||||
loadDataAndUpdatePlot();
|
syncPreviewCurvesFromUiSelection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -846,14 +846,6 @@ void RicSummaryCurveCreator::buildAddressListForCategoryRecursively(RifEclipseSu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RicSummaryCurveCreator::loadDataAndUpdatePlot()
|
|
||||||
{
|
|
||||||
syncPreviewCurvesFromUiSelection();
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ private:
|
|||||||
std::vector<std::pair<RifEclipseSummaryAddress::SummaryIdentifierType, QString>>& identifierPath,
|
std::vector<std::pair<RifEclipseSummaryAddress::SummaryIdentifierType, QString>>& identifierPath,
|
||||||
std::set<RifEclipseSummaryAddress>& addressSet);
|
std::set<RifEclipseSummaryAddress>& addressSet);
|
||||||
|
|
||||||
void loadDataAndUpdatePlot();
|
|
||||||
void syncPreviewCurvesFromUiSelection();
|
void syncPreviewCurvesFromUiSelection();
|
||||||
void updatePreviewCurvesFromCurveDefinitions(const std::set<std::pair<RimSummaryCase*, RifEclipseSummaryAddress> >& allCurveDefsToDisplay,
|
void updatePreviewCurvesFromCurveDefinitions(const std::set<std::pair<RimSummaryCase*, RifEclipseSummaryAddress> >& allCurveDefsToDisplay,
|
||||||
const std::set<std::pair<RimSummaryCase*, RifEclipseSummaryAddress> >& curveDefsToAdd,
|
const std::set<std::pair<RimSummaryCase*, RifEclipseSummaryAddress> >& curveDefsToAdd,
|
||||||
|
|||||||
Reference in New Issue
Block a user