mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix RFT segment plot issues
* RFT curves: Disable auto color by default * RFT curves: Fix wiggling legend caused by too many plot updates * RFT Curves: Search multiple layers for CONFAC data * Move plot orientation to Depth Axis, Advanced group
This commit is contained in:
@@ -574,6 +574,7 @@ void RimDepthTrackPlot::uiOrderingForDepthAxis( QString uiConfigName, caf::PdmUi
|
||||
|
||||
auto group = uiOrdering.addNewGroup( "Advanced" );
|
||||
group->setCollapsedByDefault();
|
||||
group->add( &m_depthOrientation );
|
||||
group->add( &m_depthAxisGridVisibility );
|
||||
group->add( &m_depthAxisVisibility );
|
||||
group->add( &m_showDepthMarkerLine );
|
||||
@@ -1139,7 +1140,6 @@ void RimDepthTrackPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOrderi
|
||||
fontGroup->add( &m_subTitleFontSize );
|
||||
fontGroup->add( &m_axisTitleFontSize );
|
||||
fontGroup->add( &m_axisValueFontSize );
|
||||
fontGroup->add( &m_depthOrientation );
|
||||
|
||||
std::vector<RimEnsembleWellLogCurveSet*> ensembleWellLogCurveSets;
|
||||
descendantsOfType( ensembleWellLogCurveSets );
|
||||
|
||||
@@ -832,10 +832,7 @@ void RimWellLogRftCurve::defineUiOrdering( QString uiConfigName, caf::PdmUiOrder
|
||||
else
|
||||
{
|
||||
curveDataGroup->add( &m_segmentResultName );
|
||||
if ( isSegmentResult( m_segmentResultName() ) )
|
||||
{
|
||||
curveDataGroup->add( &m_segmentBranchType );
|
||||
}
|
||||
curveDataGroup->add( &m_segmentBranchType );
|
||||
curveDataGroup->add( &m_segmentBranchIndex );
|
||||
curveDataGroup->add( &m_curveColorByPhase );
|
||||
}
|
||||
|
||||
@@ -1095,20 +1095,6 @@ void RimWellLogTrack::onAxisSelected( RiuPlotAxis axis, bool toggle )
|
||||
void RimWellLogTrack::updateAxes()
|
||||
{
|
||||
updatePropertyValueZoom();
|
||||
|
||||
if ( m_plotWidget )
|
||||
{
|
||||
RimDepthTrackPlot* wellLogPlot;
|
||||
this->firstAncestorOrThisOfTypeAsserted( wellLogPlot );
|
||||
if ( wellLogPlot->isDepthMarkerLineEnabled() )
|
||||
{
|
||||
m_plotWidget->createAnnotationsInPlot( wellLogPlot->depthAxisAnnotations() );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_plotWidget->createAnnotationsInPlot( {} );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1359,6 +1345,28 @@ bool RimWellLogTrack::isCurveHighlightSupported() const
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogTrack::updateDepthMarkerLine()
|
||||
{
|
||||
if ( m_plotWidget )
|
||||
{
|
||||
RimDepthTrackPlot* wellLogPlot;
|
||||
this->firstAncestorOrThisOfTypeAsserted( wellLogPlot );
|
||||
if ( wellLogPlot->isDepthMarkerLineEnabled() )
|
||||
{
|
||||
m_plotWidget->createAnnotationsInPlot( wellLogPlot->depthAxisAnnotations() );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_plotWidget->createAnnotationsInPlot( {} );
|
||||
}
|
||||
|
||||
m_plotWidget->scheduleReplot();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -241,6 +241,7 @@ public:
|
||||
void setEnsembleWellLogCurveSet( RimEnsembleWellLogCurveSet* curveSet );
|
||||
void updateAxesVisibility( RiaDefines::Orientation orientation, bool isFirstTrack, bool isLastTrack );
|
||||
bool isCurveHighlightSupported() const override;
|
||||
void updateDepthMarkerLine();
|
||||
|
||||
protected:
|
||||
// RimViewWindow overrides
|
||||
|
||||
Reference in New Issue
Block a user