mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Add support for summary cross plot curves in summary plots
This commit is contained in:
1 parent
b87fa0bc74
commit
146412c600
44 files changed
+970
-440
No files matched your search
@@ -145,12 +145,7 @@ void RimPlotAxisProperties::enableRangeSettings( bool enable )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotAxisProperties::setNameForUnusedAxis()
|
||||
{
|
||||
QString name = "Unused ";
|
||||
|
||||
if ( m_plotAxis() == RiaDefines::PlotAxis::PLOT_AXIS_LEFT )
|
||||
name += "Left";
|
||||
else if ( m_plotAxis() == RiaDefines::PlotAxis::PLOT_AXIS_RIGHT )
|
||||
name += "Right";
|
||||
QString name = "Unused " + m_plotAxis().text();
|
||||
|
||||
m_objectName = name;
|
||||
}
|
||||
@@ -184,18 +179,6 @@ QList<caf::PdmOptionItemInfo> RimPlotAxisProperties::calculateValueOptions( cons
|
||||
{
|
||||
options = caf::FontTools::relativeSizeValueOptions( RiaPreferences::current()->defaultPlotFontSize() );
|
||||
}
|
||||
else if ( fieldNeedingOptions == &m_plotAxis )
|
||||
{
|
||||
std::vector<RiaDefines::PlotAxis> plotAxes = { RiaDefines::PlotAxis::PLOT_AXIS_LEFT, RiaDefines::PlotAxis::PLOT_AXIS_RIGHT };
|
||||
|
||||
for ( auto plotAxis : plotAxes )
|
||||
{
|
||||
auto plotAxisEnum = caf::AppEnum<RiaDefines::PlotAxis>( plotAxis );
|
||||
|
||||
QString uiText = plotAxisEnum.uiText();
|
||||
options.push_back( caf::PdmOptionItemInfo( uiText, plotAxisEnum.value() ) );
|
||||
}
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user