2016-12-16 07:05:11 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- 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
|
|
|
|
|
2017-01-04 02:26:39 -06:00
|
|
|
#include "RimFracture.h"
|
|
|
|
|
2017-01-19 06:50:07 -06:00
|
|
|
namespace caf {
|
|
|
|
class PdmFieldHandle;
|
|
|
|
class PdmUiEditorAttribute;
|
|
|
|
}
|
|
|
|
|
2016-12-16 07:05:11 -06:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2017-01-02 07:13:34 -06:00
|
|
|
class RimWellPathFracture : public RimFracture
|
2016-12-16 07:05:11 -06:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2017-01-02 04:59:30 -06:00
|
|
|
RimWellPathFracture(void);
|
|
|
|
virtual ~RimWellPathFracture(void);
|
2016-12-16 07:05:11 -06:00
|
|
|
|
2018-06-29 03:57:26 -05:00
|
|
|
double fractureMD() const override;
|
2017-02-02 00:36:22 -06:00
|
|
|
void setMeasuredDepth(double mdValue);
|
2017-01-04 02:08:10 -06:00
|
|
|
|
2017-02-02 00:36:22 -06:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
2017-06-29 08:06:44 -05:00
|
|
|
virtual void updateAzimuthBasedOnWellAzimuthAngle() override;
|
2016-12-19 05:04:07 -06:00
|
|
|
|
2017-06-29 03:34:20 -05:00
|
|
|
double wellAzimuthAtFracturePosition() const override;
|
2017-03-21 04:45:19 -05:00
|
|
|
|
2017-08-14 15:16:03 -05:00
|
|
|
virtual void loadDataAndUpdate() override;
|
|
|
|
|
2018-01-19 07:05:57 -06:00
|
|
|
virtual std::vector<cvf::Vec3d> perforationLengthCenterLineCoords() const override;
|
|
|
|
|
2018-10-11 02:26:51 -05:00
|
|
|
static bool compareByWellPathNameAndMD(const RimWellPathFracture* lhs, const RimWellPathFracture* rhs);
|
|
|
|
|
2016-12-16 07:05:11 -06:00
|
|
|
protected:
|
2017-02-02 00:36:22 -06:00
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
virtual void defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute * attribute) override;
|
2017-01-19 06:50:07 -06:00
|
|
|
|
2017-02-02 00:36:22 -06:00
|
|
|
private:
|
|
|
|
void updatePositionFromMeasuredDepth();
|
|
|
|
|
|
|
|
private:
|
|
|
|
caf::PdmField<float> m_measuredDepth;
|
2016-12-16 07:05:11 -06:00
|
|
|
};
|