mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4567 Summary Plot: Set quantity plot title only WOPT and WOPTH
This commit is contained in:
parent
0dde46e4fe
commit
7295ba8533
@ -70,7 +70,7 @@ QString RimSummaryCurveAutoName::curveNameY(const RifEclipseSummaryAddress& summ
|
||||
|
||||
if (m_vectorName)
|
||||
{
|
||||
bool skipSubString = nameHelper && nameHelper->isQuantityInTitle();
|
||||
bool skipSubString = nameHelper && nameHelper->isPlotDisplayingSingleQuantity();
|
||||
if (!skipSubString)
|
||||
{
|
||||
text += summaryAddress.quantityName();
|
||||
@ -132,7 +132,7 @@ QString RimSummaryCurveAutoName::curveNameX(const RifEclipseSummaryAddress& summ
|
||||
|
||||
if (m_vectorName)
|
||||
{
|
||||
bool skipSubString = nameHelper && nameHelper->isQuantityInTitle();
|
||||
bool skipSubString = nameHelper && nameHelper->isPlotDisplayingSingleQuantity();
|
||||
if (!skipSubString)
|
||||
{
|
||||
text += summaryAddress.quantityName();
|
||||
|
@ -152,9 +152,9 @@ QString RimSummaryPlotNameHelper::plotTitle() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimSummaryPlotNameHelper::isQuantityInTitle() const
|
||||
bool RimSummaryPlotNameHelper::isPlotDisplayingSingleQuantity() const
|
||||
{
|
||||
return !m_titleQuantity.empty();
|
||||
return m_analyzer.quantities().size() == 1;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -236,7 +236,6 @@ void RimSummaryPlotNameHelper::extractPlotTitleSubStrings()
|
||||
{
|
||||
clearTitleSubStrings();
|
||||
|
||||
auto quantities = m_analyzer.quantities();
|
||||
auto wellNames = m_analyzer.wellNames();
|
||||
auto wellGroupNames = m_analyzer.wellGroupNames();
|
||||
auto regions = m_analyzer.regionNumbers();
|
||||
@ -245,10 +244,7 @@ void RimSummaryPlotNameHelper::extractPlotTitleSubStrings()
|
||||
|
||||
if (categories.size() == 1)
|
||||
{
|
||||
if (quantities.size() == 1)
|
||||
{
|
||||
m_titleQuantity = *(quantities.begin());
|
||||
}
|
||||
m_titleQuantity = m_analyzer.quantityNameForTitle();
|
||||
|
||||
if (wellNames.size() == 1)
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
|
||||
QString plotTitle() const;
|
||||
|
||||
bool isQuantityInTitle() const;
|
||||
bool isPlotDisplayingSingleQuantity() const;
|
||||
bool isWellNameInTitle() const;
|
||||
bool isWellGroupNameInTitle() const;
|
||||
bool isRegionInTitle() const;
|
||||
|
Loading…
Reference in New Issue
Block a user