mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9357 StimPlanModelPlot: Plot visibility and logic updates
- update project tree after plot is generated - set default text tracker orientation to vertical - call base class fieldChangedByUi to handle hiding of Stimplan plot
This commit is contained in:
parent
e7a486c802
commit
7591b480a3
@ -456,6 +456,8 @@ RimStimPlanModelPlot* RicNewStimPlanModelPlotFeature::createStimPlanModelPlot( b
|
||||
QString( "StimPlan Model Plot %1" ).arg( stimPlanModelPlotCollection()->stimPlanModelPlots().size() ) );
|
||||
}
|
||||
|
||||
stimPlanModelPlotColl->updateAllRequiredEditors();
|
||||
|
||||
if ( showAfterCreation )
|
||||
{
|
||||
RiaGuiApplication::instance()->getOrCreateAndShowMainPlotWindow();
|
||||
|
@ -133,6 +133,8 @@ void RimStimPlanModelPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedF
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue )
|
||||
{
|
||||
RimDepthTrackPlot::fieldChangedByUi( changedField, oldValue, newValue );
|
||||
|
||||
if ( m_stimPlanModel )
|
||||
{
|
||||
if ( changedField == &m_eclipseCase || changedField == &m_timeStep )
|
||||
|
@ -73,13 +73,13 @@ protected:
|
||||
RimWellLogPlot* wlp = nullptr;
|
||||
m_wellLogTrack->firstAncestorOfType( wlp );
|
||||
|
||||
if ( wlp && wlp->depthOrientation() == RimDepthTrackPlot::DepthOrientation::VERTICAL )
|
||||
if ( wlp && wlp->depthOrientation() == RimDepthTrackPlot::DepthOrientation::HORIZONTAL )
|
||||
{
|
||||
str = QString( "%1\nDepth: %2" ).arg( xAxisValueString ).arg( depthAxisValueString );
|
||||
str = QString( "%1\nDepth: %2" ).arg( depthAxisValueString ).arg( xAxisValueString );
|
||||
}
|
||||
else
|
||||
{
|
||||
str = QString( "%1\nDepth: %2" ).arg( depthAxisValueString ).arg( xAxisValueString );
|
||||
str = QString( "%1\nDepth: %2" ).arg( xAxisValueString ).arg( depthAxisValueString );
|
||||
}
|
||||
|
||||
if ( !curveInfoText.isEmpty() )
|
||||
|
Loading…
Reference in New Issue
Block a user