mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2035 Fix crash when bottom of well path ends after last well cell
Add symbols to curves
This commit is contained in:
parent
014dd9497a
commit
aa45dd5fcd
@ -55,6 +55,7 @@
|
||||
#include "RigMainGrid.h"
|
||||
#include "cafVecIjk.h"
|
||||
#include "RigAccWellFlowCalculator.h"
|
||||
#include "RimSummaryCurveAppearanceCalculator.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWellPltPlot, "WellPltPlot");
|
||||
|
||||
@ -924,8 +925,14 @@ public:
|
||||
size_t globCellIdx = intersections[wpExIdx].globCellIndex;
|
||||
|
||||
auto it = globCellIdxToIdxInRftFile.find(globCellIdx);
|
||||
if (it == globCellIdxToIdxInRftFile.end()) continue;
|
||||
|
||||
if (it == globCellIdxToIdxInRftFile.end())
|
||||
{
|
||||
if (wpExIdx == (intersections.size() - 1))
|
||||
{
|
||||
m_pipeBranchWellResultPoints.pop_back();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
m_pipeBranchCLCoords.push_back(intersections[wpExIdx].startPoint);
|
||||
m_pipeBranchMeasuredDepths.push_back(intersections[wpExIdx].startMD);
|
||||
|
||||
@ -1009,7 +1016,14 @@ public:
|
||||
size_t globCellIdx = intersections[wpExIdx].globCellIndex;
|
||||
|
||||
auto it = globCellIdxToIdxInSimWellBranch.find(globCellIdx);
|
||||
if (it == globCellIdxToIdxInSimWellBranch.end()) continue;
|
||||
if (it == globCellIdxToIdxInSimWellBranch.end())
|
||||
{
|
||||
if (wpExIdx == (intersections.size() - 1))
|
||||
{
|
||||
m_pipeBranchWellResultPoints.pop_back();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
m_pipeBranchCLCoords.push_back(intersections[wpExIdx].startPoint);
|
||||
m_pipeBranchMeasuredDepths.push_back(intersections[wpExIdx].startMD);
|
||||
@ -1173,6 +1187,8 @@ void RimWellPltPlot::addStackedCurve(const QString& curveName,
|
||||
curve->setColor(color);
|
||||
curve->setGroupId(curveGroupId);
|
||||
curve->setDoFillCurve(doFillCurve);
|
||||
curve->setSymbol(RimSummaryCurveAppearanceCalculator::cycledSymbol(curveGroupId));
|
||||
|
||||
plotTrack->addCurve(curve);
|
||||
|
||||
curve->loadDataAndUpdate(true);
|
||||
|
@ -64,6 +64,7 @@ public:
|
||||
static cvf::Color3f cycledBlueColor(int colorIndex);
|
||||
static cvf::Color3f cycledRedColor(int colorIndex);
|
||||
static cvf::Color3f cycledBrownColor(int colorIndex);
|
||||
static RimPlotCurve::PointSymbolEnum cycledSymbol(int index);
|
||||
|
||||
private:
|
||||
void setOneCurveAppearance(CurveAppearanceType appeaType, size_t totalCount, int appeaIdx, RimSummaryCurve* curve);
|
||||
@ -72,7 +73,6 @@ private:
|
||||
|
||||
|
||||
RimPlotCurve::LineStyleEnum cycledLineStyle(int index);
|
||||
RimPlotCurve::PointSymbolEnum cycledSymbol(int index);
|
||||
int cycledLineThickness(int index);
|
||||
float gradient(size_t totalCount, int index);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user