mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor: rename RimWellLogFile to RimWellLogLasFile
This commit is contained in:
@@ -39,9 +39,9 @@
|
||||
#include "RimSummaryCase.h"
|
||||
#include "RimSummaryCaseCollection.h"
|
||||
#include "RimWellLogCurve.h"
|
||||
#include "RimWellLogFile.h"
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogFileCurve.h"
|
||||
#include "RimWellLogLasFile.h"
|
||||
#include "RimWellLogLasFileCurve.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
#include "RimWellLogTrack.h"
|
||||
#include "RimWellPath.h"
|
||||
@@ -360,8 +360,8 @@ void RimEnsembleWellLogCurveSet::updateAllCurves()
|
||||
|
||||
if ( group )
|
||||
{
|
||||
std::vector<RimWellLogFile*> allWellLogFiles = group->wellLogFiles();
|
||||
std::vector<RimWellLogFile*> filteredCases = filterEnsembleCases( allWellLogFiles );
|
||||
std::vector<RimWellLogLasFile*> allWellLogFiles = group->wellLogFiles();
|
||||
std::vector<RimWellLogLasFile*> filteredCases = filterEnsembleCases( allWellLogFiles );
|
||||
|
||||
m_isCurveSetFiltered = filteredCases.size() < allWellLogFiles.size();
|
||||
|
||||
@@ -640,7 +640,7 @@ void RimEnsembleWellLogCurveSet::updateFilterLegend()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSummaryCase* RimEnsembleWellLogCurveSet::findMatchingSummaryCase( RimWellLogFileCurve* wellLogCurve ) const
|
||||
RimSummaryCase* RimEnsembleWellLogCurveSet::findMatchingSummaryCase( RimWellLogLasFileCurve* wellLogCurve ) const
|
||||
{
|
||||
RimSummaryCaseCollection* summaryCaseCollection = m_ensembleCurveSet->summaryCaseCollection();
|
||||
std::vector<RimSummaryCase*> sumCases = summaryCaseCollection->allSummaryCases();
|
||||
@@ -674,7 +674,7 @@ void RimEnsembleWellLogCurveSet::updateCurveColors()
|
||||
if ( dynamic_cast<RimEnsembleWellLogStatisticsCurve*>( curve.p() ) == nullptr )
|
||||
{
|
||||
// Look for a matching summary case
|
||||
RimSummaryCase* summaryCase = findMatchingSummaryCase( dynamic_cast<RimWellLogFileCurve*>( curve.p() ) );
|
||||
RimSummaryCase* summaryCase = findMatchingSummaryCase( dynamic_cast<RimWellLogLasFileCurve*>( curve.p() ) );
|
||||
if ( summaryCase )
|
||||
{
|
||||
summaryCases.push_back( summaryCase );
|
||||
@@ -736,7 +736,7 @@ void RimEnsembleWellLogCurveSet::updateCurveColors()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleWellLogCurveSet::updateEnsembleCurves( const std::vector<RimWellLogFile*>& sumCases )
|
||||
void RimEnsembleWellLogCurveSet::updateEnsembleCurves( const std::vector<RimWellLogLasFile*>& sumCases )
|
||||
{
|
||||
auto plotTrack = firstAncestorOrThisOfTypeAsserted<RimWellLogTrack>();
|
||||
auto wellLogPlot = firstAncestorOrThisOfTypeAsserted<RimWellLogPlot>();
|
||||
@@ -767,7 +767,7 @@ void RimEnsembleWellLogCurveSet::updateEnsembleCurves( const std::vector<RimWell
|
||||
|
||||
for ( auto& wellLogFile : sumCases )
|
||||
{
|
||||
RimWellLogFileCurve* curve = new RimWellLogFileCurve;
|
||||
RimWellLogLasFileCurve* curve = new RimWellLogLasFileCurve;
|
||||
curve->setUiTreeHidden( true );
|
||||
curve->setUiTreeChildrenHidden( true );
|
||||
plotTrack->addCurve( curve );
|
||||
@@ -838,13 +838,13 @@ void RimEnsembleWellLogCurveSet::setLogScaleFromSelectedResult( const QString re
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEnsembleWellLogCurveSet::updateStatistics()
|
||||
{
|
||||
return updateStatistics( std::vector<RimWellLogFile*>() );
|
||||
return updateStatistics( std::vector<RimWellLogLasFile*>() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEnsembleWellLogCurveSet::updateStatistics( const std::vector<RimWellLogFile*>& sumCases )
|
||||
bool RimEnsembleWellLogCurveSet::updateStatistics( const std::vector<RimWellLogLasFile*>& sumCases )
|
||||
{
|
||||
RimEnsembleWellLogs* ensembleWellLogs = m_ensembleWellLogs;
|
||||
QString wellLogChannelName = m_wellLogChannelName();
|
||||
@@ -855,7 +855,7 @@ bool RimEnsembleWellLogCurveSet::updateStatistics( const std::vector<RimWellLogF
|
||||
return false;
|
||||
}
|
||||
// Calculate
|
||||
std::vector<RimWellLogFile*> wellLogFiles = sumCases;
|
||||
std::vector<RimWellLogLasFile*> wellLogFiles = sumCases;
|
||||
if ( wellLogFiles.empty() )
|
||||
{
|
||||
if ( m_statistics->basedOnFilteredCases() )
|
||||
@@ -871,7 +871,7 @@ bool RimEnsembleWellLogCurveSet::updateStatistics( const std::vector<RimWellLogF
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleWellLogCurveSet::updateStatisticsCurves( const std::vector<RimWellLogFile*>& sumCases )
|
||||
void RimEnsembleWellLogCurveSet::updateStatisticsCurves( const std::vector<RimWellLogLasFile*>& sumCases )
|
||||
{
|
||||
deleteStatisticsCurves();
|
||||
|
||||
@@ -936,7 +936,7 @@ void RimEnsembleWellLogCurveSet::updateStatisticsCurves( const std::vector<RimWe
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEnsembleWellLogCurveSet::updateStatisticsCurves()
|
||||
{
|
||||
updateStatisticsCurves( std::vector<RimWellLogFile*>() );
|
||||
updateStatisticsCurves( std::vector<RimWellLogLasFile*>() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -987,9 +987,9 @@ void RimEnsembleWellLogCurveSet::updateAllTextInPlot()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimWellLogFile*> RimEnsembleWellLogCurveSet::filterEnsembleCases( const std::vector<RimWellLogFile*>& wellLogFiles )
|
||||
std::vector<RimWellLogLasFile*> RimEnsembleWellLogCurveSet::filterEnsembleCases( const std::vector<RimWellLogLasFile*>& wellLogFiles )
|
||||
{
|
||||
std::vector<RimWellLogFile*> filteredCases;
|
||||
std::vector<RimWellLogLasFile*> filteredCases;
|
||||
|
||||
if ( m_ensembleCurveSet != nullptr && m_statistics->basedOnFilteredCases() )
|
||||
{
|
||||
@@ -1020,7 +1020,7 @@ std::vector<RimWellLogFile*> RimEnsembleWellLogCurveSet::filterEnsembleCases( co
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEnsembleWellLogCurveSet::isSameRealization( RimSummaryCase* summaryCase, RimWellLogFile* wellLogFile ) const
|
||||
bool RimEnsembleWellLogCurveSet::isSameRealization( RimSummaryCase* summaryCase, RimWellLogLasFile* wellLogFile ) const
|
||||
{
|
||||
QString wellLogFileName = wellLogFile->fileName();
|
||||
|
||||
@@ -1259,7 +1259,7 @@ bool RimEnsembleWellLogCurveSet::hasPropertyInFile( const QString& property ) co
|
||||
RimEnsembleWellLogs* group = m_ensembleWellLogs;
|
||||
if ( !group ) return false;
|
||||
|
||||
std::vector<RimWellLogFile*> allWellLogFiles = group->wellLogFiles();
|
||||
std::vector<RimWellLogLasFile*> allWellLogFiles = group->wellLogFiles();
|
||||
for ( auto& wellLogFile : allWellLogFiles )
|
||||
{
|
||||
QString errorMessage;
|
||||
|
||||
Reference in New Issue
Block a user