Create features to append plots with RFT curves (#9200)

* Add create plot with RFT curve
* Add RFT segment plot with curve
* Create tracks for all three branch types

* Make sure the zero is displayed when adjusted minimum is changing sign
This commit is contained in:
Magne Sjaastad
2022-08-17 10:04:10 +02:00
committed by GitHub
parent 1507894066
commit 597a3d1f97
14 changed files with 412 additions and 10 deletions

View File

@@ -106,6 +106,7 @@
#include "RimPltPlotCollection.h"
#include "RimPressureTable.h"
#include "RimProject.h"
#include "RimRftCase.h"
#include "RimRftPlotCollection.h"
#include "RimSaturationPressurePlotCollection.h"
#include "RimScriptCollection.h"
@@ -1070,6 +1071,11 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
{
menuBuilder << "RicNewPlotAxisPropertiesFeature";
}
else if ( dynamic_cast<RimRftCase*>( firstUiItem ) )
{
menuBuilder << "RicNewRftWellLogCurveFeature";
menuBuilder << "RicNewRftSegmentWellLogCurveFeature";
}
if ( dynamic_cast<Rim3dView*>( firstUiItem ) )
{

View File

@@ -1217,6 +1217,14 @@ RimDepthTrackPlot::DepthOrientation RimDepthTrackPlot::depthOrientation() const
return m_depthOrientation();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimDepthTrackPlot::setDepthOrientation( DepthOrientation depthOrientation )
{
m_depthOrientation = depthOrientation;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -105,9 +105,11 @@ public:
AxisGridVisibility depthAxisGridLinesEnabled() const;
RimDepthTrackPlot::DepthOrientation depthOrientation() const;
RiuPlotAxis depthAxis() const;
RiuPlotAxis valueAxis() const;
RiuPlotAxis annotationAxis() const;
void setDepthOrientation( RimDepthTrackPlot::DepthOrientation depthOrientation );
RiuPlotAxis depthAxis() const;
RiuPlotAxis valueAxis() const;
RiuPlotAxis annotationAxis() const;
void setAutoScalePropertyValuesEnabled( bool enabled );
void setAutoScaleDepthValuesEnabled( bool enabled );

View File

@@ -327,6 +327,7 @@ void RimWellLogRftCurve::setRftAddress( RifEclipseRftAddress address )
m_rftDataType = RftDataType::RFT_SEGMENT_DATA;
m_segmentResultName = address.segmentResultName();
m_segmentBranchIndex = address.segmentBranchIndex();
m_segmentBranchType = address.segmentBranchType();
}
else
{

View File

@@ -2138,9 +2138,13 @@ std::pair<double, double> RimWellLogTrack::extendMinMaxRange( double minValue, d
auto candidateMinValue = minValue - factor * range;
if ( std::signbit( minValue ) == std::signbit( candidateMinValue ) )
{
// Leave minimum unchanged if the changes causes change of sign to make sure that zero is located properly
modifiedMin = candidateMinValue;
}
else
{
// If the sign of the adjusted minimum changes, set minimum to zero to make sure that zero is located properly
modifiedMin = 0.0;
}
return { modifiedMin, modifiedMax };
}