mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4819 Add methods to get case and time step name for RimContourMapProjection.
This commit is contained in:
parent
eb829abf72
commit
f70fbe0071
@ -243,6 +243,34 @@ QString RimContourMapProjection::resultAggregationText() const
|
|||||||
return m_resultAggregation().uiText();
|
return m_resultAggregation().uiText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
QString RimContourMapProjection::caseName() const
|
||||||
|
{
|
||||||
|
RimCase* rimCase = baseView()->ownerCase();
|
||||||
|
if ( !rimCase )
|
||||||
|
{
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
|
return rimCase->caseUserDescription.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
QString RimContourMapProjection::currentTimeStepName() const
|
||||||
|
{
|
||||||
|
RimCase* rimCase = baseView()->ownerCase();
|
||||||
|
if ( !rimCase || m_currentResultTimestep == -1 )
|
||||||
|
{
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
|
return rimCase->timeStepName( m_currentResultTimestep );
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -89,6 +89,9 @@ public:
|
|||||||
|
|
||||||
QString resultAggregationText() const;
|
QString resultAggregationText() const;
|
||||||
|
|
||||||
|
QString caseName() const;
|
||||||
|
QString currentTimeStepName() const;
|
||||||
|
|
||||||
double maxValue() const;
|
double maxValue() const;
|
||||||
double minValue() const;
|
double minValue() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user