#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:
Magne Sjaastad 2022-10-13 07:09:44 +02:00
parent e7a486c802
commit 7591b480a3
3 changed files with 7 additions and 3 deletions

View File

@ -456,6 +456,8 @@ RimStimPlanModelPlot* RicNewStimPlanModelPlotFeature::createStimPlanModelPlot( b
QString( "StimPlan Model Plot %1" ).arg( stimPlanModelPlotCollection()->stimPlanModelPlots().size() ) );
}
stimPlanModelPlotColl->updateAllRequiredEditors();
if ( showAfterCreation )
{
RiaGuiApplication::instance()->getOrCreateAndShowMainPlotWindow();

View File

@ -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 )

View File

@ -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() )