mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
#7609 Calculate and display Ensemble Fracture Statistics plot.
This commit is contained in:
1 parent
b662a87267
commit
01d88030d4
21 files changed
+937
-13
No files matched your search
@@ -311,12 +311,16 @@ ${CMAKE_CURRENT_LIST_DIR}/RimWellPathTieIn.cpp
|
||||
if(Qt5Charts_FOUND)
|
||||
list(APPEND SOURCE_GROUP_HEADER_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimStatisticsPlot.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimEnsembleFractureStatisticsPlot.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimEnsembleFractureStatisticsPlotCollection.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimGridStatisticsPlotCollection.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimGridStatisticsPlot.h)
|
||||
|
||||
|
||||
list(APPEND SOURCE_GROUP_SOURCE_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimStatisticsPlot.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimEnsembleFractureStatisticsPlot.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimEnsembleFractureStatisticsPlotCollection.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimGridStatisticsPlotCollection.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimGridStatisticsPlot.cpp)
|
||||
endif()
|
||||
|
||||
@@ -422,6 +422,14 @@ std::vector<QString> RimEnsembleFractureStatistics::computeStatistics()
|
||||
return xmlFilePaths;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<cvf::ref<RigStimPlanFractureDefinition>> RimEnsembleFractureStatistics::readFractureDefinitions() const
|
||||
{
|
||||
return readFractureDefinitions( m_filePaths, RiaDefines::EclipseUnitSystem::UNITS_METRIC );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -96,6 +96,14 @@ public:
|
||||
void addFilePath( const QString& filePath );
|
||||
void loadAndUpdateData();
|
||||
|
||||
std::vector<cvf::ref<RigStimPlanFractureDefinition>> readFractureDefinitions() const;
|
||||
|
||||
static std::vector<cvf::cref<RigFractureGrid>>
|
||||
createFractureGrids( const std::vector<cvf::ref<RigStimPlanFractureDefinition>>& stimPlanFractureDefinitions,
|
||||
RiaDefines::EclipseUnitSystem unitSystem,
|
||||
const QString& resultName,
|
||||
MeshAlignmentType meshAlignmentType );
|
||||
|
||||
protected:
|
||||
void defineEditorAttribute( const caf::PdmFieldHandle* field,
|
||||
QString uiConfigName,
|
||||
@@ -116,12 +124,6 @@ protected:
|
||||
readFractureDefinitions( const std::vector<caf::FilePath>& filePaths,
|
||||
RiaDefines::EclipseUnitSystem unitSystem ) const;
|
||||
|
||||
std::vector<cvf::cref<RigFractureGrid>>
|
||||
createFractureGrids( const std::vector<cvf::ref<RigStimPlanFractureDefinition>>& stimPlanFractureDefinitions,
|
||||
RiaDefines::EclipseUnitSystem unitSystem,
|
||||
const QString& resultName,
|
||||
MeshAlignmentType meshAlignmentType );
|
||||
|
||||
static std::set<std::pair<QString, QString>>
|
||||
findAllResultNames( const std::vector<cvf::ref<RigStimPlanFractureDefinition>>& stimPlanFractureDefinitions );
|
||||
|
||||
|
||||
@@ -653,10 +653,19 @@ WellFractureIntersectionData
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::pair<QString, QString> RimStimPlanFractureTemplate::widthParameterNameAndUnit() const
|
||||
{
|
||||
if ( m_stimPlanFractureDefinitionData.notNull() )
|
||||
return widthParameterNameAndUnit( m_stimPlanFractureDefinitionData );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::pair<QString, QString> RimStimPlanFractureTemplate::widthParameterNameAndUnit(
|
||||
cvf::ref<RigStimPlanFractureDefinition> stimPlanFractureDefinitionData )
|
||||
{
|
||||
if ( stimPlanFractureDefinitionData.notNull() )
|
||||
{
|
||||
std::vector<std::pair<QString, QString>> propertyNamesUnitsOnFile =
|
||||
m_stimPlanFractureDefinitionData->getStimPlanPropertyNamesUnits();
|
||||
stimPlanFractureDefinitionData->getStimPlanPropertyNamesUnits();
|
||||
|
||||
for ( const auto& nameUnit : propertyNamesUnitsOnFile )
|
||||
{
|
||||
|
||||
@@ -101,6 +101,8 @@ public:
|
||||
|
||||
double formationDip() const;
|
||||
|
||||
static std::pair<QString, QString> widthParameterNameAndUnit( cvf::ref<RigStimPlanFractureDefinition> def );
|
||||
|
||||
protected:
|
||||
void initAfterRead() override;
|
||||
|
||||
|
||||
@@ -152,6 +152,7 @@
|
||||
#include "RimWellPltPlot.h"
|
||||
|
||||
#ifdef USE_QTCHARTS
|
||||
#include "RimEnsembleFractureStatisticsPlotCollection.h"
|
||||
#include "RimGridStatisticsPlotCollection.h"
|
||||
#endif
|
||||
|
||||
@@ -614,6 +615,10 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
{
|
||||
menuBuilder << "RicCreateGridStatisticsPlotFeature";
|
||||
}
|
||||
else if ( dynamic_cast<RimEnsembleFractureStatisticsPlotCollection*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicCreateEnsembleFractureStatisticsPlotFeature";
|
||||
}
|
||||
#endif
|
||||
else if ( dynamic_cast<RimGridCrossPlot*>( firstUiItem ) )
|
||||
{
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2021- Equinor 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RimEnsembleFractureStatisticsPlot.h"
|
||||
|
||||
#include "RigEnsembleFractureStatisticsCalculator.h"
|
||||
#include "RimEnsembleFractureStatistics.h"
|
||||
#include "RimPlot.h"
|
||||
#include "RimProject.h"
|
||||
|
||||
#include "RigHistogramData.h"
|
||||
|
||||
#include "cafPdmFieldScriptingCapability.h"
|
||||
#include "cafPdmObjectScriptingCapability.h"
|
||||
#include "cafPdmUiComboBoxEditor.h"
|
||||
|
||||
#include "cvfAssert.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimEnsembleFractureStatisticsPlot, "EnsembleFractureStatisticsPlot" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEnsembleFractureStatisticsPlot::RimEnsembleFractureStatisticsPlot()
|
||||
{
|
||||
CAF_PDM_InitObject( "Ensemble Fracture Statistics Plot", "", "", "A Plot of Ensemble Fracture Statistics" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_ensembleFractureStatistics,
|
||||
"EnsembleFractureStatistics",
|
||||
"Ensemble Fracture Statistics",
|
||||
"",
|
||||
"",
|
||||
"" );
|
||||
m_ensembleFractureStatistics.uiCapability()->setUiTreeChildrenHidden( true );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_property, "Property", "Property", "", "", "" );
|
||||
|
||||
m_plotLegendsHorizontal.uiCapability()->setUiHidden( true );
|
||||
|
||||
setDefaults();
|
||||
|
||||
setDeletable( true );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEnsembleFractureStatisticsPlot::~RimEnsembleFractureStatisticsPlot()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleFractureStatisticsPlot::setDefaults()
|
||||
{
|
||||
std::vector<RimEnsembleFractureStatistics*> esfItems;
|
||||
RimProject::current()->descendantsIncludingThisOfType( esfItems );
|
||||
if ( !esfItems.empty() ) m_ensembleFractureStatistics = esfItems.front();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleFractureStatisticsPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue )
|
||||
{
|
||||
RimPlotWindow::fieldChangedByUi( changedField, oldValue, newValue );
|
||||
loadDataAndUpdate();
|
||||
updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleFractureStatisticsPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering )
|
||||
{
|
||||
uiOrdering.add( &m_ensembleFractureStatistics );
|
||||
uiOrdering.add( &m_property );
|
||||
|
||||
caf::PdmUiGroup* plotLayoutGroup = uiOrdering.addNewGroup( "Plot Layout" );
|
||||
RimPlotWindow::uiOrderingForPlotLayout( uiConfigName, *plotLayoutGroup );
|
||||
|
||||
uiOrdering.skipRemainingFields( true );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QList<caf::PdmOptionItemInfo>
|
||||
RimEnsembleFractureStatisticsPlot::calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,
|
||||
bool* useOptionsOnly )
|
||||
{
|
||||
QList<caf::PdmOptionItemInfo> options = RimPlotWindow::calculateValueOptions( fieldNeedingOptions, useOptionsOnly );
|
||||
|
||||
if ( fieldNeedingOptions == &m_ensembleFractureStatistics )
|
||||
{
|
||||
std::vector<RimEnsembleFractureStatistics*> esfItems;
|
||||
RimProject::current()->descendantsIncludingThisOfType( esfItems );
|
||||
for ( auto item : esfItems )
|
||||
{
|
||||
options.push_back( caf::PdmOptionItemInfo( item->name(), item ) );
|
||||
}
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEnsembleFractureStatisticsPlot::hasStatisticsData() const
|
||||
{
|
||||
return ( m_viewer && m_ensembleFractureStatistics );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigHistogramData RimEnsembleFractureStatisticsPlot::createStatisticsData() const
|
||||
{
|
||||
RigHistogramData histogramData =
|
||||
RigEnsembleFractureStatisticsCalculator::createStatisticsData( m_ensembleFractureStatistics(), m_property() );
|
||||
|
||||
return histogramData;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimEnsembleFractureStatisticsPlot::createAutoName() const
|
||||
{
|
||||
if ( m_ensembleFractureStatistics() == nullptr )
|
||||
{
|
||||
return "Undefined";
|
||||
}
|
||||
|
||||
QStringList nameTags;
|
||||
nameTags += m_ensembleFractureStatistics()->name();
|
||||
nameTags += caf::AppEnum<RigEnsembleFractureStatisticsCalculator::PropertyType>::uiText( m_property() );
|
||||
|
||||
return nameTags.join( ", " );
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2021- Equinor 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RiaDefines.h"
|
||||
|
||||
#include "RigEnsembleFractureStatisticsCalculator.h"
|
||||
|
||||
#include "RimEnsembleFractureStatistics.h"
|
||||
#include "RimStatisticsPlot.h"
|
||||
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmPtrField.h"
|
||||
|
||||
class RimEnsembleFractureStatistics;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimEnsembleFractureStatisticsPlot : public RimStatisticsPlot
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
RimEnsembleFractureStatisticsPlot();
|
||||
~RimEnsembleFractureStatisticsPlot() override;
|
||||
|
||||
protected:
|
||||
// Overridden PDM methods
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
||||
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,
|
||||
bool* useOptionsOnly ) override;
|
||||
|
||||
QString createAutoName() const override;
|
||||
|
||||
void setDefaults();
|
||||
bool hasStatisticsData() const override;
|
||||
RigHistogramData createStatisticsData() const override;
|
||||
|
||||
protected:
|
||||
caf::PdmPtrField<RimEnsembleFractureStatistics*> m_ensembleFractureStatistics;
|
||||
caf::PdmField<caf::AppEnum<RigEnsembleFractureStatisticsCalculator::PropertyType>> m_property;
|
||||
};
|
||||
@@ -0,0 +1,73 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2021- Equinor 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RimEnsembleFractureStatisticsPlotCollection.h"
|
||||
|
||||
#include "RimEnsembleFractureStatisticsPlot.h"
|
||||
|
||||
#include "cafPdmFieldScriptingCapability.h"
|
||||
#include "cafPdmObjectScriptingCapability.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimEnsembleFractureStatisticsPlotCollection, "EnsembleFractureStatisticsPlotCollection" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEnsembleFractureStatisticsPlotCollection::RimEnsembleFractureStatisticsPlotCollection()
|
||||
{
|
||||
CAF_PDM_InitScriptableObject( "Ensemble Fracture Statistics Plots", ":/WellLogPlots16x16.png", "", "" );
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_ensembleFractureStatisticsPlots, "EnsembleFractureStatisticsPlots", "", "", "", "" );
|
||||
m_ensembleFractureStatisticsPlots.uiCapability()->setUiHidden( true );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleFractureStatisticsPlotCollection::reloadAllPlots()
|
||||
{
|
||||
for ( const auto& w : m_ensembleFractureStatisticsPlots() )
|
||||
{
|
||||
w->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleFractureStatisticsPlotCollection::addEnsembleFractureStatisticsPlot( RimEnsembleFractureStatisticsPlot* newPlot )
|
||||
{
|
||||
m_ensembleFractureStatisticsPlots.push_back( newPlot );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimEnsembleFractureStatisticsPlot*>
|
||||
RimEnsembleFractureStatisticsPlotCollection::ensembleFractureStatisticsPlots() const
|
||||
{
|
||||
return m_ensembleFractureStatisticsPlots.childObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleFractureStatisticsPlotCollection::deleteAllPlots()
|
||||
{
|
||||
m_ensembleFractureStatisticsPlots.deleteAllChildObjects();
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2021- Equinor 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmObject.h"
|
||||
|
||||
class RimEnsembleFractureStatisticsPlot;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimEnsembleFractureStatisticsPlotCollection : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
RimEnsembleFractureStatisticsPlotCollection();
|
||||
|
||||
void addEnsembleFractureStatisticsPlot( RimEnsembleFractureStatisticsPlot* newPlot );
|
||||
|
||||
std::vector<RimEnsembleFractureStatisticsPlot*> ensembleFractureStatisticsPlots() const;
|
||||
|
||||
void reloadAllPlots();
|
||||
|
||||
void deleteAllPlots();
|
||||
|
||||
private:
|
||||
caf::PdmChildArrayField<RimEnsembleFractureStatisticsPlot*> m_ensembleFractureStatisticsPlots;
|
||||
};
|
||||
@@ -44,6 +44,8 @@
|
||||
#include "RimWellRftPlot.h"
|
||||
|
||||
#ifdef USE_QTCHARTS
|
||||
#include "RimEnsembleFractureStatisticsPlot.h"
|
||||
#include "RimEnsembleFractureStatisticsPlotCollection.h"
|
||||
#include "RimGridStatisticsPlot.h"
|
||||
#include "RimGridStatisticsPlotCollection.h"
|
||||
#endif
|
||||
@@ -109,6 +111,14 @@ RimMainPlotCollection::RimMainPlotCollection()
|
||||
#ifdef USE_QTCHARTS
|
||||
CAF_PDM_InitFieldNoDefault( &m_gridStatisticsPlotCollection, "GridStatisticsPlotCollection", "", "", "", "" );
|
||||
m_gridStatisticsPlotCollection.uiCapability()->setUiHidden( true );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_ensembleFractureStatisticsPlotCollection,
|
||||
"EnsembleFractureStatisticsPlotCollection",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"" );
|
||||
m_ensembleFractureStatisticsPlotCollection.uiCapability()->setUiHidden( true );
|
||||
#endif
|
||||
|
||||
m_wellLogPlotCollection = new RimWellLogPlotCollection();
|
||||
@@ -125,7 +135,8 @@ RimMainPlotCollection::RimMainPlotCollection()
|
||||
m_stimPlanModelPlotCollection = new RimStimPlanModelPlotCollection;
|
||||
m_vfpPlotCollection = new RimVfpPlotCollection();
|
||||
#ifdef USE_QTCHARTS
|
||||
m_gridStatisticsPlotCollection = new RimGridStatisticsPlotCollection;
|
||||
m_gridStatisticsPlotCollection = new RimGridStatisticsPlotCollection;
|
||||
m_ensembleFractureStatisticsPlotCollection = new RimEnsembleFractureStatisticsPlotCollection;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -265,6 +276,14 @@ RimGridStatisticsPlotCollection* RimMainPlotCollection::gridStatisticsPlotCollec
|
||||
{
|
||||
return m_gridStatisticsPlotCollection();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEnsembleFractureStatisticsPlotCollection* RimMainPlotCollection::ensembleFractureStatisticsPlotCollection()
|
||||
{
|
||||
return m_ensembleFractureStatisticsPlotCollection();
|
||||
}
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -287,6 +306,7 @@ void RimMainPlotCollection::deleteAllContainedObjects()
|
||||
m_stimPlanModelPlotCollection()->deleteAllPlots();
|
||||
#ifdef USE_QTCHARTS
|
||||
m_gridStatisticsPlotCollection()->deleteAllPlots();
|
||||
m_ensembleFractureStatisticsPlotCollection()->deleteAllPlots();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -364,6 +384,15 @@ void RimMainPlotCollection::updatePlotsWithFormations()
|
||||
gridStatisticsPlot->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
if ( m_ensembleFractureStatisticsPlotCollection )
|
||||
{
|
||||
for ( RimEnsembleFractureStatisticsPlot* ensembleFractureStatisticsPlot :
|
||||
m_ensembleFractureStatisticsPlotCollection->ensembleFractureStatisticsPlots() )
|
||||
{
|
||||
ensembleFractureStatisticsPlot->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ class RimVfpPlotCollection;
|
||||
|
||||
#ifdef USE_QTCHARTS
|
||||
class RimGridStatisticsPlotCollection;
|
||||
class RimEnsembleFractureStatisticsPlotCollection;
|
||||
#endif
|
||||
|
||||
//==================================================================================================
|
||||
@@ -74,7 +75,8 @@ public:
|
||||
RimVfpPlotCollection* vfpPlotCollection();
|
||||
|
||||
#ifdef USE_QTCHARTS
|
||||
RimGridStatisticsPlotCollection* gridStatisticsPlotCollection();
|
||||
RimGridStatisticsPlotCollection* gridStatisticsPlotCollection();
|
||||
RimEnsembleFractureStatisticsPlotCollection* ensembleFractureStatisticsPlotCollection();
|
||||
#endif
|
||||
|
||||
void deleteAllContainedObjects();
|
||||
@@ -105,7 +107,8 @@ private:
|
||||
caf::PdmChildField<RimStimPlanModelPlotCollection*> m_stimPlanModelPlotCollection;
|
||||
caf::PdmChildField<RimVfpPlotCollection*> m_vfpPlotCollection;
|
||||
#ifdef USE_QTCHARTS
|
||||
caf::PdmChildField<RimGridStatisticsPlotCollection*> m_gridStatisticsPlotCollection;
|
||||
caf::PdmChildField<RimGridStatisticsPlotCollection*> m_gridStatisticsPlotCollection;
|
||||
caf::PdmChildField<RimEnsembleFractureStatisticsPlotCollection*> m_ensembleFractureStatisticsPlotCollection;
|
||||
#endif
|
||||
|
||||
caf::PdmField<bool> m_show;
|
||||
|
||||
@@ -91,6 +91,8 @@
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
#ifdef USE_QTCHARTS
|
||||
#include "RimEnsembleFractureStatisticsPlot.h"
|
||||
#include "RimEnsembleFractureStatisticsPlotCollection.h"
|
||||
#include "RimGridStatisticsPlot.h"
|
||||
#include "RimGridStatisticsPlotCollection.h"
|
||||
#endif
|
||||
@@ -1465,9 +1467,15 @@ void RimProject::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, Q
|
||||
itemCollection->add( mainPlotCollection->vfpPlotCollection() );
|
||||
}
|
||||
#ifdef USE_QTCHARTS
|
||||
if ( mainPlotCollection->gridStatisticsPlotCollection() )
|
||||
if ( mainPlotCollection->gridStatisticsPlotCollection() ||
|
||||
mainPlotCollection->ensembleFractureStatisticsPlotCollection() )
|
||||
{
|
||||
itemCollection->add( mainPlotCollection->gridStatisticsPlotCollection() );
|
||||
auto statisticsItemCollection = itemCollection->add( "Statistics Plots", ":/Folder.png" );
|
||||
if ( mainPlotCollection->gridStatisticsPlotCollection() )
|
||||
statisticsItemCollection->add( mainPlotCollection->gridStatisticsPlotCollection() );
|
||||
|
||||
if ( mainPlotCollection->ensembleFractureStatisticsPlotCollection() )
|
||||
statisticsItemCollection->add( mainPlotCollection->ensembleFractureStatisticsPlotCollection() );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user