2017-05-19 08:44:32 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-05-19 08:44:32 -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-19 08:44:32 -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-19 08:44:32 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RimCheckableNamedObject.h"
|
|
|
|
|
2021-01-21 05:58:46 -06:00
|
|
|
#include "RiaDefines.h"
|
2017-06-20 03:40:39 -05:00
|
|
|
|
2017-05-19 08:44:32 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
#include "cafPdmChildField.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmFieldCvfColor.h"
|
2017-05-23 02:35:17 -05:00
|
|
|
|
|
|
|
#include "cvfColor3.h"
|
2017-05-19 08:44:32 -05:00
|
|
|
|
2021-02-26 07:27:59 -06:00
|
|
|
class RimFishbones;
|
2017-05-19 08:44:32 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-05-19 08:44:32 -05:00
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class RimFishbonesCollection : public RimCheckableNamedObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RimFishbonesCollection();
|
|
|
|
|
2021-04-20 08:35:20 -05:00
|
|
|
void appendFishbonesSubs( RimFishbones* subs );
|
2017-05-19 08:44:32 -05:00
|
|
|
|
2021-02-26 07:27:59 -06:00
|
|
|
bool hasFishbones() const;
|
|
|
|
std::vector<RimFishbones*> activeFishbonesSubs() const;
|
|
|
|
std::vector<RimFishbones*> allFishbonesSubs() const;
|
2018-09-07 05:41:04 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void recalculateStartMD();
|
|
|
|
double startMD() const;
|
2021-02-26 07:27:59 -06:00
|
|
|
double endMD() const;
|
2020-02-12 04:13:38 -06:00
|
|
|
double mainBoreSkinFactor() const { return m_skinFactor; }
|
2021-01-21 05:58:46 -06:00
|
|
|
double mainBoreDiameter( RiaDefines::EclipseUnitSystem unitSystem ) const;
|
2019-09-06 03:40:57 -05:00
|
|
|
void setUnitSystemSpecificDefaults();
|
2017-06-20 05:36:12 -05:00
|
|
|
|
2017-05-22 04:29:13 -05:00
|
|
|
protected:
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2017-05-22 04:29:13 -05:00
|
|
|
|
2017-05-19 08:44:32 -05:00
|
|
|
private:
|
2017-05-23 02:35:17 -05:00
|
|
|
cvf::Color3f nextFishbonesColor() const;
|
|
|
|
|
2017-06-02 07:58:33 -05:00
|
|
|
private:
|
2021-04-20 08:35:20 -05:00
|
|
|
caf::PdmChildArrayField<RimFishbones*> m_fishbones;
|
2017-06-02 07:58:33 -05:00
|
|
|
|
2021-02-26 07:27:59 -06:00
|
|
|
caf::PdmField<double> m_startMD;
|
|
|
|
caf::PdmField<double> m_skinFactor;
|
|
|
|
caf::PdmField<double> m_mainBoreDiameter;
|
|
|
|
bool manuallyModifiedStartMD;
|
2017-05-19 08:44:32 -05:00
|
|
|
};
|