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:
parent
1507894066
commit
597a3d1f97
@ -466,6 +466,67 @@ RimWellLogExtractionCurve* RicWellLogTools::addWellLogExtractionCurve( RimWellLo
|
|||||||
showPlotWindow );
|
showPlotWindow );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
RimWellLogCurve* RicWellLogTools::addSummaryRftCurve( RimWellLogTrack* plotTrack, RimSummaryCase* rimCase )
|
||||||
|
{
|
||||||
|
auto curve = new RimWellLogRftCurve();
|
||||||
|
|
||||||
|
curve->setSummaryCase( rimCase );
|
||||||
|
auto rftReader = rimCase->rftReader();
|
||||||
|
|
||||||
|
QString wellName;
|
||||||
|
auto wellNames = rftReader->wellNames();
|
||||||
|
if ( !wellNames.empty() ) wellName = *wellNames.begin();
|
||||||
|
|
||||||
|
QDateTime dateTime;
|
||||||
|
|
||||||
|
auto timeSteps = rftReader->availableTimeSteps( wellName );
|
||||||
|
if ( !timeSteps.empty() ) dateTime = *timeSteps.rbegin();
|
||||||
|
|
||||||
|
RifEclipseRftAddress adr =
|
||||||
|
RifEclipseRftAddress::createAddress( wellName, dateTime, RifEclipseRftAddress::RftWellLogChannelType::PRESSURE );
|
||||||
|
curve->setRftAddress( adr );
|
||||||
|
|
||||||
|
plotTrack->addCurve( curve );
|
||||||
|
|
||||||
|
return curve;
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
RimWellLogCurve* RicWellLogTools::addSummaryRftSegmentCurve( RimWellLogTrack* plotTrack,
|
||||||
|
const QString& resultName,
|
||||||
|
RiaDefines::RftBranchType branchType,
|
||||||
|
RimSummaryCase* rimCase )
|
||||||
|
{
|
||||||
|
auto curve = new RimWellLogRftCurve();
|
||||||
|
|
||||||
|
curve->setSummaryCase( rimCase );
|
||||||
|
auto rftReader = rimCase->rftReader();
|
||||||
|
|
||||||
|
QString wellName;
|
||||||
|
auto wellNames = rftReader->wellNames();
|
||||||
|
if ( !wellNames.empty() ) wellName = *wellNames.begin();
|
||||||
|
|
||||||
|
QDateTime dateTime;
|
||||||
|
|
||||||
|
auto timeSteps = rftReader->availableTimeSteps( wellName );
|
||||||
|
if ( !timeSteps.empty() ) dateTime = *timeSteps.rbegin();
|
||||||
|
|
||||||
|
RifEclipseRftAddress adr =
|
||||||
|
RifEclipseRftAddress::createBranchSegmentAddress( wellName, dateTime, resultName, 1, branchType );
|
||||||
|
curve->setRftAddress( adr );
|
||||||
|
|
||||||
|
curve->setInterpolation( RiuQwtPlotCurveDefines::CurveInterpolationEnum::INTERPOLATION_STEP_LEFT );
|
||||||
|
|
||||||
|
plotTrack->addCurve( curve );
|
||||||
|
|
||||||
|
return curve;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "RiaRftDefines.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -34,6 +36,8 @@ class RimWellLogTrack;
|
|||||||
class RimWellLogWbsCurve;
|
class RimWellLogWbsCurve;
|
||||||
class RimWellPath;
|
class RimWellPath;
|
||||||
class RimWellMeasurementCurve;
|
class RimWellMeasurementCurve;
|
||||||
|
class RimSummaryCase;
|
||||||
|
class RimWellLogCurve;
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
@ -73,6 +77,12 @@ public:
|
|||||||
const QString& measurementName,
|
const QString& measurementName,
|
||||||
bool showPlotWindow = true );
|
bool showPlotWindow = true );
|
||||||
|
|
||||||
|
static RimWellLogCurve* addSummaryRftCurve( RimWellLogTrack* plotTrack, RimSummaryCase* rimCase );
|
||||||
|
static RimWellLogCurve* addSummaryRftSegmentCurve( RimWellLogTrack* plotTrack,
|
||||||
|
const QString& resultName,
|
||||||
|
RiaDefines::RftBranchType branchType,
|
||||||
|
RimSummaryCase* rimCase );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template <typename ExtractionCurveType>
|
template <typename ExtractionCurveType>
|
||||||
static ExtractionCurveType* addExtractionCurve( RimWellLogTrack* plotTrack,
|
static ExtractionCurveType* addExtractionCurve( RimWellLogTrack* plotTrack,
|
||||||
|
@ -27,6 +27,8 @@ set(SOURCE_GROUP_HEADER_FILES
|
|||||||
${CMAKE_CURRENT_LIST_DIR}/RicNewWellBoreStabilityPlotFeature.h
|
${CMAKE_CURRENT_LIST_DIR}/RicNewWellBoreStabilityPlotFeature.h
|
||||||
${CMAKE_CURRENT_LIST_DIR}/RicNewWellMeasurementCurveFeature.h
|
${CMAKE_CURRENT_LIST_DIR}/RicNewWellMeasurementCurveFeature.h
|
||||||
${CMAKE_CURRENT_LIST_DIR}/RicNewEnsembleWellLogCurveSetFeature.h
|
${CMAKE_CURRENT_LIST_DIR}/RicNewEnsembleWellLogCurveSetFeature.h
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/RicNewRftWellLogCurveFeature.h
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/RicNewRftSegmentWellLogCurveFeature.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SOURCE_GROUP_SOURCE_FILES
|
set(SOURCE_GROUP_SOURCE_FILES
|
||||||
@ -58,6 +60,8 @@ set(SOURCE_GROUP_SOURCE_FILES
|
|||||||
${CMAKE_CURRENT_LIST_DIR}/RicNewWellBoreStabilityPlotFeature.cpp
|
${CMAKE_CURRENT_LIST_DIR}/RicNewWellBoreStabilityPlotFeature.cpp
|
||||||
${CMAKE_CURRENT_LIST_DIR}/RicNewWellMeasurementCurveFeature.cpp
|
${CMAKE_CURRENT_LIST_DIR}/RicNewWellMeasurementCurveFeature.cpp
|
||||||
${CMAKE_CURRENT_LIST_DIR}/RicNewEnsembleWellLogCurveSetFeature.cpp
|
${CMAKE_CURRENT_LIST_DIR}/RicNewEnsembleWellLogCurveSetFeature.cpp
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/RicNewRftWellLogCurveFeature.cpp
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/RicNewRftSegmentWellLogCurveFeature.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND COMMAND_CODE_HEADER_FILES ${SOURCE_GROUP_HEADER_FILES})
|
list(APPEND COMMAND_CODE_HEADER_FILES ${SOURCE_GROUP_HEADER_FILES})
|
||||||
|
@ -0,0 +1,119 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Copyright (C) 2022 Equinor ASA
|
||||||
|
//
|
||||||
|
// ResInsight is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
//
|
||||||
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||||
|
// for more details.
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "RicNewRftSegmentWellLogCurveFeature.h"
|
||||||
|
|
||||||
|
#include "RicNewWellLogPlotFeatureImpl.h"
|
||||||
|
#include "RicWellLogPlotCurveFeatureImpl.h"
|
||||||
|
#include "RicWellLogTools.h"
|
||||||
|
|
||||||
|
#include "RiaApplication.h"
|
||||||
|
#include "RiaRftDefines.h"
|
||||||
|
|
||||||
|
#include "RigWellLogCurveData.h"
|
||||||
|
|
||||||
|
#include "RimRftCase.h"
|
||||||
|
#include "RimSummaryCase.h"
|
||||||
|
#include "RimWellLogExtractionCurve.h"
|
||||||
|
#include "RimWellLogPlot.h"
|
||||||
|
#include "RimWellLogTrack.h"
|
||||||
|
|
||||||
|
#include "Riu3dSelectionManager.h"
|
||||||
|
#include "RiuPlotMainWindow.h"
|
||||||
|
#include "RiuPlotMainWindowTools.h"
|
||||||
|
|
||||||
|
#include "cafSelectionManager.h"
|
||||||
|
|
||||||
|
#include <QAction>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
CAF_CMD_SOURCE_INIT( RicNewRftSegmentWellLogCurveFeature, "RicNewRftSegmentWellLogCurveFeature" );
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
bool RicNewRftSegmentWellLogCurveFeature::isCommandEnabled()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RicNewRftSegmentWellLogCurveFeature::onActionTriggered( bool isChecked )
|
||||||
|
{
|
||||||
|
auto rftCase = caf::SelectionManager::instance()->selectedItemOfType<RimRftCase>();
|
||||||
|
if ( !rftCase ) return;
|
||||||
|
|
||||||
|
RimSummaryCase* summaryCase = nullptr;
|
||||||
|
rftCase->firstAncestorOfType( summaryCase );
|
||||||
|
|
||||||
|
auto plot = RicNewWellLogPlotFeatureImpl::createHorizontalWellLogPlot();
|
||||||
|
|
||||||
|
QString resultName = "SEGGRAT";
|
||||||
|
|
||||||
|
{
|
||||||
|
auto branchType = RiaDefines::RftBranchType::RFT_TUBING;
|
||||||
|
|
||||||
|
appendTrackAndCurveForBranchType( plot, resultName, branchType, summaryCase );
|
||||||
|
}
|
||||||
|
{
|
||||||
|
auto branchType = RiaDefines::RftBranchType::RFT_DEVICE;
|
||||||
|
|
||||||
|
appendTrackAndCurveForBranchType( plot, resultName, branchType, summaryCase );
|
||||||
|
}
|
||||||
|
{
|
||||||
|
auto branchType = RiaDefines::RftBranchType::RFT_ANNULUS;
|
||||||
|
|
||||||
|
appendTrackAndCurveForBranchType( plot, resultName, branchType, summaryCase );
|
||||||
|
}
|
||||||
|
|
||||||
|
RiuPlotMainWindowTools::selectAsCurrentItem( plot );
|
||||||
|
RiuPlotMainWindowTools::refreshToolbars();
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RicNewRftSegmentWellLogCurveFeature::appendTrackAndCurveForBranchType( RimWellLogPlot* plot,
|
||||||
|
const QString& resultName,
|
||||||
|
RiaDefines::RftBranchType branchType,
|
||||||
|
RimSummaryCase* summaryCase )
|
||||||
|
{
|
||||||
|
RimWellLogTrack* plotTrack = new RimWellLogTrack();
|
||||||
|
plot->addPlot( plotTrack );
|
||||||
|
plotTrack->setDescription( QString( "Track %1" ).arg( plot->plotCount() ) );
|
||||||
|
|
||||||
|
plot->loadDataAndUpdate();
|
||||||
|
|
||||||
|
auto curve = RicWellLogTools::addSummaryRftSegmentCurve( plotTrack, resultName, branchType, summaryCase );
|
||||||
|
curve->loadDataAndUpdate( true );
|
||||||
|
|
||||||
|
curve->updateAllRequiredEditors();
|
||||||
|
RiuPlotMainWindowTools::setExpanded( curve );
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RicNewRftSegmentWellLogCurveFeature::setupActionLook( QAction* actionToSetup )
|
||||||
|
{
|
||||||
|
actionToSetup->setText( "Append RFT Segment Curve" );
|
||||||
|
actionToSetup->setIcon( QIcon( ":/WellLogCurve16x16.png" ) );
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Copyright (C) 2022 Equinor ASA
|
||||||
|
//
|
||||||
|
// ResInsight is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
//
|
||||||
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||||
|
// for more details.
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "RiaRftDefines.h"
|
||||||
|
|
||||||
|
#include "cafCmdFeature.h"
|
||||||
|
|
||||||
|
class RimWellLogPlot;
|
||||||
|
class RimSummaryCase;
|
||||||
|
|
||||||
|
//==================================================================================================
|
||||||
|
///
|
||||||
|
//==================================================================================================
|
||||||
|
class RicNewRftSegmentWellLogCurveFeature : public caf::CmdFeature
|
||||||
|
{
|
||||||
|
CAF_CMD_HEADER_INIT;
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool isCommandEnabled() override;
|
||||||
|
void onActionTriggered( bool isChecked ) override;
|
||||||
|
|
||||||
|
void setupActionLook( QAction* actionToSetup ) override;
|
||||||
|
|
||||||
|
void appendTrackAndCurveForBranchType( RimWellLogPlot* plot,
|
||||||
|
const QString& resultName,
|
||||||
|
RiaDefines::RftBranchType branchType,
|
||||||
|
RimSummaryCase* summaryCase );
|
||||||
|
};
|
@ -0,0 +1,92 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Copyright (C) 2022 Equinor ASA
|
||||||
|
//
|
||||||
|
// ResInsight is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
//
|
||||||
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||||
|
// for more details.
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "RicNewRftWellLogCurveFeature.h"
|
||||||
|
|
||||||
|
#include "RicNewWellLogPlotFeatureImpl.h"
|
||||||
|
#include "RicWellLogPlotCurveFeatureImpl.h"
|
||||||
|
#include "RicWellLogTools.h"
|
||||||
|
|
||||||
|
#include "RiaApplication.h"
|
||||||
|
|
||||||
|
#include "RigWellLogCurveData.h"
|
||||||
|
|
||||||
|
#include "RimRftCase.h"
|
||||||
|
#include "RimSummaryCase.h"
|
||||||
|
#include "RimWellLogExtractionCurve.h"
|
||||||
|
#include "RimWellLogPlot.h"
|
||||||
|
#include "RimWellLogTrack.h"
|
||||||
|
|
||||||
|
#include "Riu3dSelectionManager.h"
|
||||||
|
#include "RiuPlotMainWindow.h"
|
||||||
|
#include "RiuPlotMainWindowTools.h"
|
||||||
|
|
||||||
|
#include "cafSelectionManager.h"
|
||||||
|
|
||||||
|
#include <QAction>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
CAF_CMD_SOURCE_INIT( RicNewRftWellLogCurveFeature, "RicNewRftWellLogCurveFeature" );
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
bool RicNewRftWellLogCurveFeature::isCommandEnabled()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RicNewRftWellLogCurveFeature::onActionTriggered( bool isChecked )
|
||||||
|
{
|
||||||
|
auto rftCase = caf::SelectionManager::instance()->selectedItemOfType<RimRftCase>();
|
||||||
|
if ( !rftCase ) return;
|
||||||
|
|
||||||
|
RimSummaryCase* summaryCase = nullptr;
|
||||||
|
rftCase->firstAncestorOfType( summaryCase );
|
||||||
|
|
||||||
|
auto plot = RicNewWellLogPlotFeatureImpl::createWellLogPlot();
|
||||||
|
|
||||||
|
RimWellLogTrack* plotTrack = new RimWellLogTrack();
|
||||||
|
plot->addPlot( plotTrack );
|
||||||
|
plotTrack->setDescription( QString( "Track %1" ).arg( plot->plotCount() ) );
|
||||||
|
|
||||||
|
plot->loadDataAndUpdate();
|
||||||
|
|
||||||
|
auto curve = RicWellLogTools::addSummaryRftCurve( plotTrack, summaryCase );
|
||||||
|
curve->loadDataAndUpdate( true );
|
||||||
|
|
||||||
|
curve->updateAllRequiredEditors();
|
||||||
|
|
||||||
|
RiuPlotMainWindowTools::setExpanded( curve );
|
||||||
|
RiuPlotMainWindowTools::selectAsCurrentItem( curve );
|
||||||
|
|
||||||
|
RiuPlotMainWindowTools::refreshToolbars();
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RicNewRftWellLogCurveFeature::setupActionLook( QAction* actionToSetup )
|
||||||
|
{
|
||||||
|
actionToSetup->setText( "Append RFT Well Log Curve" );
|
||||||
|
actionToSetup->setIcon( QIcon( ":/WellLogCurve16x16.png" ) );
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Copyright (C) 2022 Equinor ASA
|
||||||
|
//
|
||||||
|
// ResInsight is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
//
|
||||||
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||||
|
// for more details.
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "cafCmdFeature.h"
|
||||||
|
|
||||||
|
//==================================================================================================
|
||||||
|
///
|
||||||
|
//==================================================================================================
|
||||||
|
class RicNewRftWellLogCurveFeature : public caf::CmdFeature
|
||||||
|
{
|
||||||
|
CAF_CMD_HEADER_INIT;
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool isCommandEnabled() override;
|
||||||
|
void onActionTriggered( bool isChecked ) override;
|
||||||
|
void setupActionLook( QAction* actionToSetup ) override;
|
||||||
|
};
|
@ -80,6 +80,17 @@ RimWellBoreStabilityPlot*
|
|||||||
return plot;
|
return plot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
RimWellLogPlot* RicNewWellLogPlotFeatureImpl::createHorizontalWellLogPlot()
|
||||||
|
{
|
||||||
|
auto plot = createWellLogPlot();
|
||||||
|
plot->setDepthOrientation( RimDepthTrackPlot::DepthOrientation::HORIZONTAL );
|
||||||
|
|
||||||
|
return plot;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -37,12 +37,17 @@ public:
|
|||||||
static RimWellBoreStabilityPlot* createWellBoreStabilityPlot( bool showAfterCreation = true,
|
static RimWellBoreStabilityPlot* createWellBoreStabilityPlot( bool showAfterCreation = true,
|
||||||
const QString& plotDescription = QString( "" ),
|
const QString& plotDescription = QString( "" ),
|
||||||
const RimWbsParameters* params = nullptr );
|
const RimWbsParameters* params = nullptr );
|
||||||
static RimWellLogPlot* createWellLogPlot( bool showAfterCreation = true,
|
|
||||||
const QString& plotDescription = QString( "" ) );
|
static RimWellLogPlot* createHorizontalWellLogPlot();
|
||||||
static RimWellLogTrack* createWellLogPlotTrack( bool updateAfterCreation = true,
|
|
||||||
const QString& trackDescription = QString( "" ),
|
static RimWellLogPlot* createWellLogPlot( bool showAfterCreation = true,
|
||||||
RimDepthTrackPlot* existingPlot = nullptr );
|
const QString& plotDescription = QString( "" ) );
|
||||||
static void updateAfterCreation( RimDepthTrackPlot* plot );
|
|
||||||
|
static RimWellLogTrack* createWellLogPlotTrack( bool updateAfterCreation = true,
|
||||||
|
const QString& trackDescription = QString( "" ),
|
||||||
|
RimDepthTrackPlot* existingPlot = nullptr );
|
||||||
|
|
||||||
|
static void updateAfterCreation( RimDepthTrackPlot* plot );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static RimWellLogPlotCollection* wellLogPlotCollection();
|
static RimWellLogPlotCollection* wellLogPlotCollection();
|
||||||
|
@ -106,6 +106,7 @@
|
|||||||
#include "RimPltPlotCollection.h"
|
#include "RimPltPlotCollection.h"
|
||||||
#include "RimPressureTable.h"
|
#include "RimPressureTable.h"
|
||||||
#include "RimProject.h"
|
#include "RimProject.h"
|
||||||
|
#include "RimRftCase.h"
|
||||||
#include "RimRftPlotCollection.h"
|
#include "RimRftPlotCollection.h"
|
||||||
#include "RimSaturationPressurePlotCollection.h"
|
#include "RimSaturationPressurePlotCollection.h"
|
||||||
#include "RimScriptCollection.h"
|
#include "RimScriptCollection.h"
|
||||||
@ -1070,6 +1071,11 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
|||||||
{
|
{
|
||||||
menuBuilder << "RicNewPlotAxisPropertiesFeature";
|
menuBuilder << "RicNewPlotAxisPropertiesFeature";
|
||||||
}
|
}
|
||||||
|
else if ( dynamic_cast<RimRftCase*>( firstUiItem ) )
|
||||||
|
{
|
||||||
|
menuBuilder << "RicNewRftWellLogCurveFeature";
|
||||||
|
menuBuilder << "RicNewRftSegmentWellLogCurveFeature";
|
||||||
|
}
|
||||||
|
|
||||||
if ( dynamic_cast<Rim3dView*>( firstUiItem ) )
|
if ( dynamic_cast<Rim3dView*>( firstUiItem ) )
|
||||||
{
|
{
|
||||||
|
@ -1217,6 +1217,14 @@ RimDepthTrackPlot::DepthOrientation RimDepthTrackPlot::depthOrientation() const
|
|||||||
return m_depthOrientation();
|
return m_depthOrientation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimDepthTrackPlot::setDepthOrientation( DepthOrientation depthOrientation )
|
||||||
|
{
|
||||||
|
m_depthOrientation = depthOrientation;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -105,9 +105,11 @@ public:
|
|||||||
AxisGridVisibility depthAxisGridLinesEnabled() const;
|
AxisGridVisibility depthAxisGridLinesEnabled() const;
|
||||||
|
|
||||||
RimDepthTrackPlot::DepthOrientation depthOrientation() const;
|
RimDepthTrackPlot::DepthOrientation depthOrientation() const;
|
||||||
RiuPlotAxis depthAxis() const;
|
void setDepthOrientation( RimDepthTrackPlot::DepthOrientation depthOrientation );
|
||||||
RiuPlotAxis valueAxis() const;
|
|
||||||
RiuPlotAxis annotationAxis() const;
|
RiuPlotAxis depthAxis() const;
|
||||||
|
RiuPlotAxis valueAxis() const;
|
||||||
|
RiuPlotAxis annotationAxis() const;
|
||||||
|
|
||||||
void setAutoScalePropertyValuesEnabled( bool enabled );
|
void setAutoScalePropertyValuesEnabled( bool enabled );
|
||||||
void setAutoScaleDepthValuesEnabled( bool enabled );
|
void setAutoScaleDepthValuesEnabled( bool enabled );
|
||||||
|
@ -327,6 +327,7 @@ void RimWellLogRftCurve::setRftAddress( RifEclipseRftAddress address )
|
|||||||
m_rftDataType = RftDataType::RFT_SEGMENT_DATA;
|
m_rftDataType = RftDataType::RFT_SEGMENT_DATA;
|
||||||
m_segmentResultName = address.segmentResultName();
|
m_segmentResultName = address.segmentResultName();
|
||||||
m_segmentBranchIndex = address.segmentBranchIndex();
|
m_segmentBranchIndex = address.segmentBranchIndex();
|
||||||
|
m_segmentBranchType = address.segmentBranchType();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2138,9 +2138,13 @@ std::pair<double, double> RimWellLogTrack::extendMinMaxRange( double minValue, d
|
|||||||
auto candidateMinValue = minValue - factor * range;
|
auto candidateMinValue = minValue - factor * range;
|
||||||
if ( std::signbit( minValue ) == std::signbit( candidateMinValue ) )
|
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;
|
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 };
|
return { modifiedMin, modifiedMax };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user