#3305 Implement well path attribute track in well bore stability plots

* Fix depth start and end of attributes to match the TVD/MD display setting.
This commit is contained in:
Gaute Lindkvist
2018-09-05 14:03:18 +02:00
parent bddb8fb6fb
commit 385f7ad0da
5 changed files with 118 additions and 55 deletions

View File

@@ -165,19 +165,11 @@ void RicNewWellBoreStabilityPlotFeature::createCasingShoeTrack(RimWellLogPlot* p
casingShoeTrack->setFormationCase(geoMechCase);
casingShoeTrack->setShowFormations(true);
casingShoeTrack->setShowFormationLabels(false);
casingShoeTrack->setShowWellPathAttributes(true);
casingShoeTrack->setWellPathAttributesSource(wellPath);
casingShoeTrack->setVisibleXRange(0.0, 0.0);
RimWellLogFile* foundLogFile = wellPath->firstWellLogFileMatchingChannelName("CASING_SIZE");
// foundLogFile may be nullptr. Create the curve anyway so it exists when changing well.
RimWellLogFileCurve* fileCurve = RicWellLogTools::addFileCurve(casingShoeTrack, false);
fileCurve->setWellLogFile(foundLogFile);
fileCurve->setWellPath(wellPath);
fileCurve->setWellLogChannelName("CASING_SIZE");
fileCurve->setCustomName(QString("Casing size [in]"));
fileCurve->setLineThickness(2);
fileCurve->loadDataAndUpdate(false);
casingShoeTrack->setAutoScaleXEnabled(true);
casingShoeTrack->calculateXZoomRangeAndUpdateQwt();
casingShoeTrack->loadDataAndUpdate();
}
//--------------------------------------------------------------------------------------------------