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);
|
||||
}
|
||||
|
||||
@@ -18,10 +18,14 @@
|
||||
|
||||
#include "RimStimPlanFractureTemplate.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RigStimPlanFractureDefinition.h"
|
||||
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimFracture.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimStimPlanLegendConfig.h"
|
||||
|
||||
#include "cafPdmObject.h"
|
||||
@@ -173,14 +177,6 @@ void RimStimPlanFractureTemplate::readStimPlanXMLFile(QString * errorMessage)
|
||||
size_t numberOfTimeSteps;
|
||||
numberOfTimeSteps = m_stimPlanFractureDefinitionData->timeSteps.size();
|
||||
|
||||
|
||||
// std::vector<std::vector<std::vector<double>>> condValues(numberOfTimeSteps);
|
||||
// m_stimPlanFractureDefinitionData->conductivities = condValues;
|
||||
// std::vector<std::vector<std::vector<double>>> widthValues(numberOfTimeSteps);
|
||||
// m_stimPlanFractureDefinitionData->widths = widthValues;
|
||||
// std::vector<std::vector<std::vector<double>>> permValues(numberOfTimeSteps);
|
||||
// m_stimPlanFractureDefinitionData->permeabilities = permValues;
|
||||
|
||||
//Start reading from top:
|
||||
QFile dataFile(m_stimPlanFileName());
|
||||
|
||||
@@ -240,6 +236,10 @@ void RimStimPlanFractureTemplate::readStimPlanXMLFile(QString * errorMessage)
|
||||
}
|
||||
|
||||
setDepthOfWellPathAtFracture();
|
||||
|
||||
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||
if (!activeView) return;
|
||||
activeView->stimPlanColors->loadDataAndUpdate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user