2018-10-16 09:53:30 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2019-01-11 13:03:46 +01:00
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2018-10-16 09:53:30 +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-09-06 10:40:57 +02:00
|
|
|
//
|
2018-10-16 09:53:30 +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-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-10-16 09:53:30 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-01-11 15:11:38 +01:00
|
|
|
#include "RimContourMapProjection.h"
|
2018-10-16 09:53:30 +02:00
|
|
|
|
|
|
|
|
#include "cafPdmChildField.h"
|
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
|
2020-12-03 09:20:27 +01:00
|
|
|
class RigActiveCellInfo;
|
2018-10-16 09:53:30 +02:00
|
|
|
class RigMainGrid;
|
2024-10-16 14:59:24 +02:00
|
|
|
class RigContourMapGrid;
|
2018-10-23 16:32:40 +02:00
|
|
|
class RigResultAccessor;
|
2019-01-11 13:56:35 +01:00
|
|
|
class RimEclipseContourMapView;
|
2019-04-25 07:42:38 +02:00
|
|
|
class RimEclipseCase;
|
2018-11-09 15:25:35 +01:00
|
|
|
class RimEclipseResultDefinition;
|
2018-10-16 09:53:30 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
|
|
|
|
///
|
2018-10-16 09:53:30 +02:00
|
|
|
//==================================================================================================
|
2019-01-11 15:11:38 +01:00
|
|
|
class RimEclipseContourMapProjection : public RimContourMapProjection
|
2018-10-16 09:53:30 +02:00
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
public:
|
2019-01-11 13:03:46 +01:00
|
|
|
RimEclipseContourMapProjection();
|
|
|
|
|
~RimEclipseContourMapProjection() override;
|
2018-10-16 09:53:30 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
QString weightingParameter() const;
|
2022-12-14 11:29:14 +01:00
|
|
|
void clearGridMappingAndRedraw();
|
2018-12-20 10:38:20 +01:00
|
|
|
|
2019-01-11 16:06:08 +01:00
|
|
|
// Eclipse case overrides for contour map methods
|
2024-11-13 14:06:23 +01:00
|
|
|
QString resultVariableName() const override;
|
2019-01-11 16:06:08 +01:00
|
|
|
QString resultDescriptionText() const override;
|
2019-01-11 15:11:38 +01:00
|
|
|
RimRegularLegendConfig* legendConfig() const override;
|
|
|
|
|
void updateLegend() override;
|
2018-11-14 12:38:20 +01:00
|
|
|
|
2020-09-25 11:48:41 +02:00
|
|
|
double sampleSpacing() const override;
|
|
|
|
|
|
2018-10-16 09:53:30 +02:00
|
|
|
protected:
|
2019-09-06 10:40:57 +02:00
|
|
|
void updateGridInformation() override;
|
|
|
|
|
std::vector<double> retrieveParameterWeights() override;
|
2024-10-25 15:11:42 +02:00
|
|
|
std::vector<double> generateResults( int timeStep ) const override;
|
|
|
|
|
void generateAndSaveResults( int timeStep ) override;
|
2019-09-06 10:40:57 +02:00
|
|
|
bool resultVariableChanged() const override;
|
|
|
|
|
void clearResultVariable() override;
|
|
|
|
|
RimGridView* baseView() const override;
|
2019-01-02 15:53:13 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
RimEclipseCase* eclipseCase() const;
|
|
|
|
|
RimEclipseContourMapView* view() const;
|
2019-01-11 16:14:54 +01:00
|
|
|
|
2025-01-16 13:52:03 +01:00
|
|
|
std::pair<double, double> computeMinMaxValuesAllTimeSteps() override;
|
2024-10-25 15:11:42 +02:00
|
|
|
|
2020-12-07 09:30:09 +01:00
|
|
|
void updateAfterResultGeneration( int timeStep ) override;
|
|
|
|
|
|
2019-01-11 16:06:08 +01:00
|
|
|
protected:
|
|
|
|
|
// Framework overrides
|
2020-02-12 11:43:15 +01:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2019-09-06 10:40:57 +02:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2019-01-11 16:06:08 +01:00
|
|
|
void initAfterRead() override;
|
|
|
|
|
|
2018-10-16 09:53:30 +02:00
|
|
|
protected:
|
2019-09-06 10:40:57 +02:00
|
|
|
caf::PdmField<bool> m_weightByParameter;
|
|
|
|
|
caf::PdmChildField<RimEclipseResultDefinition*> m_weightingResult;
|
2018-12-20 10:38:20 +01:00
|
|
|
|
2020-12-03 09:20:27 +01:00
|
|
|
QString m_currentResultName;
|
2018-10-16 09:53:30 +02:00
|
|
|
};
|