2018-03-15 08:17:56 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2018- Statoil ASA
|
|
|
|
//
|
|
|
|
// 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 "Rim3dWellLogCurve.h"
|
|
|
|
|
|
|
|
#include "cafPdmChildField.h"
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmPtrField.h"
|
|
|
|
|
|
|
|
class Rim3dView;
|
|
|
|
class RimCase;
|
|
|
|
class RimGeoMechResultDefinition;
|
|
|
|
class RimEclipseResultDefinition;
|
2018-04-27 08:30:34 -05:00
|
|
|
class RimWellLogExtractionCurveNameConfig;
|
2018-03-15 08:17:56 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class Rim3dWellLogExtractionCurve : public Rim3dWellLogCurve
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Rim3dWellLogExtractionCurve();
|
|
|
|
virtual ~Rim3dWellLogExtractionCurve();
|
|
|
|
|
2018-04-25 04:00:27 -05:00
|
|
|
void setPropertiesFromView(Rim3dView* view);
|
|
|
|
virtual QString resultPropertyString() const override;
|
2018-06-20 03:31:03 -05:00
|
|
|
|
|
|
|
virtual bool followAnimationTimeStep() const override;
|
2018-04-25 04:00:27 -05:00
|
|
|
virtual void curveValuesAndMds(std::vector<double>* values, std::vector<double>* measuredDepthValues) const override;
|
2018-06-20 03:31:03 -05:00
|
|
|
virtual void curveValuesAndMdsAtTimeStep(std::vector<double>* values, std::vector<double>* measuredDepthValues, int timeStep) const override;
|
|
|
|
virtual std::pair<double, double> findCurveValueRange() override;
|
2018-03-15 08:17:56 -05:00
|
|
|
|
2018-04-27 08:30:34 -05:00
|
|
|
virtual QString name() const override;
|
2018-07-16 01:56:28 -05:00
|
|
|
virtual QString createAutoName() const override;
|
2018-06-05 04:56:47 -05:00
|
|
|
double rkbDiff() const;
|
2018-09-03 07:52:00 -05:00
|
|
|
|
2018-09-04 05:57:55 -05:00
|
|
|
virtual bool isShowingTimeDependentResult() const override;
|
2018-09-03 07:52:00 -05:00
|
|
|
|
|
|
|
virtual bool showInView(const Rim3dView* gridView) const override;
|
|
|
|
|
2018-04-27 08:30:34 -05:00
|
|
|
protected:
|
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField() override;
|
2018-05-15 10:54:20 -05:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
2018-03-15 08:17:56 -05:00
|
|
|
private:
|
|
|
|
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions,
|
|
|
|
bool* useOptionsOnly) override;
|
|
|
|
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
virtual void initAfterRead() override;
|
2018-04-27 08:30:34 -05:00
|
|
|
QString wellDate() const;
|
2018-03-15 08:17:56 -05:00
|
|
|
private:
|
|
|
|
caf::PdmPtrField<RimCase*> m_case;
|
|
|
|
caf::PdmField<int> m_timeStep;
|
|
|
|
|
|
|
|
caf::PdmChildField<RimEclipseResultDefinition*> m_eclipseResultDefinition;
|
|
|
|
caf::PdmChildField<RimGeoMechResultDefinition*> m_geomResultDefinition;
|
2018-04-27 08:30:34 -05:00
|
|
|
caf::PdmChildField<RimWellLogExtractionCurveNameConfig*> m_nameConfig;
|
2018-03-15 08:17:56 -05:00
|
|
|
};
|