(#436) Added feature that creates a plot with a given LAS file log

This commit is contained in:
Pål Hagen committed 2015-09-15 15:23:25 +02:00
1 parent 9cd4c1efb8
commit e4212a1135
8 files changed
+321 -1

No files matched your search

@@ -70,6 +70,7 @@ ${CEE_CURRENT_LIST_DIR}RimViewLinkerCollection.h
${CEE_CURRENT_LIST_DIR}RimWellLogExtractionCurve.h
${CEE_CURRENT_LIST_DIR}RimWellLasFileInfo.h
${CEE_CURRENT_LIST_DIR}RimWellLog.h
${CEE_CURRENT_LIST_DIR}RimWellLogFileCurve.h
)
set (SOURCE_GROUP_SOURCE_FILES
@@ -138,6 +139,7 @@ ${CEE_CURRENT_LIST_DIR}RimViewLinkerCollection.cpp
${CEE_CURRENT_LIST_DIR}RimWellLogExtractionCurve.cpp
${CEE_CURRENT_LIST_DIR}RimWellLasFileInfo.cpp
${CEE_CURRENT_LIST_DIR}RimWellLog.cpp
${CEE_CURRENT_LIST_DIR}RimWellLogFileCurve.cpp
)
list(APPEND CODE_HEADER_FILES
@@ -627,6 +627,7 @@ void RimProject::computeUtmAreaOfInterest()
#include "RimWellLogPlot.h"
#include "RimWellLogPlotTrace.h"
#include "RimWellLogPlotCurve.h"
#include "RimWellLog.h"
#include <QMenu>
@@ -824,6 +825,10 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
{
commandIds << "RicDeleteItemFeature";
}
else if (dynamic_cast<RimWellLog*>(uiItem))
{
commandIds << "RicAddWellLogToPlotFeature";
}
}
if (RicToggleItemsFeatureImpl::isToggleCommandsAvailable())
@@ -35,7 +35,8 @@ class RimWellLog : public caf::PdmObject
public:
RimWellLog();
void setName(const QString& name);
void setName(const QString& name);
QString name() const { return m_name; }
virtual caf::PdmFieldHandle* userDescriptionField() { return &m_name; }
@@ -0,0 +1,56 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2015- Statoil ASA
// Copyright (C) 2015- Ceetron Solutions AS
//
// 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 "RimWellLogFileCurve.h"
#include "qwt_plot_curve.h"
CAF_PDM_SOURCE_INIT(RimWellLogFileCurve, "WellLogFileCurve");
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellLogFileCurve::RimWellLogFileCurve()
{
CAF_PDM_InitObject("Well Log File Curve", "", "", "");
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellLogFileCurve::~RimWellLogFileCurve()
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogFileCurve::updatePlotData()
{
RimWellLogPlotCurve::updatePlotData();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogFileCurve::setCurveData(const std::vector<double>& values, const std::vector<double>& depthValues)
{
m_plotCurve->setSamples(values.data(), depthValues.data(), (int) depthValues.size());
}
@@ -0,0 +1,43 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2015- Statoil ASA
// Copyright (C) 2015- Ceetron Solutions AS
//
// 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 "RimWellLogPlotCurve.h"
#include <vector>
//==================================================================================================
///
///
//==================================================================================================
class RimWellLogFileCurve : public RimWellLogPlotCurve
{
CAF_PDM_HEADER_INIT;
public:
RimWellLogFileCurve();
virtual ~RimWellLogFileCurve();
virtual void updatePlotData();
void setCurveData(const std::vector<double>& values, const std::vector<double>& depthValues);
};