Files
ResInsight/ApplicationCode/UserInterface/RiuFemResultTextBuilder.h
T

91 lines
3.2 KiB
C++
Raw Normal View History

2015-06-11 11:38:51 +02:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Statoil ASA
// Copyright (C) Ceetron Solutions AS
//
2015-06-11 11:38:51 +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.
//
2015-06-11 11:38:51 +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.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
2015-06-11 11:38:51 +02:00
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cafPdmPointer.h"
#include "cvfStructGrid.h"
2015-06-11 11:38:51 +02:00
#include <QString>
#include <array>
2015-06-11 11:38:51 +02:00
class RigGeoMechCaseData;
class RimEclipseCellColors;
class RimGeoMechResultDefinition;
class RimGeoMechView;
class Rim2dIntersectionView;
class RimGridView;
2015-06-11 11:38:51 +02:00
namespace cvf
{
class Part;
2015-06-11 11:38:51 +02:00
}
//==================================================================================================
//
//
//==================================================================================================
class RiuFemResultTextBuilder
{
public:
RiuFemResultTextBuilder( RimGridView* displayCoordView,
RimGeoMechResultDefinition* geomResDef,
int gridIndex,
int cellIndex,
int timeStepIndex );
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 11:38:51 +02:00
QString mainResultText();
QString geometrySelectionText( QString itemSeparator );
2015-06-11 11:38:51 +02:00
private:
void appendDetails( QString& text, const QString& details );
2015-06-11 11:38:51 +02:00
QString gridResultDetails();
QString formationDetails();
2015-06-11 11:38:51 +02:00
QString closestNodeResultText( RimGeoMechResultDefinition* resultDefinition );
2015-06-11 11:38:51 +02:00
void appendTextFromResultColors( RigGeoMechCaseData* eclipseCase,
int gridIndex,
int cellIndex,
int timeStepIndex,
RimGeoMechResultDefinition* resultDefinition,
QString* resultInfoText );
2015-06-11 11:38:51 +02:00
private:
caf::PdmPointer<RimGridView> m_displayCoordView;
caf::PdmPointer<RimGeoMechResultDefinition> m_geomResDef;
caf::PdmPointer<Rim2dIntersectionView> m_2dIntersectionView;
2015-06-11 11:38:51 +02:00
int m_gridIndex;
int m_cellIndex;
int m_timeStepIndex;
2015-06-11 11:38:51 +02:00
int m_face;
bool m_isIntersectionTriangleSet;
std::array<cvf::Vec3f, 3> m_intersectionTriangle;
2015-06-11 11:38:51 +02:00
cvf::Vec3d m_intersectionPointInDisplay;
2015-06-11 11:38:51 +02:00
};