Files
ResInsight/ApplicationCode/UserInterface/RiuFemResultTextBuilder.h
T

77 lines
2.3 KiB
C++
Raw Normal View History

2015-06-11 11:38:51 +02:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Statoil ASA
// Copyright (C) Ceetron Solutions AS
//
// 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-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;
2015-06-11 11:38:51 +02:00
namespace cvf {
class Part;
2015-06-11 11:38:51 +02:00
}
//==================================================================================================
//
//
//==================================================================================================
class RiuFemResultTextBuilder
{
public:
RiuFemResultTextBuilder(RimGeoMechView* reservoirView, int gridIndex, int cellIndex, int timeStepIndex);
void setFace(int face);
2015-06-11 11:38:51 +02:00
void setIntersectionPoint(cvf::Vec3d intersectionPoint);
void setIntersectionTriangle(const std::array<cvf::Vec3f, 3>& triangle);
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);
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<RimGeoMechView> m_reservoirView;
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_intersectionPoint;
2015-06-11 11:38:51 +02:00
};