mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#14539 Summary Plot: Preserve user defined axis ranges when the data source changes
An axis range defined by the user is now kept when a summary case or ensemble is added, reloaded or replaced. The range is marked as user defined when the user edits the min/max values, unchecks "Set Range Automatically" or zooms interactively in the plot. The user defined range is released by "Zoom All", by double click in a plot, by checking "Set Range Automatically" or by changing the Y axis range aggregation of a summary multi plot.
This commit is contained in:
1 parent
f38332b2e6
commit
110bdbe0c7
11 files changed
+121
-7
No files matched your search
@@ -51,6 +51,26 @@ RimPlotAxisPropertiesInterface::RimPlotAxisPropertiesInterface()
|
||||
: settingsChanged( this )
|
||||
{
|
||||
CAF_PDM_InitObject( "Plot Axis Properties Interface" );
|
||||
|
||||
CAF_PDM_InitField( &m_isRangeUserDefined, "IsRangeUserDefined", false, "Is Range Defined by User" );
|
||||
m_isRangeUserDefined.uiCapability()->setUiHidden( true );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// A user defined axis range is kept when the data source of a plot is changed, and is released when the user asks for
|
||||
/// automatic range computation (Zoom All or "Set Range Automatically").
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimPlotAxisPropertiesInterface::isRangeUserDefined() const
|
||||
{
|
||||
return m_isRangeUserDefined();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotAxisPropertiesInterface::setRangeUserDefined( bool isUserDefined )
|
||||
{
|
||||
m_isRangeUserDefined = isUserDefined;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user