2018-09-28 14:06:56 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2019-01-09 15:15:34 +01:00
|
|
|
// Copyright (C) 2018- Equinor ASA
|
|
|
|
|
//
|
2018-09-28 14:06:56 +02: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-01-09 15:15:34 +01:00
|
|
|
//
|
2018-09-28 14:06:56 +02: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-01-09 15:15:34 +01:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-09-28 14:06:56 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
2019-01-09 15:15:34 +01:00
|
|
|
|
2018-09-28 14:06:56 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
class RiaLineArcWellPathCalculator
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
struct WellTarget
|
|
|
|
|
{
|
2022-02-19 13:18:49 +01:00
|
|
|
bool isAnyDirectionFixed() const { return isAzimuthConstrained || isInclinationConstrained; }
|
|
|
|
|
|
2018-09-28 14:06:56 +02:00
|
|
|
cvf::Vec3d targetPointXYZ;
|
2022-02-19 13:18:49 +01:00
|
|
|
bool isAzimuthConstrained;
|
|
|
|
|
bool isInclinationConstrained;
|
|
|
|
|
double azimuthRadians;
|
|
|
|
|
double inclinationRadians;
|
2018-09-28 14:06:56 +02:00
|
|
|
|
|
|
|
|
double radius1;
|
|
|
|
|
double radius2;
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-26 10:48:40 +01:00
|
|
|
RiaLineArcWellPathCalculator( const cvf::Vec3d& referencePointXyz, const std::vector<RiaLineArcWellPathCalculator::WellTarget>& targets );
|
2018-09-28 14:06:56 +02:00
|
|
|
|
|
|
|
|
struct WellTargetStatus
|
|
|
|
|
{
|
2022-02-19 13:18:49 +01:00
|
|
|
double resultAzimuthRadians;
|
|
|
|
|
double resultInclinationRadians;
|
2018-09-28 14:06:56 +02:00
|
|
|
|
2019-11-14 17:23:52 +01:00
|
|
|
bool isRadius1Editable;
|
2019-09-06 10:40:57 +02:00
|
|
|
bool hasOverriddenRadius1;
|
2018-09-28 14:06:56 +02:00
|
|
|
double resultRadius1;
|
2019-11-14 17:23:52 +01:00
|
|
|
|
|
|
|
|
bool isRadius2Editable;
|
2019-09-06 10:40:57 +02:00
|
|
|
bool hasOverriddenRadius2;
|
2018-09-28 14:06:56 +02:00
|
|
|
double resultRadius2;
|
|
|
|
|
};
|
|
|
|
|
|
2020-02-12 11:13:38 +01:00
|
|
|
cvf::Vec3d startTangent() const { return m_startTangent; }
|
|
|
|
|
const std::vector<cvf::Vec3d>& lineArcEndpoints() const { return m_lineArcEndpoints; }
|
|
|
|
|
const std::vector<WellTargetStatus>& targetStatuses() const { return m_targetStatuses; }
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2018-09-28 14:06:56 +02:00
|
|
|
private:
|
|
|
|
|
cvf::Vec3d m_startTangent;
|
|
|
|
|
std::vector<cvf::Vec3d> m_lineArcEndpoints;
|
|
|
|
|
std::vector<WellTargetStatus> m_targetStatuses;
|
|
|
|
|
};
|