#1138 - pre-proto - Updating stimPlan legends after reading in xml file

This commit is contained in:
astridkbjorke
2017-02-20 15:39:15 +01:00
parent 9f156f9e5f
commit be49cb2766
2 changed files with 12 additions and 9 deletions

View File

@@ -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);
}