2015-06-11 04:38:51 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-06-11 04:38:51 -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
|
|
|
//
|
2015-06-11 04:38:51 -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>
|
2015-06-11 04:38:51 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
#include "cvfStructGrid.h"
|
2016-10-18 00:31:02 -05:00
|
|
|
|
2015-06-11 04:38:51 -05:00
|
|
|
#include <QString>
|
2016-10-26 10:05:39 -05:00
|
|
|
#include <array>
|
2015-06-11 04:38:51 -05:00
|
|
|
|
|
|
|
class RigGeoMechCaseData;
|
2016-10-18 00:31:02 -05:00
|
|
|
class RimEclipseCellColors;
|
|
|
|
class RimGeoMechResultDefinition;
|
|
|
|
class RimGeoMechView;
|
2018-02-16 07:37:59 -06:00
|
|
|
class Rim2dIntersectionView;
|
2019-11-28 02:18:19 -06:00
|
|
|
class RimGridView;
|
2015-06-11 04:38:51 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
namespace cvf
|
|
|
|
{
|
|
|
|
class Part;
|
2015-06-11 04:38:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class RiuFemResultTextBuilder
|
|
|
|
{
|
|
|
|
public:
|
2019-11-28 02:18:19 -06:00
|
|
|
RiuFemResultTextBuilder( RimGridView* displayCoordView,
|
|
|
|
RimGeoMechResultDefinition* geomResDef,
|
|
|
|
int gridIndex,
|
|
|
|
int cellIndex,
|
|
|
|
int timeStepIndex );
|
2019-09-06 03:40:57 -05:00
|
|
|
void setFace( int face );
|
|
|
|
void setIntersectionPointInDisplay( cvf::Vec3d intersectionPointInDisplay );
|
|
|
|
void setIntersectionTriangle( const std::array<cvf::Vec3f, 3>& triangle );
|
|
|
|
void set2dIntersectionView( Rim2dIntersectionView* intersectionView );
|
2015-06-11 04:38:51 -05:00
|
|
|
|
|
|
|
QString mainResultText();
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
QString geometrySelectionText( QString itemSeparator );
|
|
|
|
|
2015-06-11 04:38:51 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
void appendDetails( QString& text, const QString& details );
|
2015-06-11 04:38:51 -05:00
|
|
|
|
|
|
|
QString gridResultDetails();
|
2016-08-24 08:19:39 -05:00
|
|
|
QString formationDetails();
|
2015-06-11 04:38:51 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
QString closestNodeResultText( RimGeoMechResultDefinition* resultDefinition );
|
2015-06-11 04:38:51 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void appendTextFromResultColors( RigGeoMechCaseData* eclipseCase,
|
|
|
|
int gridIndex,
|
|
|
|
int cellIndex,
|
|
|
|
int timeStepIndex,
|
|
|
|
RimGeoMechResultDefinition* resultDefinition,
|
|
|
|
QString* resultInfoText );
|
2015-06-11 04:38:51 -05:00
|
|
|
|
|
|
|
private:
|
2019-11-28 02:18:19 -06:00
|
|
|
caf::PdmPointer<RimGridView> m_displayCoordView;
|
|
|
|
caf::PdmPointer<RimGeoMechResultDefinition> m_geomResDef;
|
|
|
|
caf::PdmPointer<Rim2dIntersectionView> m_2dIntersectionView;
|
2015-06-11 04:38:51 -05:00
|
|
|
|
2015-10-23 08:46:25 -05:00
|
|
|
int m_gridIndex;
|
|
|
|
int m_cellIndex;
|
|
|
|
int m_timeStepIndex;
|
2015-06-11 04:38:51 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
int m_face;
|
|
|
|
bool m_isIntersectionTriangleSet;
|
2016-10-26 10:05:39 -05:00
|
|
|
std::array<cvf::Vec3f, 3> m_intersectionTriangle;
|
2015-06-11 04:38:51 -05:00
|
|
|
|
2018-09-27 07:47:15 -05:00
|
|
|
cvf::Vec3d m_intersectionPointInDisplay;
|
2015-06-11 04:38:51 -05:00
|
|
|
};
|