2014-09-05 01:25:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-24 00:14:52 -05:00
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2014-09-05 01:25:38 -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
|
|
|
//
|
2014-09-05 01:25:38 -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>
|
2014-09-05 01:25:38 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cafPdmPointer.h"
|
2023-02-10 05:39:13 -06:00
|
|
|
|
2014-09-05 01:25:38 -05:00
|
|
|
#include "cvfStructGrid.h"
|
|
|
|
|
2022-11-10 00:21:41 -06:00
|
|
|
#include <map>
|
|
|
|
|
2015-05-21 03:05:33 -05:00
|
|
|
class RimEclipseView;
|
2015-06-25 05:04:46 -05:00
|
|
|
class RimEclipseCellColors;
|
2018-02-16 07:37:59 -06:00
|
|
|
class Rim2dIntersectionView;
|
2017-01-10 02:51:39 -06:00
|
|
|
class RigEclipseCaseData;
|
2019-11-27 10:32:59 -06:00
|
|
|
class RimEclipseResultDefinition;
|
|
|
|
class RimGridView;
|
2023-02-10 05:39:13 -06:00
|
|
|
class RigGridBase;
|
2019-11-27 10:32:59 -06:00
|
|
|
|
|
|
|
class QString;
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
namespace cvf
|
|
|
|
{
|
|
|
|
class Part;
|
2014-09-05 01:25:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class RiuResultTextBuilder
|
|
|
|
{
|
|
|
|
public:
|
2023-02-26 03:48:40 -06:00
|
|
|
RiuResultTextBuilder( RimGridView* settingsView, RimEclipseResultDefinition* eclResDef, size_t gridIndex, size_t cellIndex, size_t timeStepIndex );
|
|
|
|
RiuResultTextBuilder( RimGridView* settingsView, RimEclipseResultDefinition* eclResDef, size_t reservoirCellIndex, size_t timeStepIndex );
|
2018-03-19 15:09:54 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setFace( cvf::StructGridInterface::FaceType face );
|
|
|
|
void setNncIndex( size_t nncIndex );
|
|
|
|
void setIntersectionPointInDisplay( cvf::Vec3d intersectionPointInDisplay );
|
|
|
|
void set2dIntersectionView( Rim2dIntersectionView* intersectionView );
|
2014-09-05 01:25:38 -05:00
|
|
|
|
|
|
|
QString mainResultText();
|
|
|
|
|
2023-02-10 05:39:13 -06:00
|
|
|
QString geometrySelectionText( const QString& itemSeparator );
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2014-09-05 01:25:38 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
void appendDetails( QString& text, const QString& details );
|
2014-09-08 00:35:23 -05:00
|
|
|
|
|
|
|
QString gridResultDetails();
|
|
|
|
QString faultResultDetails();
|
2016-08-24 08:19:39 -05:00
|
|
|
QString formationDetails();
|
2014-09-08 00:35:23 -05:00
|
|
|
QString cellEdgeResultDetails();
|
|
|
|
QString nncDetails();
|
|
|
|
|
|
|
|
QString gridResultText();
|
|
|
|
QString faultResultText();
|
|
|
|
QString nncResultText();
|
|
|
|
QString wellResultText();
|
|
|
|
|
2022-11-17 08:51:01 -06:00
|
|
|
QString cellResultText( const std::vector<RimEclipseResultDefinition*>& resultDefinitions, bool appendCaseName = false );
|
2022-11-10 00:21:41 -06:00
|
|
|
std::map<QString, QString> cellResultTextAndValueText( RimEclipseResultDefinition* resultDefinition );
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2019-11-27 10:32:59 -06:00
|
|
|
void appendTextFromResultColors( RigEclipseCaseData* eclipseCase,
|
|
|
|
size_t gridIndex,
|
|
|
|
size_t cellIndex,
|
|
|
|
size_t timeStepIndex,
|
|
|
|
RimEclipseResultDefinition* resultColors,
|
|
|
|
QString* resultInfoText );
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2022-11-17 08:51:01 -06:00
|
|
|
std::pair<bool, QStringList> resultTextFromLinkedViews() const;
|
|
|
|
|
2023-02-10 05:39:13 -06:00
|
|
|
QString coordinatesText( const RigGridBase* grid, size_t globalCellIndex, const QString& itemSeparator );
|
|
|
|
|
|
|
|
static QString createTextFromDomainCoordinate( const QString& formatString, const cvf::Vec3d& domainCoord );
|
|
|
|
|
2014-09-05 01:25:38 -05:00
|
|
|
private:
|
2019-11-27 10:32:59 -06:00
|
|
|
caf::PdmPointer<RimGridView> m_displayCoordView;
|
2022-11-10 00:21:41 -06:00
|
|
|
caf::PdmPointer<RimEclipseView> m_eclipseView;
|
2019-11-27 10:32:59 -06:00
|
|
|
|
|
|
|
caf::PdmPointer<RimEclipseResultDefinition> m_eclResDef;
|
|
|
|
caf::PdmPointer<Rim2dIntersectionView> m_2dIntersectionView;
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
size_t m_gridIndex;
|
|
|
|
size_t m_cellIndex;
|
|
|
|
size_t m_timeStepIndex;
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
cvf::StructGridInterface::FaceType m_face;
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
size_t m_nncIndex;
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2018-09-27 07:47:15 -05:00
|
|
|
cvf::Vec3d m_intersectionPointInDisplay;
|
2014-09-05 01:25:38 -05:00
|
|
|
};
|