mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Convert to enum class
This commit is contained in:
@@ -1346,7 +1346,8 @@ void RimEclipseView::onUpdateLegends()
|
||||
|
||||
if ( this->cellEdgeResult()->hasCategoryResult() )
|
||||
{
|
||||
if ( cellEdgeResult()->singleVarEdgeResultColors()->resultType() != RiaDefines::FORMATION_NAMES )
|
||||
if ( cellEdgeResult()->singleVarEdgeResultColors()->resultType() !=
|
||||
RiaDefines::ResultCatType::FORMATION_NAMES )
|
||||
{
|
||||
cellEdgeResult()->legendConfig()->setIntegerCategories( results->uniqueCellScalarValues(
|
||||
cellEdgeResult()->singleVarEdgeResultColors()->eclipseResultAddress() ) );
|
||||
@@ -2249,9 +2250,10 @@ void RimEclipseView::defineAxisLabels( cvf::String* xLabel, cvf::String* yLabel,
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEclipseView::isUsingFormationNames() const
|
||||
{
|
||||
if ( cellResult()->resultType() == RiaDefines::FORMATION_NAMES ) return true;
|
||||
if ( cellResult()->resultType() == RiaDefines::ResultCatType::FORMATION_NAMES ) return true;
|
||||
|
||||
if ( faultResultSettings()->customFaultResult()->resultType() == RiaDefines::ALLEN_DIAGRAMS ) return true;
|
||||
if ( faultResultSettings()->customFaultResult()->resultType() == RiaDefines::ResultCatType::ALLEN_DIAGRAMS )
|
||||
return true;
|
||||
|
||||
return eclipsePropertyFilterCollection()->isUsingFormationNames();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user