mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
Palette colors for formations missing from the legend were assigned by position in the per-well zone list, so the same formation could get different colors for different wells. Assign them by order of first appearance in the formations file instead.
41 lines
1.6 KiB
C++
41 lines
1.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2017- Statoil ASA
|
|
//
|
|
// 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 "Well/RigWellPathFormations.h"
|
|
|
|
#include <expected>
|
|
#include <map>
|
|
|
|
#include <QString>
|
|
|
|
//==================================================================================================
|
|
///
|
|
//==================================================================================================
|
|
class RifWellPathFormationReader
|
|
{
|
|
public:
|
|
using WellFormations = std::map<QString /*wellName*/, RigWellPathFormations>;
|
|
|
|
// If zoneOrder is given, it receives the unique zone names in order of first appearance in the file
|
|
static std::expected<WellFormations, QString> readWellFormations( const QString& filePath, QStringList* zoneOrder = nullptr );
|
|
static std::expected<WellFormations, QString>
|
|
parseWellFormations( const QString& content, const QString& filePath, QStringList* zoneOrder = nullptr );
|
|
};
|