2018-03-27 01:51:14 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017- Statoil ASA
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-04-19 07:00:00 -05:00
|
|
|
#include "RimEnsembleCurveSetCollection.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
|
|
|
|
#include "RiaApplication.h"
|
2018-04-18 01:32:16 -05:00
|
|
|
#include "RiaColorTables.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
|
|
|
|
#include "RifReaderEclipseSummary.h"
|
|
|
|
|
|
|
|
#include "RimProject.h"
|
2018-04-19 07:00:00 -05:00
|
|
|
#include "RimEnsembleCurveSet.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
#include "RimSummaryCase.h"
|
|
|
|
#include "RimSummaryCrossPlot.h"
|
|
|
|
#include "RimSummaryCurve.h"
|
|
|
|
#include "RimSummaryPlot.h"
|
|
|
|
#include "RimSummaryPlotSourceStepping.h"
|
2018-04-18 01:32:16 -05:00
|
|
|
#include "RimSummaryCurveAppearanceCalculator.h"
|
2018-03-27 01:51:14 -05:00
|
|
|
|
|
|
|
#include "RiuLineSegmentQwtPlotCurve.h"
|
|
|
|
#include "RiuSummaryQwtPlot.h"
|
|
|
|
|
|
|
|
#include "cafPdmUiTreeViewEditor.h"
|
|
|
|
|
|
|
|
#include <QKeyEvent>
|
|
|
|
|
2018-04-19 07:00:00 -05:00
|
|
|
CAF_PDM_SOURCE_INIT(RimEnsembleCurveSetCollection, "RimEnsembleCurveSetCollection");
|
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
|
|
|
{
|
2018-04-19 07:00:00 -05:00
|
|
|
CAF_PDM_InitObject("Ensemble Curve Sets", ":/SummaryCurveFilter16x16.png", "", "");
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-19 07:00:00 -05:00
|
|
|
CAF_PDM_InitFieldNoDefault(&m_curveSets, "EnsembleCurveSets", "Ensemble Curve Sets", "", "", "");
|
2018-04-06 01:16:14 -05:00
|
|
|
m_curveSets.uiCapability()->setUiHidden(true);
|
|
|
|
m_curveSets.uiCapability()->setUiTreeChildrenHidden(false);
|
2018-03-27 01:51:14 -05:00
|
|
|
|
|
|
|
CAF_PDM_InitField(&m_showCurves, "IsActive", true, "Show Curves", "", "", "");
|
|
|
|
m_showCurves.uiCapability()->setUiHidden(true);
|
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
//CAF_PDM_InitFieldNoDefault(&m_ySourceStepping, "YSourceStepping", "", "", "", "");
|
|
|
|
//m_ySourceStepping = new RimSummaryPlotSourceStepping;
|
|
|
|
//m_ySourceStepping->setSourceSteppingType(RimSummaryPlotSourceStepping::Y_AXIS);
|
|
|
|
//m_ySourceStepping.uiCapability()->setUiHidden(true);
|
|
|
|
//m_ySourceStepping.uiCapability()->setUiTreeChildrenHidden(true);
|
|
|
|
//m_ySourceStepping.xmlCapability()->disableIO();
|
|
|
|
|
|
|
|
//CAF_PDM_InitFieldNoDefault(&m_xSourceStepping, "XSourceStepping", "", "", "", "");
|
|
|
|
//m_xSourceStepping = new RimSummaryPlotSourceStepping;
|
|
|
|
//m_xSourceStepping->setSourceSteppingType(RimSummaryPlotSourceStepping::X_AXIS);
|
|
|
|
//m_xSourceStepping.uiCapability()->setUiHidden(true);
|
|
|
|
//m_xSourceStepping.uiCapability()->setUiTreeChildrenHidden(true);
|
|
|
|
//m_xSourceStepping.xmlCapability()->disableIO();
|
|
|
|
|
|
|
|
//CAF_PDM_InitFieldNoDefault(&m_unionSourceStepping, "UnionSourceStepping", "", "", "", "");
|
|
|
|
//m_unionSourceStepping = new RimSummaryPlotSourceStepping;
|
|
|
|
//m_unionSourceStepping->setSourceSteppingType(RimSummaryPlotSourceStepping::UNION_X_Y_AXIS);
|
|
|
|
//m_unionSourceStepping.uiCapability()->setUiHidden(true);
|
|
|
|
//m_unionSourceStepping.uiCapability()->setUiTreeChildrenHidden(true);
|
|
|
|
//m_unionSourceStepping.xmlCapability()->disableIO();
|
2018-04-20 05:30:59 -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
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
m_curveSets.deleteAllChildObjects();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
bool RimEnsembleCurveSetCollection::isCurveSetsVisible()
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
|
|
|
return m_showCurves();
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::loadDataAndUpdate(bool updateParentPlot)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-19 07:00:00 -05:00
|
|
|
for (RimEnsembleCurveSet* curveSet : m_curveSets)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
curveSet->loadDataAndUpdate(updateParentPlot);
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
//for (RimSummaryCurve* curve : m_curves)
|
|
|
|
//{
|
|
|
|
// curve->loadDataAndUpdate(false);
|
|
|
|
// curve->updateQwtPlotAxis();
|
|
|
|
//}
|
|
|
|
|
2018-04-30 01:01:12 -05:00
|
|
|
if ( updateParentPlot )
|
|
|
|
{
|
|
|
|
RimSummaryPlot* parentPlot;
|
|
|
|
firstAncestorOrThisOfTypeAsserted(parentPlot);
|
|
|
|
if ( parentPlot->qwtPlot() )
|
|
|
|
{
|
|
|
|
parentPlot->updatePlotTitle();
|
|
|
|
parentPlot->qwtPlot()->updateLegend();
|
|
|
|
parentPlot->updateAxes();
|
|
|
|
parentPlot->updateZoomInQwt();
|
|
|
|
}
|
|
|
|
}
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
2018-04-18 01:32:16 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::setParentQwtPlotAndReplot(QwtPlot* plot)
|
2018-04-18 01:32:16 -05:00
|
|
|
{
|
2018-04-19 07:00:00 -05:00
|
|
|
for (RimEnsembleCurveSet* curveSet : m_curveSets)
|
2018-04-18 01:32:16 -05:00
|
|
|
{
|
|
|
|
curveSet->setParentQwtPlotNoReplot(plot);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (plot) plot->replot();
|
|
|
|
}
|
|
|
|
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::detachQwtCurves()
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
for(const auto& curveSet : m_curveSets)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
curveSet->detachQwtCurves();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-20 05:30:59 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
RimEnsembleCurveSet* RimEnsembleCurveSetCollection::findRimCurveSetFromQwtCurve(const QwtPlotCurve* qwtCurve) const
|
|
|
|
{
|
|
|
|
for (RimEnsembleCurveSet* curveSet : m_curveSets)
|
|
|
|
{
|
|
|
|
for (RimSummaryCurve* rimCurve : curveSet->curves())
|
|
|
|
{
|
|
|
|
if (rimCurve->qwtPlotCurve() == qwtCurve)
|
|
|
|
{
|
|
|
|
return curveSet;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2018-03-27 01:51:14 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::addCurveSet(RimEnsembleCurveSet* curveSet)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-18 01:32:16 -05:00
|
|
|
static int nextAutoColorIndex = 1;
|
|
|
|
static int numberOfColors = (int)RiaColorTables::summaryCurveDefaultPaletteColors().size();
|
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
if (curveSet)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-18 01:32:16 -05:00
|
|
|
curveSet->setColor(RimSummaryCurveAppearanceCalculator::cycledPaletteColor(nextAutoColorIndex));
|
2018-04-06 01:16:14 -05:00
|
|
|
m_curveSets.push_back(curveSet);
|
2018-04-18 01:32:16 -05:00
|
|
|
|
|
|
|
nextAutoColorIndex = (++nextAutoColorIndex) % numberOfColors;
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::deleteCurveSet(RimEnsembleCurveSet* curveSet)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
if (curveSet)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
m_curveSets.removeChildObject(curveSet);
|
|
|
|
delete curveSet;
|
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
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
return m_curveSets.childObjects();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
std::vector<RimEnsembleCurveSet*> RimEnsembleCurveSetCollection::visibleCurveSets() const
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-19 07:00:00 -05:00
|
|
|
std::vector<RimEnsembleCurveSet*> visible;
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
for (auto c : m_curveSets)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
if (c->isCurvesVisible())
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
|
|
|
visible.push_back(c);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return visible;
|
|
|
|
}
|
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
////--------------------------------------------------------------------------------------------------
|
|
|
|
/////
|
|
|
|
////--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
//void RimEnsembleCurveSetCollection::deleteCurvesAssosiatedWithCase(RimSummaryCase* summaryCase)
|
2018-04-06 01:16:14 -05:00
|
|
|
//{
|
|
|
|
// std::vector<RimSummaryCurve*> summaryCurvesToDelete;
|
|
|
|
//
|
|
|
|
// for (RimSummaryCurve* summaryCurve : m_curves)
|
|
|
|
// {
|
|
|
|
// if (!summaryCurve) continue;
|
|
|
|
// if (!summaryCurve->summaryCaseY()) continue;
|
|
|
|
//
|
|
|
|
// if (summaryCurve->summaryCaseY() == summaryCase)
|
|
|
|
// {
|
|
|
|
// summaryCurvesToDelete.push_back(summaryCurve);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// for (RimSummaryCurve* summaryCurve : summaryCurvesToDelete)
|
|
|
|
// {
|
|
|
|
// m_curves.removeChildObject(summaryCurve);
|
|
|
|
// delete summaryCurve;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
//}
|
2018-03-27 01:51:14 -05:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::deleteAllCurveSets()
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
m_curveSets.deleteAllChildObjects();
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
////--------------------------------------------------------------------------------------------------
|
|
|
|
/////
|
|
|
|
////--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
//void RimEnsembleCurveSetCollection::updateCaseNameHasChanged()
|
2018-04-06 01:16:14 -05:00
|
|
|
//{
|
|
|
|
// for (RimSummaryCurve* curve : m_curves)
|
|
|
|
// {
|
|
|
|
// curve->updateCurveNameNoLegendUpdate();
|
|
|
|
// curve->updateConnectedEditors();
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// RimSummaryPlot* parentPlot;
|
|
|
|
// firstAncestorOrThisOfTypeAsserted(parentPlot);
|
|
|
|
// if (parentPlot->qwtPlot()) parentPlot->qwtPlot()->updateLegend();
|
|
|
|
//}
|
|
|
|
//
|
2018-04-20 05:30:59 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
void RimEnsembleCurveSetCollection::setCurrentSummaryCurveSet(RimEnsembleCurveSet* curveSet)
|
|
|
|
{
|
|
|
|
m_currentEnsembleCurveSet = curveSet;
|
|
|
|
|
|
|
|
updateConnectedEditors();
|
|
|
|
}
|
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
////--------------------------------------------------------------------------------------------------
|
|
|
|
/////
|
|
|
|
////--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
//std::vector<caf::PdmFieldHandle*> RimEnsembleCurveSetCollection::fieldsToShowInToolbar()
|
2018-04-06 01:16:14 -05:00
|
|
|
//{
|
|
|
|
// RimSummaryCrossPlot* parentCrossPlot;
|
|
|
|
// firstAncestorOrThisOfType(parentCrossPlot);
|
|
|
|
//
|
|
|
|
// if (parentCrossPlot)
|
|
|
|
// {
|
|
|
|
// return m_unionSourceStepping->fieldsToShowInToolbar();
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// return m_ySourceStepping()->fieldsToShowInToolbar();
|
|
|
|
//}
|
|
|
|
//
|
|
|
|
////--------------------------------------------------------------------------------------------------
|
|
|
|
/////
|
|
|
|
////--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
//void RimEnsembleCurveSetCollection::handleKeyPressEvent(QKeyEvent* keyEvent)
|
2018-04-06 01:16:14 -05:00
|
|
|
//{
|
|
|
|
// if (!keyEvent) return;
|
|
|
|
//
|
|
|
|
// RimSummaryPlotSourceStepping* sourceStepping = nullptr;
|
|
|
|
// {
|
|
|
|
// RimSummaryCrossPlot* summaryCrossPlot = nullptr;
|
|
|
|
// this->firstAncestorOrThisOfType(summaryCrossPlot);
|
|
|
|
//
|
|
|
|
// if (summaryCrossPlot)
|
|
|
|
// {
|
|
|
|
// sourceStepping = m_unionSourceStepping();
|
|
|
|
// }
|
|
|
|
// else
|
|
|
|
// {
|
|
|
|
// sourceStepping = m_ySourceStepping();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// if (keyEvent->key() == Qt::Key_PageUp)
|
|
|
|
// {
|
|
|
|
// if (keyEvent->modifiers() & Qt::ShiftModifier)
|
|
|
|
// {
|
|
|
|
// sourceStepping->applyPrevCase();
|
|
|
|
//
|
|
|
|
// keyEvent->accept();
|
|
|
|
// }
|
|
|
|
// else if (keyEvent->modifiers() & Qt::ControlModifier)
|
|
|
|
// {
|
|
|
|
// sourceStepping->applyPrevOtherIdentifier();
|
|
|
|
//
|
|
|
|
// keyEvent->accept();
|
|
|
|
// }
|
|
|
|
// else
|
|
|
|
// {
|
|
|
|
// sourceStepping->applyPrevQuantity();
|
|
|
|
//
|
|
|
|
// keyEvent->accept();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// else if (keyEvent->key() == Qt::Key_PageDown)
|
|
|
|
// {
|
|
|
|
// if (keyEvent->modifiers() & Qt::ShiftModifier)
|
|
|
|
// {
|
|
|
|
// sourceStepping->applyNextCase();
|
|
|
|
//
|
|
|
|
// keyEvent->accept();
|
|
|
|
// }
|
|
|
|
// else if (keyEvent->modifiers() & Qt::ControlModifier)
|
|
|
|
// {
|
|
|
|
// sourceStepping->applyNextOtherIdentifier();
|
|
|
|
//
|
|
|
|
// keyEvent->accept();
|
|
|
|
// }
|
|
|
|
// else
|
|
|
|
// {
|
|
|
|
// sourceStepping->applyNextQuantity();
|
|
|
|
//
|
|
|
|
// keyEvent->accept();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//}
|
2018-03-27 01:51:14 -05:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
|
|
|
if (changedField == &m_showCurves)
|
|
|
|
{
|
|
|
|
loadDataAndUpdate(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
//RimSummaryCrossPlot* parentCrossPlot;
|
|
|
|
//firstAncestorOrThisOfType(parentCrossPlot);
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
//if (parentCrossPlot)
|
|
|
|
//{
|
|
|
|
// {
|
|
|
|
// auto group = uiOrdering.addNewGroup("Y Source Stepping");
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
// m_ySourceStepping()->uiOrdering(uiConfigName, *group);
|
|
|
|
// }
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
// {
|
|
|
|
// auto group = uiOrdering.addNewGroup("X Source Stepping");
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
// m_xSourceStepping()->uiOrdering(uiConfigName, *group);
|
|
|
|
// }
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
// {
|
|
|
|
// auto group = uiOrdering.addNewGroup("XY Union Source Stepping");
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
// m_unionSourceStepping()->uiOrdering(uiConfigName, *group);
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
//else
|
|
|
|
//{
|
|
|
|
// auto group = uiOrdering.addNewGroup("Plot Source Stepping");
|
2018-03-27 01:51:14 -05:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
// m_ySourceStepping()->uiOrdering(uiConfigName, *group);
|
|
|
|
//}
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-04-19 07:00:00 -05:00
|
|
|
void RimEnsembleCurveSetCollection::defineObjectEditorAttribute(QString uiConfigName, caf::PdmUiEditorAttribute* attribute)
|
2018-03-27 01:51:14 -05:00
|
|
|
{
|
2018-04-06 01:16:14 -05:00
|
|
|
//caf::PdmUiTreeViewEditorAttribute* myAttr = dynamic_cast<caf::PdmUiTreeViewEditorAttribute*>(attribute);
|
|
|
|
//if (myAttr && m_currentSummaryCurve.notNull())
|
|
|
|
//{
|
|
|
|
// myAttr->currentObject = m_currentSummaryCurve.p();
|
|
|
|
//}
|
2018-03-27 01:51:14 -05:00
|
|
|
}
|