2017-05-10 09:52:51 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-05-10 09:52:51 -05: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 03:40:57 -05:00
|
|
|
//
|
2017-05-10 09:52:51 -05: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 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-05-10 09:52:51 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RimCheckableNamedObject.h"
|
2017-05-19 06:47:44 -05:00
|
|
|
#include "RimFishboneWellPath.h"
|
2017-05-29 09:40:49 -05:00
|
|
|
#include "RimFishbonesPipeProperties.h"
|
2017-05-10 09:52:51 -05:00
|
|
|
|
2017-06-20 03:40:39 -05:00
|
|
|
#include "RiaEclipseUnitTools.h"
|
|
|
|
|
2017-05-10 09:52:51 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
2017-05-29 09:40:49 -05:00
|
|
|
#include "cafPdmChildField.h"
|
2017-05-10 09:52:51 -05:00
|
|
|
#include "cafPdmField.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmObject.h"
|
2017-05-10 09:52:51 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-05-10 09:52:51 -05:00
|
|
|
//
|
|
|
|
//==================================================================================================
|
2017-05-19 06:47:44 -05:00
|
|
|
class RimFishboneWellPathCollection : public RimCheckableNamedObject
|
2017-05-10 09:52:51 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2017-05-19 06:47:44 -05:00
|
|
|
RimFishboneWellPathCollection();
|
2017-05-10 09:52:51 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void importCompletionsFromFile( const QStringList& filePaths );
|
2017-05-10 09:52:51 -05:00
|
|
|
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2017-05-10 09:52:51 -05:00
|
|
|
|
2017-05-30 02:26:45 -05:00
|
|
|
std::vector<const RimFishboneWellPath*> wellPaths() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
double holeDiameter( RiaEclipseUnitTools::UnitSystem unitSystem ) const
|
|
|
|
{
|
|
|
|
return m_pipeProperties->holeDiameter( unitSystem );
|
|
|
|
}
|
2020-02-12 04:13:38 -06:00
|
|
|
double skinFactor() const { return m_pipeProperties->skinFactor(); }
|
2017-05-30 02:26:45 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setUnitSystemSpecificDefaults();
|
2017-06-20 05:36:12 -05:00
|
|
|
|
2017-05-29 09:40:49 -05:00
|
|
|
protected:
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2017-05-29 09:40:49 -05:00
|
|
|
|
2017-05-19 08:44:32 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
void appendCompletion( RimFishboneWellPath* completion );
|
2017-05-19 08:44:32 -05:00
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmChildArrayField<RimFishboneWellPath*> m_wellPaths;
|
2017-05-29 09:40:49 -05:00
|
|
|
caf::PdmChildField<RimFishbonesPipeProperties*> m_pipeProperties;
|
2017-05-10 09:52:51 -05:00
|
|
|
};
|