mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
#5002 Ensemble RFT curve sets with parameter coloring and separate legends
This commit is contained in:
1 parent
f56a34843a
commit
7fd4aa1ce9
16 files changed
+643
-167
No files matched your search
@@ -20,11 +20,12 @@
|
||||
|
||||
#include "RiaDefines.h"
|
||||
|
||||
#include "RimEnsembleCurveSet.h"
|
||||
#include "RimRegularLegendConfig.h"
|
||||
#include "RimSummaryCaseCollection.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
class RimEnsembleCurveSet;
|
||||
class RimEnsembleCurveSetCollection;
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -32,6 +33,15 @@ class RimEnsembleCurveSetCollection;
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
class RimEnsembleCurveSetColorManager
|
||||
{
|
||||
public:
|
||||
enum class ColorMode
|
||||
{
|
||||
SINGLE_COLOR,
|
||||
BY_ENSEMBLE_PARAM
|
||||
};
|
||||
using ColorModeEnum = caf::AppEnum<ColorMode>;
|
||||
using NameParameterPair = EnsembleParameter::NameParameterPair;
|
||||
|
||||
public:
|
||||
static const std::map<RimRegularLegendConfig::ColorRangesType, cvf::Color3ubArray>& EnsembleColorRanges();
|
||||
|
||||
@@ -43,6 +53,11 @@ public:
|
||||
return m_ensembleColorRanges.find( colorRange ) != m_ensembleColorRanges.end();
|
||||
}
|
||||
|
||||
static void initializeLegendConfig( RimRegularLegendConfig* legendConfig, const EnsembleParameter& parameter );
|
||||
static cvf::Color3f caseColor( const RimRegularLegendConfig* legendConfig,
|
||||
const RimSummaryCase* summaryCase,
|
||||
const EnsembleParameter& parameter );
|
||||
|
||||
private:
|
||||
static const std::map<RimRegularLegendConfig::ColorRangesType, cvf::Color3ubArray> m_ensembleColorRanges;
|
||||
|
||||
|
||||
Reference in new issue
Block a user