mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2658 Curve creator. Update curve tree view to display ensembles as well
This commit is contained in:
@@ -59,6 +59,11 @@
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RicSummaryCurveCreator, "RicSummaryCurveCreator");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const QString RicSummaryCurveCreator::CONFIGURATION_NAME = "CurveCreatorCfg";
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -51,6 +51,9 @@ class RicSummaryCurveCreator : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
static const QString CONFIGURATION_NAME;
|
||||
|
||||
private:
|
||||
typedef caf::AppEnum<RimSummaryCurveAppearanceCalculator::CurveAppearanceType> AppearanceTypeAppEnum;
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "RicSummaryCurveCreatorSplitterUi.h"
|
||||
|
||||
#include "RicSummaryCurveCreator.h"
|
||||
#include "RimEnsembleCurveSetCollection.h"
|
||||
#include "RimSummaryCurveCollection.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
|
||||
@@ -194,8 +195,11 @@ QWidget* RicSummaryCurveCreatorSplitterUi::getOrCreateCurveTreeWidget()
|
||||
|
||||
if (m_summaryCurveCreator)
|
||||
{
|
||||
RimSummaryCurveCollection* sumColl = m_summaryCurveCreator->previewPlot()->summaryCurveCollection();
|
||||
m_curveTreeView->setPdmItem(sumColl);
|
||||
RimSummaryPlot* previewPlot = m_summaryCurveCreator->previewPlot();
|
||||
m_curveTreeView->setPdmItem(previewPlot);
|
||||
m_curveTreeView->setUiConfigurationName(RicSummaryCurveCreator::CONFIGURATION_NAME);
|
||||
m_curveTreeView->setExpanded(previewPlot->summaryCurveCollection(), true);
|
||||
m_curveTreeView->setExpanded(previewPlot->ensembleCurveSetCollection(), true);
|
||||
}
|
||||
|
||||
return m_curvesPanel;
|
||||
|
||||
Reference in New Issue
Block a user