mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#541) Added feature for export of well log plot curves to a LAS file
Did some refactoring/improvements by introducing new class RigWellLogCurveData.
This commit is contained in:
57
ApplicationCode/ReservoirDataModel/RigWellLogCurveData.h
Normal file
57
ApplicationCode/ReservoirDataModel/RigWellLogCurveData.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// 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 "cvfBase.h"
|
||||
#include "cvfObject.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RigWellLogCurveData : public cvf::Object
|
||||
{
|
||||
public:
|
||||
RigWellLogCurveData();
|
||||
virtual ~RigWellLogCurveData();
|
||||
|
||||
void setPoints(const std::vector<double>& xValues, const std::vector<double>& yValues);
|
||||
|
||||
const std::vector<double>& xValues() const;
|
||||
const std::vector<double>& yValues() const;
|
||||
const std::vector< std::pair<size_t, size_t> >& intervals() const;
|
||||
|
||||
std::vector<double> validXValues() const;
|
||||
std::vector<double> validYValues() const;
|
||||
std::vector< std::pair<size_t, size_t> > validPointsIntervals() const;
|
||||
|
||||
private:
|
||||
void calculateValidPointIntervals();
|
||||
|
||||
static void calculateIntervalsOfValidValues(const std::vector<double>& values, std::vector< std::pair<size_t, size_t> >* intervals);
|
||||
static void addValuesFromIntervals(const std::vector<double>& values, const std::vector< std::pair<size_t, size_t> >& intervals, std::vector<double>* filteredValues);
|
||||
static void filteredIntervals(const std::vector< std::pair<size_t, size_t> >& intervals, std::vector< std::pair<size_t, size_t> >* fltrIntervals);
|
||||
|
||||
private:
|
||||
std::vector<double> m_xValues;
|
||||
std::vector<double> m_yValues;
|
||||
std::vector< std::pair<size_t, size_t> > m_validPointIntervals;
|
||||
};
|
||||
Reference in New Issue
Block a user