2018-03-27 01:51:14 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017- Statoil ASA
|
2018-05-02 05:47:12 -05:00
|
|
|
//
|
2018-03-27 01:51:14 -05:00
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
2018-05-02 05:47:12 -05:00
|
|
|
//
|
2018-03-27 01:51:14 -05:00
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
2018-05-02 05:47:12 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-03-27 01:51:14 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-04-19 07:00:00 -05:00
|
|
|
#include "RimEnsembleCurveSetCollection.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-12-17 08:54:23 -06:00
|
|
|
#include "RiaStdStringTools.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-19 07:00:00 -05:00
|
|
|
#include "RimEnsembleCurveSet.h"
|
2018-05-02 05:47:12 -05:00
|
|
|
#include "RimProject.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
#include "RimSummaryCase.h"
|
|
|
|
#include "RimSummaryCrossPlot.h"
|
|
|
|
#include "RimSummaryCurve.h"
|
2018-05-02 05:47:12 -05:00
|
|
|
#include "RimSummaryCurveAppearanceCalculator.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
#include "RimSummaryPlot.h"
|
|
|
|
#include "RimSummaryPlotSourceStepping.h"
|
|
|
|
|
2022-01-17 06:14:21 -06:00
|
|
|
#include "RiuPlotCurve.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
CAF_PDM_SOURCE_INIT( RimEnsembleCurveSetCollection, "RimEnsembleCurveSetCollection" );
|
2018-03-27 01:51:14 -05:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
RimEnsembleCurveSetCollection::RimEnsembleCurveSetCollection()
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2022-01-07 01:31:52 -06:00
|
|
|
CAF_PDM_InitObject( "Ensemble Curve Sets", ":/EnsembleCurveSets16x16.png" );
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2021-11-14 07:15:12 -06:00
|
|
|
CAF_PDM_InitFieldNoDefault( &m_curveSets, "EnsembleCurveSets", "Ensemble Curve Sets" );
|
2021-10-13 06:39:46 -05:00
|
|
|
m_curveSets.uiCapability()->setUiTreeHidden( true );
|
2019-09-06 03:40:57 -05:00
|
|
|
m_curveSets.uiCapability()->setUiTreeChildrenHidden( false );
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2021-11-14 07:15:12 -06:00
|
|
|
CAF_PDM_InitField( &m_showCurves, "IsActive", true, "Show Curves" );
|
2019-09-06 03:40:57 -05:00
|
|
|
m_showCurves.uiCapability()->setUiHidden( true );
|
2018-12-17 08:54:23 -06:00
|
|
|
|
2021-11-14 07:15:12 -06:00
|
|
|
CAF_PDM_InitFieldNoDefault( &m_ySourceStepping, "YSourceStepping", "" );
|
2018-12-17 08:54:23 -06:00
|
|
|
m_ySourceStepping = new RimSummaryPlotSourceStepping;
|
2022-01-06 08:18:09 -06:00
|
|
|
m_ySourceStepping->setSourceSteppingType( RimSummaryDataSourceStepping::Axis::Y_AXIS );
|
2021-10-13 06:39:46 -05:00
|
|
|
m_ySourceStepping.uiCapability()->setUiTreeHidden( true );
|
2019-09-06 03:40:57 -05:00
|
|
|
m_ySourceStepping.uiCapability()->setUiTreeChildrenHidden( true );
|
2018-12-17 08:54:23 -06:00
|
|
|
m_ySourceStepping.xmlCapability()->disableIO();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
RimEnsembleCurveSetCollection::~RimEnsembleCurveSetCollection()
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2022-05-31 06:08:07 -05:00
|
|
|
m_curveSets.deleteChildren();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2023-04-19 08:36:06 -05:00
|
|
|
bool RimEnsembleCurveSetCollection::isCurveSetsVisible() const
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
|
|
|
return m_showCurves();
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RimEnsembleCurveSetCollection::loadDataAndUpdate( bool updateParentPlot )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
for ( RimEnsembleCurveSet* curveSet : m_curveSets )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
curveSet->loadDataAndUpdate( false );
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
if ( updateParentPlot )
|
2018-04-30 01:01:12 -05:00
|
|
|
{
|
2023-05-12 14:41:34 -05:00
|
|
|
auto parentPlot = firstAncestorOrThisOfTypeAsserted<RimSummaryPlot>();
|
2018-06-01 08:37:47 -05:00
|
|
|
parentPlot->updateAll();
|
2018-04-30 01:01:12 -05:00
|
|
|
}
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
2018-04-18 01:32:16 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-04-18 01:32:16 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2022-01-17 06:14:21 -06:00
|
|
|
void RimEnsembleCurveSetCollection::setParentPlotAndReplot( RiuPlotWidget* plot )
|
2022-04-01 12:23:27 -05:00
|
|
|
{
|
|
|
|
setParentPlotNoReplot( plot );
|
|
|
|
|
|
|
|
if ( plot ) plot->replot();
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
void RimEnsembleCurveSetCollection::setParentPlotNoReplot( RiuPlotWidget* plot )
|
2018-04-18 01:32:16 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
for ( RimEnsembleCurveSet* curveSet : m_curveSets )
|
2018-04-18 01:32:16 -05:00
|
|
|
{
|
2022-01-17 06:14:21 -06:00
|
|
|
curveSet->setParentPlotNoReplot( plot );
|
2018-04-18 01:32:16 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2022-01-17 06:14:21 -06:00
|
|
|
void RimEnsembleCurveSetCollection::detachPlotCurves()
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
for ( const auto& curveSet : m_curveSets )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2022-06-24 09:16:46 -05:00
|
|
|
curveSet->deletePlotCurves();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-07 07:26:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2022-01-17 06:14:21 -06:00
|
|
|
void RimEnsembleCurveSetCollection::reattachPlotCurves()
|
2018-09-07 07:26:14 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
for ( const auto& curveSet : m_curveSets )
|
2018-09-07 07:26:14 -05:00
|
|
|
{
|
2022-01-17 06:14:21 -06:00
|
|
|
curveSet->reattachPlotCurves();
|
2018-09-07 07:26:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-03 05:50:53 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2022-01-17 06:14:21 -06:00
|
|
|
RimSummaryCurve* RimEnsembleCurveSetCollection::findRimCurveFromPlotCurve( const RiuPlotCurve* curve ) const
|
2020-01-03 05:50:53 -06:00
|
|
|
{
|
|
|
|
for ( RimEnsembleCurveSet* curveSet : m_curveSets )
|
|
|
|
{
|
|
|
|
for ( RimSummaryCurve* rimCurve : curveSet->curves() )
|
|
|
|
{
|
2022-01-17 06:14:21 -06:00
|
|
|
if ( rimCurve->isSameCurve( curve ) )
|
2020-01-03 05:50:53 -06:00
|
|
|
{
|
|
|
|
return rimCurve;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2018-04-20 05:30:59 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-04-20 05:30:59 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2022-01-17 06:14:21 -06:00
|
|
|
RimEnsembleCurveSet* RimEnsembleCurveSetCollection::findCurveSetFromPlotCurve( const RiuPlotCurve* curve ) const
|
2018-04-20 05:30:59 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
for ( RimEnsembleCurveSet* curveSet : m_curveSets )
|
2018-04-20 05:30:59 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
for ( RimSummaryCurve* rimCurve : curveSet->curves() )
|
2018-04-20 05:30:59 -05:00
|
|
|
{
|
2022-01-17 06:14:21 -06:00
|
|
|
if ( rimCurve->isSameCurve( curve ) )
|
2018-04-20 05:30:59 -05:00
|
|
|
{
|
|
|
|
return curveSet;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RimEnsembleCurveSetCollection::addCurveSet( RimEnsembleCurveSet* curveSet )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
if ( curveSet )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
m_curveSets.push_back( curveSet );
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RimEnsembleCurveSetCollection::deleteCurveSet( RimEnsembleCurveSet* curveSet )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2020-11-06 03:46:38 -06:00
|
|
|
deleteCurveSets( { curveSet } );
|
2018-09-13 05:38:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-09-13 05:38:17 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RimEnsembleCurveSetCollection::deleteCurveSets( const std::vector<RimEnsembleCurveSet*> curveSets )
|
2018-09-13 05:38:17 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
for ( const auto curveSet : curveSets )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2022-05-31 06:08:07 -05:00
|
|
|
m_curveSets.removeChild( curveSet );
|
2018-04-06 01:16:14 -05:00
|
|
|
delete curveSet;
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
std::vector<RimEnsembleCurveSet*> RimEnsembleCurveSetCollection::curveSets() const
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2023-05-12 14:41:34 -05:00
|
|
|
return m_curveSets.childrenByType();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
2018-05-11 01:01:10 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-05-11 01:01:10 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
size_t RimEnsembleCurveSetCollection::curveSetCount() const
|
|
|
|
{
|
|
|
|
return m_curveSets.size();
|
|
|
|
}
|
|
|
|
|
2018-12-17 08:54:23 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-12-17 08:54:23 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
std::vector<caf::PdmFieldHandle*> RimEnsembleCurveSetCollection::fieldsToShowInToolbar()
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
if ( m_ySourceStepping )
|
2018-12-17 08:54:23 -06:00
|
|
|
{
|
|
|
|
return m_ySourceStepping->fieldsToShowInToolbar();
|
|
|
|
}
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2018-12-17 08:54:23 -06:00
|
|
|
return std::vector<caf::PdmFieldHandle*>();
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-12-17 08:54:23 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RimEnsembleCurveSetCollection::setCurveSetForSourceStepping( RimEnsembleCurveSet* curveSet )
|
2018-12-17 08:54:23 -06:00
|
|
|
{
|
|
|
|
m_curveSetForSourceStepping = curveSet;
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-12-17 08:54:23 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
RimEnsembleCurveSet* RimEnsembleCurveSetCollection::curveSetForSourceStepping() const
|
|
|
|
{
|
|
|
|
return m_curveSetForSourceStepping;
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-12-17 08:54:23 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
std::vector<RimEnsembleCurveSet*> RimEnsembleCurveSetCollection::curveSetsForSourceStepping() const
|
|
|
|
{
|
|
|
|
std::vector<RimEnsembleCurveSet*> steppingCurveSets;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
if ( m_curveSetForSourceStepping )
|
2018-12-17 08:54:23 -06:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
steppingCurveSets.push_back( m_curveSetForSourceStepping );
|
2018-12-17 08:54:23 -06:00
|
|
|
|
|
|
|
{
|
|
|
|
// Add corresponding history/summary curve with or without H
|
|
|
|
|
2022-05-06 09:34:37 -05:00
|
|
|
std::string vectorName = m_curveSetForSourceStepping->summaryAddress().vectorName();
|
2018-12-17 08:54:23 -06:00
|
|
|
|
|
|
|
std::string candidateName;
|
2022-05-06 09:34:37 -05:00
|
|
|
if ( m_curveSetForSourceStepping->summaryAddress().isHistoryVector() )
|
2018-12-17 08:54:23 -06:00
|
|
|
{
|
2022-05-06 09:34:37 -05:00
|
|
|
candidateName = vectorName.substr( 0, vectorName.size() - 1 );
|
2018-12-17 08:54:23 -06:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-05-06 09:34:37 -05:00
|
|
|
candidateName = vectorName + "H";
|
2018-12-17 08:54:23 -06:00
|
|
|
}
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
for ( const auto& c : curveSets() )
|
2018-12-17 08:54:23 -06:00
|
|
|
{
|
2022-05-06 09:34:37 -05:00
|
|
|
if ( c->summaryAddress().vectorName() == candidateName )
|
2018-12-17 08:54:23 -06:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
steppingCurveSets.push_back( c );
|
2018-12-17 08:54:23 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
steppingCurveSets = curveSets();
|
|
|
|
}
|
|
|
|
|
|
|
|
return steppingCurveSets;
|
|
|
|
}
|
|
|
|
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-10-04 06:20:15 -05:00
|
|
|
RimSummaryPlotSourceStepping* RimEnsembleCurveSetCollection::sourceSteppingObject() const
|
|
|
|
{
|
|
|
|
return m_ySourceStepping();
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::deleteAllCurveSets()
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2022-05-31 06:08:07 -05:00
|
|
|
m_curveSets.deleteChildren();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2023-02-26 03:48:40 -06:00
|
|
|
void RimEnsembleCurveSetCollection::fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
if ( changedField == &m_showCurves )
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
loadDataAndUpdate( true );
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-17 08:54:23 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-12-17 08:54:23 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RimEnsembleCurveSetCollection::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering )
|
2018-12-17 08:54:23 -06:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-05-02 05:47:12 -05:00
|
|
|
///
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
caf::PdmFieldHandle* RimEnsembleCurveSetCollection::objectToggleField()
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
|
|
|
return &m_showCurves;
|
|
|
|
}
|
2020-05-18 09:02:27 -05:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
void RimEnsembleCurveSetCollection::onChildDeleted( caf::PdmChildArrayFieldHandle* childArray,
|
|
|
|
std::vector<caf::PdmObjectHandle*>& referringObjects )
|
|
|
|
{
|
2023-05-12 14:41:34 -05:00
|
|
|
auto plot = firstAncestorOrThisOfType<RimSummaryPlot>();
|
2020-05-18 09:02:27 -05:00
|
|
|
if ( plot ) plot->updateConnectedEditors();
|
|
|
|
}
|