2018-08-02 07:03:35 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2019-01-09 08:21:38 -06:00
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2018-08-02 07:03:35 -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.
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
#include "cafPdmPtrField.h"
|
|
|
|
|
|
|
|
class RimFractureTemplate;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RicCreateMultipleFracturesOptionItemUi : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RicCreateMultipleFracturesOptionItemUi();
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setValues( int topKOneBased, int baseKOneBased, RimFractureTemplate* fractureTemplate, double minimumSpacing );
|
2018-08-02 08:38:35 -05:00
|
|
|
|
2018-08-24 04:55:16 -05:00
|
|
|
int topKLayer() const;
|
|
|
|
int baseKLayer() const;
|
2018-08-02 07:03:35 -05:00
|
|
|
RimFractureTemplate* fractureTemplate() const;
|
|
|
|
double minimumSpacing() const;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool isKLayerContained( int oneBasedK ) const;
|
2018-08-02 07:03:35 -05:00
|
|
|
|
|
|
|
private:
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2018-08-02 07:03:35 -05:00
|
|
|
|
2022-05-29 06:01:27 -05:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
|
2018-08-02 07:03:35 -05:00
|
|
|
|
|
|
|
private:
|
2018-08-02 08:38:35 -05:00
|
|
|
caf::PdmField<int> m_topKOneBased; // Eclipse uses 1-based indexing
|
|
|
|
caf::PdmField<int> m_baseKOneBased; // Eclipse uses 1-based indexing
|
2018-08-02 07:03:35 -05:00
|
|
|
caf::PdmPtrField<RimFractureTemplate*> m_fractureTemplate;
|
|
|
|
caf::PdmField<double> m_minSpacing;
|
|
|
|
};
|