2020-10-01 08:30:34 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2020- Equinor ASA
|
|
|
|
//
|
|
|
|
// 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 "cafPdmChildArrayField.h"
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
2020-11-04 06:46:17 -06:00
|
|
|
#include "RiaStimPlanModelDefines.h"
|
2020-10-02 07:33:15 -05:00
|
|
|
|
2020-10-01 08:30:34 -05:00
|
|
|
class RimElasticPropertyScaling;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RimElasticPropertyScalingCollection : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RimElasticPropertyScalingCollection();
|
|
|
|
|
2020-10-06 05:17:36 -05:00
|
|
|
caf::Signal<> changed;
|
|
|
|
|
2020-10-01 08:30:34 -05:00
|
|
|
std::vector<RimElasticPropertyScaling*> elasticPropertyScalings() const;
|
|
|
|
void addElasticPropertyScaling( RimElasticPropertyScaling* templ );
|
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
void onChildDeleted( caf::PdmChildArrayFieldHandle* childArray, std::vector<caf::PdmObjectHandle*>& referringObjects ) override;
|
2020-10-01 08:30:34 -05:00
|
|
|
|
2020-10-02 07:33:15 -05:00
|
|
|
double getScaling( const QString& formationName, const QString& faciesName, RiaDefines::CurveProperty property ) const;
|
|
|
|
|
2020-11-09 15:37:17 -06:00
|
|
|
protected:
|
|
|
|
void initAfterRead() override;
|
|
|
|
|
2020-10-01 08:30:34 -05:00
|
|
|
private:
|
2023-02-26 03:48:40 -06:00
|
|
|
void elasticPropertyScalingChanged( const caf::SignalEmitter* emitter );
|
2020-10-01 08:30:34 -05:00
|
|
|
caf::PdmChildArrayField<RimElasticPropertyScaling*> m_elasticPropertyScalings;
|
|
|
|
};
|