mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Fix zone colors to honor LYR-file specification (#13658)
* #12974 Fix zone colors to honor LYR-file specification - Map formation colors by name instead of palette index in updateFormationNamesOnPlot() - Map formation colors by categoryValue lookup in updateCellResultLegend(), fixing incorrect colors when showOnlyVisibleCategoriesInLegend filters the active set - Add RimColorLegendCollection::createColorLegendFromFormationNames() and call it from readAllFormationNames() so LYR colors are available after project load - Auto-assign formation color legend when a formation case is set on a well log track - Rename fileNameWoPath() to shortName() and switch to baseName() (no extension) - Remove addCustomColorLegend() from RicImportFormationNamesFeature; logic now lives in RimColorLegendCollection - Set formation legend when creating new Well Log Extraction Curve track
This commit is contained in:
1 parent
3d1abec870
commit
1cd3cf3b67
13 files changed
+157
-92
No files matched your search
@@ -20,7 +20,9 @@
|
||||
|
||||
#include "RiaLogging.h"
|
||||
#include "RimCase.h"
|
||||
#include "RimColorLegendCollection.h"
|
||||
#include "RimFormationNames.h"
|
||||
#include "RimProject.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimFormationNamesCollection, "FormationNamesCollectionObject" );
|
||||
|
||||
@@ -44,6 +46,7 @@ void RimFormationNamesCollection::readAllFormationNames()
|
||||
for ( RimFormationNames* fmNames : m_formationNamesList )
|
||||
{
|
||||
fmNames->readFormationNamesFile( nullptr );
|
||||
RimProject::current()->colorLegendCollection->createColorLegendFromFormationNames( fmNames );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user