2016-12-16 14:05:11 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2019-01-16 14:57:43 +01:00
|
|
|
// Copyright (C) 2016-2018 Statoil ASA
|
|
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2016-12-16 14:05:11 +01:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2016-12-16 14:05:11 +01:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2016-12-16 14:05:11 +01:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2017-01-04 09:26:39 +01:00
|
|
|
#include "RimFracture.h"
|
|
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
namespace caf
|
|
|
|
|
{
|
|
|
|
|
class PdmFieldHandle;
|
|
|
|
|
class PdmUiEditorAttribute;
|
|
|
|
|
} // namespace caf
|
2017-01-19 13:50:07 +01:00
|
|
|
|
2016-12-16 14:05:11 +01:00
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
|
|
|
|
///
|
2016-12-16 14:05:11 +01:00
|
|
|
//==================================================================================================
|
2017-01-02 14:13:34 +01:00
|
|
|
class RimWellPathFracture : public RimFracture
|
2016-12-16 14:05:11 +01:00
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
CAF_PDM_HEADER_INIT;
|
2016-12-16 14:05:11 +01:00
|
|
|
|
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
RimWellPathFracture( void );
|
|
|
|
|
~RimWellPathFracture( void ) override;
|
2016-12-16 14:05:11 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
double fractureMD() const override;
|
|
|
|
|
void setMeasuredDepth( double mdValue );
|
2017-01-04 09:08:10 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
|
|
|
|
const QVariant& oldValue,
|
|
|
|
|
const QVariant& newValue ) override;
|
|
|
|
|
void updateAzimuthBasedOnWellAzimuthAngle() override;
|
2016-12-19 12:04:07 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
double wellAzimuthAtFracturePosition() const override;
|
2017-03-21 10:45:19 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void loadDataAndUpdate() override;
|
2017-08-14 22:16:03 +02:00
|
|
|
|
2018-10-18 19:45:57 +02:00
|
|
|
std::vector<cvf::Vec3d> perforationLengthCenterLineCoords() const override;
|
2018-01-19 14:05:57 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
static bool compareByWellPathNameAndMD( const RimWellPathFracture* lhs, const RimWellPathFracture* rhs );
|
2018-10-11 09:26:51 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
bool isEnabled() const override; // RimWellPathCompletionsInterface override
|
2019-04-25 07:25:52 +02:00
|
|
|
|
2016-12-16 14:05:11 +01:00
|
|
|
protected:
|
2019-09-06 10:40:57 +02:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
|
void defineEditorAttribute( const caf::PdmFieldHandle* field,
|
|
|
|
|
QString uiConfigName,
|
|
|
|
|
caf::PdmUiEditorAttribute* attribute ) override;
|
2017-01-19 13:50:07 +01:00
|
|
|
|
2017-02-02 07:36:22 +01:00
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
void updatePositionFromMeasuredDepth();
|
2017-02-02 07:36:22 +01:00
|
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
caf::PdmField<float> m_measuredDepth;
|
2016-12-16 14:05:11 +01:00
|
|
|
};
|