(#438) Showing "MD" or "TVD" on top of Y-axis according to depth type

This commit is contained in:
Pål Hagen
2015-09-11 12:35:59 +02:00
parent fa8f6108c7
commit 7901c3c4bd
3 changed files with 28 additions and 0 deletions

View File

@@ -161,6 +161,14 @@ void RimWellLogPlotTrace::loadDataAndUpdate()
{
CVF_ASSERT(m_viewer);
RimWellLogPlot* wellLogPlot;
firstAnchestorOrThisOfType(wellLogPlot);
if (wellLogPlot)
{
QString depthTitle = wellLogPlot->depthType() == RimWellLogPlot::MEASURED_DEPTH ? "MD" : "TVD";
m_viewer->setDepthTitle(depthTitle);
}
for (size_t cIdx = 0; cIdx < curves.size(); ++cIdx)
{
curves[cIdx]->updatePlotData();