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
|
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.
|
|
|
|
//
|
|
|
|
// 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 "cvfBase.h"
|
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
#include "cvfStructGrid.h"
|
|
|
|
|
|
|
|
|
2015-05-21 03:05:33 -05:00
|
|
|
class RimEclipseView;
|
2015-06-25 05:04:46 -05:00
|
|
|
class RimEclipseCellColors;
|
2014-09-05 01:25:38 -05:00
|
|
|
class QString;
|
|
|
|
class RigCaseData;
|
|
|
|
|
|
|
|
namespace cvf {
|
2015-10-23 08:46:25 -05:00
|
|
|
class Part;
|
2014-09-05 01:25:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class RiuResultTextBuilder
|
|
|
|
{
|
|
|
|
public:
|
2015-10-23 08:46:25 -05:00
|
|
|
RiuResultTextBuilder(RimEclipseView* reservoirView, size_t gridIndex, size_t cellIndex, size_t timeStepIndex);
|
2014-09-08 00:35:23 -05:00
|
|
|
void setFace(cvf::StructGridInterface::FaceType face);
|
|
|
|
void setNncIndex(size_t nncIndex);
|
|
|
|
void setIntersectionPoint(cvf::Vec3d intersectionPoint);
|
2014-09-05 01:25:38 -05:00
|
|
|
|
|
|
|
QString mainResultText();
|
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
QString topologyText(QString itemSeparator);
|
|
|
|
|
2014-09-05 01:25:38 -05:00
|
|
|
private:
|
2014-09-08 00:35:23 -05:00
|
|
|
void appendDetails(QString& text, const QString& details);
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
2015-06-25 07:34:20 -05:00
|
|
|
QString cellResultText(RimEclipseCellColors* resultColors);
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
void appendTextFromResultColors(RigCaseData* eclipseCase, size_t gridIndex, size_t cellIndex, size_t timeStepIndex, RimEclipseCellColors* resultColors, QString* resultInfoText);
|
2014-09-05 01:25:38 -05:00
|
|
|
|
|
|
|
private:
|
2015-05-21 03:05:33 -05:00
|
|
|
caf::PdmPointer<RimEclipseView> m_reservoirView;
|
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
|
|
|
|
2014-09-08 00:35:23 -05:00
|
|
|
size_t m_nncIndex;
|
2014-09-05 01:25:38 -05:00
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
cvf::Vec3d m_intersectionPoint;
|
2014-09-05 01:25:38 -05:00
|
|
|
};
|