mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add collection and feature to create saturation pressure plots
This commit is contained in:
@@ -75,6 +75,18 @@ void RimPlotAxisAnnotation::setValue(double value)
|
||||
m_value = value;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotAxisAnnotation::setEquilibriumData(RimEclipseCase* eclipseCase,
|
||||
int equilibriumRegion,
|
||||
PlotAxisAnnotationType annotationType)
|
||||
{
|
||||
m_sourceCase = eclipseCase;
|
||||
m_equilNum = equilibriumRegion;
|
||||
m_annotationType = annotationType;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -166,7 +178,7 @@ QList<caf::PdmOptionItemInfo> RimPlotAxisAnnotation::calculateValueOptions(const
|
||||
{
|
||||
for (int i = 0; i < equilItems().size(); i++)
|
||||
{
|
||||
QString uiText = QString("%1").arg(i+1);
|
||||
QString uiText = QString("%1").arg(i + 1);
|
||||
options.push_back(caf::PdmOptionItemInfo(uiText, i));
|
||||
}
|
||||
}
|
||||
@@ -200,7 +212,7 @@ void RimPlotAxisAnnotation::defineUiOrdering(QString uiConfigName, caf::PdmUiOrd
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigEquil RimPlotAxisAnnotation::selectedItem() const
|
||||
{
|
||||
int index = m_equilNum() -1;
|
||||
int index = m_equilNum() - 1;
|
||||
|
||||
if (index < equilItems().size())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user