mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixes by clang-format
This commit is contained in:
@@ -314,9 +314,8 @@ std::vector<QString> RiaSummaryAddressAnalyzer::identifierTexts( RifEclipseSumma
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RifEclipseSummaryAddress>
|
||||
RiaSummaryAddressAnalyzer::addressesForCategory( const std::set<RifEclipseSummaryAddress>& addresses,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category )
|
||||
std::vector<RifEclipseSummaryAddress> RiaSummaryAddressAnalyzer::addressesForCategory( const std::set<RifEclipseSummaryAddress>& addresses,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category )
|
||||
{
|
||||
std::vector<RifEclipseSummaryAddress> filteredAddresses;
|
||||
|
||||
|
@@ -61,12 +61,12 @@ public:
|
||||
std::set<int> aquifers() const;
|
||||
|
||||
std::set<RifEclipseSummaryAddressDefines::SummaryCategory> categories() const;
|
||||
std::vector<std::vector<RifEclipseSummaryAddress>> addressesGroupedByObject() const;
|
||||
std::vector<std::vector<RifEclipseSummaryAddress>> addressesGroupedByObject() const;
|
||||
|
||||
std::vector<QString> identifierTexts( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
const std::string& secondaryIdentifier ) const;
|
||||
const std::string& secondaryIdentifier ) const;
|
||||
|
||||
static std::vector<RifEclipseSummaryAddress> addressesForCategory( const std::set<RifEclipseSummaryAddress>& addresses,
|
||||
static std::vector<RifEclipseSummaryAddress> addressesForCategory( const std::set<RifEclipseSummaryAddress>& addresses,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category );
|
||||
|
||||
static std::string correspondingHistorySummaryCurveName( const std::string& curveName );
|
||||
|
@@ -251,8 +251,8 @@ QString RicSaveMultiPlotTemplateFeature::createTextFromObject( RimSummaryMultiPl
|
||||
// Encode placeholder index. Use negative values below -1 to represent a placeholder index
|
||||
int index = -( i + 2 );
|
||||
|
||||
QString fieldKeyword = dummy.keywordForCategory( RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_REGION );
|
||||
QString sourceString = QString( "<%1>%2</%1>" ).arg( fieldKeyword ).arg( regionNumbers[i] );
|
||||
QString fieldKeyword = dummy.keywordForCategory( RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_REGION );
|
||||
QString sourceString = QString( "<%1>%2</%1>" ).arg( fieldKeyword ).arg( regionNumbers[i] );
|
||||
QString replacementTextWithIndex = QString( "<%1>%2</%1>" ).arg( fieldKeyword ).arg( index );
|
||||
|
||||
objectAsText.replace( sourceString, replacementTextWithIndex );
|
||||
|
@@ -108,20 +108,20 @@ RifEclipseSummaryAddress addressFromErtSmSpecNode( const ecl::smspec_node& ertSu
|
||||
}
|
||||
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory sumCategory( RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_INVALID );
|
||||
std::string quantityName;
|
||||
int regionNumber( -1 );
|
||||
int regionNumber2( -1 );
|
||||
std::string groupName;
|
||||
std::string networkName;
|
||||
std::string wellName;
|
||||
int wellSegmentNumber( -1 );
|
||||
std::string lgrName;
|
||||
int cellI( -1 );
|
||||
int cellJ( -1 );
|
||||
int cellK( -1 );
|
||||
int aquiferNumber( -1 );
|
||||
bool isErrorResult( false );
|
||||
int id( -1 );
|
||||
std::string quantityName;
|
||||
int regionNumber( -1 );
|
||||
int regionNumber2( -1 );
|
||||
std::string groupName;
|
||||
std::string networkName;
|
||||
std::string wellName;
|
||||
int wellSegmentNumber( -1 );
|
||||
std::string lgrName;
|
||||
int cellI( -1 );
|
||||
int cellJ( -1 );
|
||||
int cellK( -1 );
|
||||
int aquiferNumber( -1 );
|
||||
bool isErrorResult( false );
|
||||
int id( -1 );
|
||||
|
||||
quantityName = stringFromPointer( ertSumVarNode.get_keyword() );
|
||||
|
||||
|
@@ -95,7 +95,7 @@ RifEclipseSummaryAddress::RifEclipseSummaryAddress( SummaryCategory category, st
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifEclipseSummaryAddress::RifEclipseSummaryAddress( SummaryCategory category,
|
||||
RifEclipseSummaryAddress::RifEclipseSummaryAddress( SummaryCategory category,
|
||||
const std::string& vectorName,
|
||||
int regionNumber,
|
||||
int regionNumber2,
|
||||
@@ -227,9 +227,9 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::fromEclipseTextAddress( const
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::fieldAddress( const std::string& vectorName, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_FIELD;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_FIELD;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -239,10 +239,10 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::fieldAddress( const std::stri
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::aquiferAddress( const std::string& vectorName, int aquiferNumber, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_AQUIFER;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_number0 = aquiferNumber;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_AQUIFER;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_number0 = aquiferNumber;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -253,10 +253,10 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress::networkAddress( const std::string& vectorName, const std::string& networkName, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_NETWORK;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = networkName;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_NETWORK;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = networkName;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -266,9 +266,9 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::miscAddress( const std::string& vectorName, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_MISC;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_MISC;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -278,10 +278,10 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::miscAddress( const std::strin
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::regionAddress( const std::string& vectorName, int regionNumber, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_REGION;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_number0 = regionNumber;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_REGION;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_number0 = regionNumber;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -292,11 +292,11 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress::regionToRegionAddress( const std::string& vectorName, int regionNumber, int region2Number, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_REGION_2_REGION;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_number0 = regionNumber;
|
||||
addr.m_number1 = region2Number;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_REGION_2_REGION;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_number0 = regionNumber;
|
||||
addr.m_number1 = region2Number;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -306,10 +306,10 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::groupAddress( const std::string& vectorName, const std::string& groupName, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_GROUP;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = groupName;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_GROUP;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = groupName;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -319,10 +319,10 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::groupAddress( const std::stri
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::wellAddress( const std::string& vectorName, const std::string& wellName, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = wellName;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = wellName;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -333,9 +333,9 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress::wellCompletionAddress( const std::string& vectorName, const std::string& wellName, int i, int j, int k, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL_COMPLETION;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = wellName;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL_COMPLETION;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = wellName;
|
||||
addr.setCellIjk( i, j, k );
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
@@ -350,11 +350,11 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::wellLgrAddress( const std::st
|
||||
int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL_LGR;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_lgrName = lgrName;
|
||||
addr.m_name = wellName;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL_LGR;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_lgrName = lgrName;
|
||||
addr.m_name = wellName;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -370,10 +370,10 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::wellCompletionLgrAddress( con
|
||||
int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL_COMPLETION_LGR;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_lgrName = lgrName;
|
||||
addr.m_name = wellName;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL_COMPLETION_LGR;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_lgrName = lgrName;
|
||||
addr.m_name = wellName;
|
||||
addr.setCellIjk( i, j, k );
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
@@ -386,11 +386,11 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress::wellSegmentAddress( const std::string& vectorName, const std::string& wellName, int segmentNumber, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL_SEGMENT;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = wellName;
|
||||
addr.m_number0 = segmentNumber;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_WELL_SEGMENT;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_name = wellName;
|
||||
addr.m_number0 = segmentNumber;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -400,8 +400,8 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::blockAddress( const std::string& vectorName, int i, int j, int k, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_BLOCK;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_category = SummaryCategory::SUMMARY_BLOCK;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.setCellIjk( i, j, k );
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
@@ -414,9 +414,9 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress::blockLgrAddress( const std::string& vectorName, const std::string& lgrName, int i, int j, int k, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_BLOCK_LGR;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_lgrName = lgrName;
|
||||
addr.m_category = SummaryCategory::SUMMARY_BLOCK_LGR;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_lgrName = lgrName;
|
||||
addr.setCellIjk( i, j, k );
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
@@ -428,9 +428,9 @@ RifEclipseSummaryAddress
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::importedAddress( const std::string& vectorName, int calculationId )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_IMPORTED;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_id = calculationId;
|
||||
addr.m_category = SummaryCategory::SUMMARY_IMPORTED;
|
||||
addr.m_vectorName = vectorName;
|
||||
addr.m_id = calculationId;
|
||||
return addr;
|
||||
}
|
||||
|
||||
@@ -440,8 +440,8 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::importedAddress( const std::s
|
||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::ensembleStatisticsAddress( const std::string& vectorName, const std::string& dataQuantityName )
|
||||
{
|
||||
RifEclipseSummaryAddress addr;
|
||||
addr.m_category = SummaryCategory::SUMMARY_ENSEMBLE_STATISTICS;
|
||||
addr.m_vectorName = vectorName + ":" + dataQuantityName;
|
||||
addr.m_category = SummaryCategory::SUMMARY_ENSEMBLE_STATISTICS;
|
||||
addr.m_vectorName = vectorName + ":" + dataQuantityName;
|
||||
return addr;
|
||||
}
|
||||
|
||||
|
@@ -45,8 +45,8 @@ RifReaderObservedData::~RifReaderObservedData()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifReaderObservedData::open( const QString& headerFileName,
|
||||
const QString& identifierName,
|
||||
bool RifReaderObservedData::open( const QString& headerFileName,
|
||||
const QString& identifierName,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory )
|
||||
{
|
||||
AsciiDataParseOptions parseOptions;
|
||||
@@ -154,8 +154,8 @@ std::vector<time_t> RifReaderObservedData::timeSteps( const RifEclipseSummaryAdd
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifEclipseSummaryAddress RifReaderObservedData::address( const QString& vectorName,
|
||||
const QString& identifierName,
|
||||
RifEclipseSummaryAddress RifReaderObservedData::address( const QString& vectorName,
|
||||
const QString& identifierName,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory )
|
||||
{
|
||||
std::string stdVectorName = vectorName.toStdString();
|
||||
|
@@ -52,9 +52,8 @@ public:
|
||||
RiaDefines::EclipseUnitSystem unitSystem() const override;
|
||||
|
||||
private:
|
||||
RifEclipseSummaryAddress address( const QString& vectorName,
|
||||
const QString& identifierName,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory );
|
||||
RifEclipseSummaryAddress
|
||||
address( const QString& vectorName, const QString& identifierName, RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory );
|
||||
|
||||
private:
|
||||
std::unique_ptr<RifCsvUserDataParser> m_asciiParser;
|
||||
|
@@ -52,9 +52,9 @@ RifRevealCsvSectionSummaryReader::~RifRevealCsvSectionSummaryReader()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifRevealCsvSectionSummaryReader::parse( const QString& text,
|
||||
bool RifRevealCsvSectionSummaryReader::parse( const QString& text,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory defaultCategory,
|
||||
QString* errorText )
|
||||
QString* errorText )
|
||||
{
|
||||
m_allResultAddresses.clear();
|
||||
m_mapFromAddressToResultIndex.clear();
|
||||
|
@@ -74,10 +74,10 @@ void RimDataSourceSteppingTools::modifyCurrentIndex( caf::PdmValueField*
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimDataSourceSteppingTools::updateAddressIfMatching( const QVariant& oldValue,
|
||||
const QVariant& newValue,
|
||||
bool RimDataSourceSteppingTools::updateAddressIfMatching( const QVariant& oldValue,
|
||||
const QVariant& newValue,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
RifEclipseSummaryAddress* adr )
|
||||
RifEclipseSummaryAddress* adr )
|
||||
{
|
||||
if ( !adr ) return false;
|
||||
|
||||
|
@@ -36,10 +36,10 @@ public:
|
||||
int indexOffset,
|
||||
bool notifyChange = true );
|
||||
|
||||
static bool updateAddressIfMatching( const QVariant& oldValue,
|
||||
const QVariant& newValue,
|
||||
static bool updateAddressIfMatching( const QVariant& oldValue,
|
||||
const QVariant& newValue,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
RifEclipseSummaryAddress* adr );
|
||||
RifEclipseSummaryAddress* adr );
|
||||
|
||||
static bool updateHistoryAndSummaryQuantityIfMatching( const QVariant& oldValue, const QVariant& newValue, RifEclipseSummaryAddress* adr );
|
||||
|
||||
|
@@ -56,7 +56,7 @@ public:
|
||||
virtual std::vector<RimPlotAxisAnnotation*> annotations() const = 0;
|
||||
virtual void appendAnnotation( RimPlotAxisAnnotation* annotation ) = 0;
|
||||
virtual void removeAllAnnotations() = 0;
|
||||
virtual RiuPlotAxis plotAxis() const = 0;
|
||||
virtual RiuPlotAxis plotAxis() const = 0;
|
||||
|
||||
virtual double visibleRangeMin() const = 0;
|
||||
virtual double visibleRangeMax() const = 0;
|
||||
|
@@ -494,7 +494,7 @@ std::vector<RimSummaryCalculationAddress> RimSummaryCalculation::allAddressesFor
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimSummaryCalculationAddress>
|
||||
RimSummaryCalculation::allAddressesForCategory( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
const std::set<RifEclipseSummaryAddress>& allResultAddresses ) const
|
||||
const std::set<RifEclipseSummaryAddress>& allResultAddresses ) const
|
||||
{
|
||||
std::vector<RimSummaryCalculationAddress> addresses;
|
||||
|
||||
|
@@ -38,7 +38,7 @@ public:
|
||||
|
||||
QString caseName() const override;
|
||||
|
||||
QString identifierName() const;
|
||||
QString identifierName() const;
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory() const;
|
||||
|
||||
void updateMetaData();
|
||||
@@ -52,8 +52,8 @@ private:
|
||||
|
||||
private:
|
||||
caf::PdmField<caf::AppEnum<RifEclipseSummaryAddressDefines::SummaryCategory>> m_summaryCategory;
|
||||
caf::PdmField<QString> m_identifierName;
|
||||
caf::PdmField<bool> m_useCustomIdentifier;
|
||||
caf::PdmField<QString> m_identifierName;
|
||||
caf::PdmField<bool> m_useCustomIdentifier;
|
||||
|
||||
caf::PdmField<QString> m_importedSummaryData;
|
||||
};
|
||||
|
@@ -1100,7 +1100,7 @@ void RimSummaryMultiPlot::computeAggregatedAxisRange()
|
||||
else
|
||||
{
|
||||
auto& [currentMin, currentMax] = axisRanges[axis->plotAxis()];
|
||||
axisRanges[axis->plotAxis()] = std::make_pair( std::min( currentMin, minimum ), std::max( currentMax, maximum ) );
|
||||
axisRanges[axis->plotAxis()] = std::make_pair( std::min( currentMin, minimum ), std::max( currentMax, maximum ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1139,7 +1139,7 @@ void RimSummaryMultiPlot::computeAggregatedAxisRange()
|
||||
else
|
||||
{
|
||||
auto& [currentMin, currentMax] = axisRanges[axis->plotAxis()];
|
||||
axisRanges[axis->plotAxis()] = std::make_pair( std::min( currentMin, minimum ), std::max( currentMax, maximum ) );
|
||||
axisRanges[axis->plotAxis()] = std::make_pair( std::min( currentMin, minimum ), std::max( currentMax, maximum ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -2980,8 +2980,7 @@ void RimSummaryPlot::setAutoScaleXEnabled( bool enabled )
|
||||
{
|
||||
for ( const auto& ap : m_axisPropertiesArray )
|
||||
{
|
||||
if ( ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_TOP ||
|
||||
ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM )
|
||||
if ( ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_TOP || ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM )
|
||||
{
|
||||
ap->setAutoZoom( enabled );
|
||||
}
|
||||
@@ -2995,8 +2994,7 @@ void RimSummaryPlot::setAutoScaleYEnabled( bool enabled )
|
||||
{
|
||||
for ( const auto& ap : m_axisPropertiesArray )
|
||||
{
|
||||
if ( ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_LEFT ||
|
||||
ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_RIGHT )
|
||||
if ( ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_LEFT || ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_RIGHT )
|
||||
{
|
||||
ap->setAutoZoom( enabled );
|
||||
}
|
||||
|
@@ -256,7 +256,7 @@ QList<caf::PdmOptionItemInfo> RimSummaryPlotSourceStepping::calculateValueOption
|
||||
else
|
||||
{
|
||||
SummaryCategory category = SummaryCategory::SUMMARY_INVALID;
|
||||
std::string secondaryIdentifier;
|
||||
std::string secondaryIdentifier;
|
||||
|
||||
if ( fieldNeedingOptions == &m_wellName )
|
||||
{
|
||||
|
@@ -150,9 +150,9 @@ void RimSummaryTable::setDefaultCaseAndCategoryAndVectorName()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryTable::setFromCaseAndCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||
void RimSummaryTable::setFromCaseAndCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
const QString& vectorName )
|
||||
const QString& vectorName )
|
||||
{
|
||||
m_case = summaryCase;
|
||||
m_category = category;
|
||||
@@ -622,7 +622,7 @@ std::set<RifEclipseSummaryAddress> RimSummaryTable::getSummaryAddressesFromReade
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::set<QString> RimSummaryTable::getCategoryVectorFromSummaryReader( const RifSummaryReaderInterface* summaryReader,
|
||||
std::set<QString> RimSummaryTable::getCategoryVectorFromSummaryReader( const RifSummaryReaderInterface* summaryReader,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category ) const
|
||||
{
|
||||
if ( !summaryReader ) return {};
|
||||
|
@@ -59,9 +59,9 @@ public:
|
||||
~RimSummaryTable() override;
|
||||
|
||||
void setDefaultCaseAndCategoryAndVectorName();
|
||||
void setFromCaseAndCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||
void setFromCaseAndCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
const QString& vectorName );
|
||||
const QString& vectorName );
|
||||
void setDescription( const QString& description );
|
||||
QString description() const override;
|
||||
|
||||
@@ -98,10 +98,10 @@ private:
|
||||
std::pair<double, double> createLegendMinMaxValues( const double maxTableValue ) const;
|
||||
QString dateFormatString() const;
|
||||
|
||||
std::set<RifEclipseSummaryAddress> getSummaryAddressesFromReader( const RifSummaryReaderInterface* summaryReader,
|
||||
std::set<RifEclipseSummaryAddress> getSummaryAddressesFromReader( const RifSummaryReaderInterface* summaryReader,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
const QString& vector ) const;
|
||||
std::set<QString> getCategoryVectorFromSummaryReader( const RifSummaryReaderInterface* summaryReader,
|
||||
const QString& vector ) const;
|
||||
std::set<QString> getCategoryVectorFromSummaryReader( const RifSummaryReaderInterface* summaryReader,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category ) const;
|
||||
QString getCategoryNameFromAddress( const RifEclipseSummaryAddress& address ) const;
|
||||
|
||||
@@ -116,9 +116,9 @@ private:
|
||||
caf::PdmPtrField<RimSummaryCase*> m_case;
|
||||
|
||||
caf::PdmField<caf::AppEnum<RifEclipseSummaryAddressDefines::SummaryCategory>> m_category;
|
||||
caf::PdmField<QString> m_vector;
|
||||
caf::PdmField<caf::AppEnum<RiaDefines::DateTimePeriod>> m_resamplingSelection;
|
||||
caf::PdmField<double> m_thresholdValue;
|
||||
caf::PdmField<QString> m_vector;
|
||||
caf::PdmField<caf::AppEnum<RiaDefines::DateTimePeriod>> m_resamplingSelection;
|
||||
caf::PdmField<double> m_thresholdValue;
|
||||
|
||||
caf::PdmField<std::vector<QString>> m_excludedRowsUiField;
|
||||
|
||||
|
@@ -128,10 +128,9 @@ RimSummaryTable* RimSummaryTableCollection::createDefaultSummaryTable()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSummaryTable*
|
||||
RimSummaryTableCollection::createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
const QString& vectorName )
|
||||
RimSummaryTable* RimSummaryTableCollection::createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
const QString& vectorName )
|
||||
{
|
||||
RimSummaryTable* table = new RimSummaryTable();
|
||||
table->setFromCaseAndCategoryAndVectorName( summaryCase, category, vectorName );
|
||||
|
@@ -51,9 +51,9 @@ public:
|
||||
void removeTable( RimSummaryTable* table );
|
||||
|
||||
RimSummaryTable* createDefaultSummaryTable();
|
||||
RimSummaryTable* createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||
RimSummaryTable* createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
const QString& vectorName );
|
||||
const QString& vectorName );
|
||||
|
||||
private:
|
||||
caf::PdmChildArrayField<RimSummaryTable*> m_summaryTables;
|
||||
|
@@ -119,8 +119,8 @@ RifEclipseSummaryAddressDefines::SummaryCategory RiuSummaryQuantityNameInfoProvi
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory
|
||||
RiuSummaryQuantityNameInfoProvider::categoryFromVectorName( const std::string& vectorName, bool exactMatch ) const
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory RiuSummaryQuantityNameInfoProvider::categoryFromVectorName( const std::string& vectorName,
|
||||
bool exactMatch ) const
|
||||
{
|
||||
auto info = quantityInfo( vectorName, exactMatch );
|
||||
|
||||
@@ -186,7 +186,7 @@ std::string RiuSummaryQuantityNameInfoProvider::longNameFromVectorName( const st
|
||||
{
|
||||
auto info = quantityInfo( vectorName );
|
||||
return info.category != RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_INVALID || !returnVectorNameIfNotFound ? info.longName
|
||||
: vectorName;
|
||||
: vectorName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@@ -50,13 +50,13 @@ private:
|
||||
}
|
||||
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory category;
|
||||
std::string longName;
|
||||
std::string longName;
|
||||
};
|
||||
|
||||
private:
|
||||
RiuSummaryQuantityNameInfoProvider();
|
||||
|
||||
RiuSummaryQuantityInfo quantityInfo( const std::string& vectorName, bool exactMatch = false ) const;
|
||||
RiuSummaryQuantityInfo quantityInfo( const std::string& vectorName, bool exactMatch = false ) const;
|
||||
RifEclipseSummaryAddressDefines::SummaryCategory categoryFromVectorName( const std::string& vectorName, bool exactMatch = false ) const;
|
||||
|
||||
static std::unordered_map<std::string, RiuSummaryQuantityInfo> createInfoForEclipseKeywords();
|
||||
|
@@ -170,9 +170,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
||||
CAF_PDM_InitFieldNoDefault( &m_selectedSummaryCategories, "SelectedSummaryCategories", "Summary Categories" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_FIELD][0]->pdmField(), "FieldVectors", "Field vectors" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_FIELD][1]->pdmField(),
|
||||
"FieldCalculationIds",
|
||||
"Calculation Ids" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_FIELD][1]->pdmField(), "FieldCalculationIds", "Calculation Ids" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_AQUIFER][0]->pdmField(), "Aquifers", "Aquifers" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_AQUIFER][1]->pdmField(), "AquiferVectors", "Aquifer Vectors" );
|
||||
@@ -191,9 +189,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][0]->pdmField(), "Regions", "Regions" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][1]->pdmField(), "RegionsVectors", "Regions Vectors" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][2]->pdmField(),
|
||||
"RegionCalculationIds",
|
||||
"Calculation Ids" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][2]->pdmField(), "RegionCalculationIds", "Calculation Ids" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION_2_REGION][0]->pdmField(),
|
||||
"Region2RegionRegions",
|
||||
@@ -206,9 +202,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
||||
"Calculation Ids" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][0]->pdmField(), "WellGroupWellGroupNames", "Groups" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][1]->pdmField(),
|
||||
"WellGroupVectors",
|
||||
"Well Group Vectors" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][1]->pdmField(), "WellGroupVectors", "Well Group Vectors" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][2]->pdmField(),
|
||||
"WellGroupCalculationIds",
|
||||
"Calculation Ids" );
|
||||
@@ -220,9 +214,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][0]->pdmField(),
|
||||
"WellCompletionWellName",
|
||||
"Wells" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][1]->pdmField(),
|
||||
"WellCompletionIjk",
|
||||
"Cell IJK" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][1]->pdmField(), "WellCompletionIjk", "Cell IJK" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][2]->pdmField(),
|
||||
"WellCompletionVectors",
|
||||
"Well Completion Vectors" );
|
||||
@@ -262,9 +254,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][0]->pdmField(), "BlockIjk", "Cell IJK" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][1]->pdmField(), "BlockVectors", "Block Vectors" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][2]->pdmField(),
|
||||
"BlockCalculationIds",
|
||||
"Calculation Ids" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][2]->pdmField(), "BlockCalculationIds", "Calculation Ids" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK_LGR][0]->pdmField(), "BlockLgrLgrName", "LGR Names" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK_LGR][1]->pdmField(), "BlockLgrIjk", "Cell IJK" );
|
||||
@@ -273,9 +263,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
||||
"BlockLgrCalculationIds",
|
||||
"CalculationIds" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_IMPORTED][0]->pdmField(),
|
||||
"ImportedVectors",
|
||||
"Imported vectors" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_IMPORTED][0]->pdmField(), "ImportedVectors", "Imported vectors" );
|
||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_IMPORTED][1]->pdmField(),
|
||||
"ImportedCalculationIds",
|
||||
"Calculation Ids" );
|
||||
@@ -1233,7 +1221,7 @@ std::set<RifEclipseSummaryAddress> RiuSummaryVectorSelectionUi::buildAddressList
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuSummaryVectorSelectionUi::buildAddressListForCategoryRecursively(
|
||||
SummaryCategory category,
|
||||
SummaryCategory category,
|
||||
std::vector<SummaryIdentifierAndField*>::const_iterator identifierAndFieldItr,
|
||||
std::vector<std::pair<SummaryIdentifierType, QString>>& identifierPath,
|
||||
std::set<RifEclipseSummaryAddress>& addressSet ) const
|
||||
|
@@ -95,7 +95,7 @@ private:
|
||||
const std::vector<SummaryIdentifierAndField*>& identifierAndFieldList ) const;
|
||||
|
||||
std::set<RifEclipseSummaryAddress> buildAddressListFromSelections() const;
|
||||
void buildAddressListForCategoryRecursively( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
void buildAddressListForCategoryRecursively( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||
std::vector<SummaryIdentifierAndField*>::const_iterator identifierAndFieldItr,
|
||||
std::vector<std::pair<RifEclipseSummaryAddressDefines::SummaryIdentifierType, QString>>& identifierPath,
|
||||
std::set<RifEclipseSummaryAddress>& addressSet ) const;
|
||||
|
Reference in New Issue
Block a user