Improve curve naming

* Add curve name template and handling of string variables
* Mark autoName as obsolete field
* Use key-value map to populate variable values
* Add curve naming methods Auto, Custom and Template
This commit is contained in:
Magne Sjaastad
2022-10-11 14:02:46 +02:00
committed by GitHub
parent 05d7eac52c
commit 5e184df670
15 changed files with 294 additions and 82 deletions

View File

@@ -102,8 +102,10 @@ public:
void assignColorFromResultName( const QString& resultName );
protected:
// Overrides from RimWellLogPlotCurve
QString createCurveAutoName() override;
QString createCurveAutoName() override;
QString createCurveNameFromTemplate( const QString& templateText ) override;
QStringList supportedCurveNameVariables() const override;
void onLoadDataAndUpdate( bool updateParentPlot ) override;
RiaDefines::PhaseType phaseType() const override;
@@ -124,6 +126,8 @@ private:
std::vector<size_t> sortedIndicesInRftFile();
void updateWellChannelNameAndTimeStep();
std::map<QString, QString> createCurveNameKeyValueMap() const;
std::vector<double> xValues();
std::vector<double> errorValues();
std::vector<double> tvDepthValues();