mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5125 Use category legend for well measurements without values.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "RimIntersectionCollection.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimViewLinker.h"
|
||||
#include "RimWellMeasurementInView.h"
|
||||
|
||||
#include "cafCategoryLegend.h"
|
||||
#include "cafCategoryMapper.h"
|
||||
@@ -923,12 +924,15 @@ QList<caf::PdmOptionItemInfo>
|
||||
this->firstAncestorOrThisOfType( gmCellColors );
|
||||
RimCellEdgeColors* eclCellEdgColors = nullptr;
|
||||
this->firstAncestorOrThisOfType( eclCellEdgColors );
|
||||
RimWellMeasurementInView* wellMeasurementInView = nullptr;
|
||||
this->firstAncestorOrThisOfType( wellMeasurementInView );
|
||||
|
||||
if ( ( eclCellColors && eclCellColors->hasCategoryResult() ) ||
|
||||
( gmCellColors && gmCellColors->hasCategoryResult() ) ||
|
||||
( eclCellEdgColors && eclCellEdgColors->hasCategoryResult() ) ||
|
||||
( ensembleCurveSet && ensembleCurveSet->currentEnsembleParameterType() == EnsembleParameter::TYPE_TEXT ) ||
|
||||
( crossPlotCurveSet && crossPlotCurveSet->groupingByCategoryResult() ) )
|
||||
( crossPlotCurveSet && crossPlotCurveSet->groupingByCategoryResult() ) ||
|
||||
( wellMeasurementInView && wellMeasurementInView->hasCategoryResult() ) )
|
||||
{
|
||||
isCategoryResult = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user