mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1138 - pre-proto - Updating stimPlan legends after reading in xml file
This commit is contained in:
@@ -43,7 +43,7 @@ RimStimPlanColors::RimStimPlanColors()
|
||||
CAF_PDM_InitObject("StimPlan Colors", ":/draw_style_faults_24x24.png", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_resultNameAndUnit, "ResultName", QString(""), "Result Variable", "", "", "");
|
||||
CAF_PDM_InitField(&opacityLevel, "opacityLevel", 0.2f, "StimPlan grid Transparency", "", "", "");
|
||||
CAF_PDM_InitField(&opacityLevel, "opacityLevel", 0.2f, "Transparency", "", "", "");
|
||||
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_legendConfigurations, "LegendConfigurations", "", "", "", "");
|
||||
@@ -115,6 +115,9 @@ void RimStimPlanColors::loadDataAndUpdate()
|
||||
{
|
||||
RimLegendConfig* legendConfig = new RimLegendConfig();
|
||||
legendConfig->resultVariableName = resultNameUnitString;
|
||||
legendConfig->setMappingMode(RimLegendConfig::LINEAR_DISCRETE);
|
||||
legendConfig->setColorRangeMode(RimLegendConfig::STIMPLAN);
|
||||
|
||||
|
||||
m_legendConfigurations.push_back(legendConfig);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user