mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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 ) )
|
||||
{
|
||||
|
||||
@@ -1217,6 +1217,14 @@ RimDepthTrackPlot::DepthOrientation RimDepthTrackPlot::depthOrientation() const
|
||||
return m_depthOrientation();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimDepthTrackPlot::setDepthOrientation( DepthOrientation depthOrientation )
|
||||
{
|
||||
m_depthOrientation = depthOrientation;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user