mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use less generic names to work-around msvc compilation failure
This commit is contained in:
parent
31734d04cb
commit
5566db7b28
@ -55,9 +55,9 @@ namespace caf
|
||||
template <>
|
||||
void caf::AppEnum<RimStatisticsPlot::HistogramFrequencyType>::setUp()
|
||||
{
|
||||
addItem( RimStatisticsPlot::HistogramFrequencyType::ABSOLUTE, "ABSOLUTE", "Absolute" );
|
||||
addItem( RimStatisticsPlot::HistogramFrequencyType::RELATIVE, "RELATIVE", "Relative" );
|
||||
setDefault( RimStatisticsPlot::HistogramFrequencyType::ABSOLUTE );
|
||||
addItem( RimStatisticsPlot::HistogramFrequencyType::ABSOLUTE_FREQUENCY, "ABSOLUTE_FREQUENCY", "Absolute" );
|
||||
addItem( RimStatisticsPlot::HistogramFrequencyType::RELATIVE_FREQUENCY, "RELATIVE_FREQUENCY", "Relative" );
|
||||
setDefault( RimStatisticsPlot::HistogramFrequencyType::ABSOLUTE_FREQUENCY );
|
||||
}
|
||||
} // namespace caf
|
||||
|
||||
@ -266,7 +266,7 @@ void RimStatisticsPlot::updatePlots()
|
||||
|
||||
for ( double value : histogramData.histogram )
|
||||
{
|
||||
if ( m_histogramFrequencyType() == HistogramFrequencyType::RELATIVE ) value /= sumElements;
|
||||
if ( m_histogramFrequencyType() == HistogramFrequencyType::RELATIVE_FREQUENCY ) value /= sumElements;
|
||||
*set0 << value;
|
||||
minValue = std::min( minValue, value );
|
||||
maxValue = std::max( maxValue, value );
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
#include "RiuQtChartView.h"
|
||||
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmFieldCvfColor.h"
|
||||
|
||||
@ -44,8 +45,8 @@ class RimStatisticsPlot : public RimPlotWindow
|
||||
public:
|
||||
enum class HistogramFrequencyType
|
||||
{
|
||||
ABSOLUTE,
|
||||
RELATIVE
|
||||
ABSOLUTE_FREQUENCY,
|
||||
RELATIVE_FREQUENCY
|
||||
};
|
||||
|
||||
RimStatisticsPlot();
|
||||
|
Loading…
Reference in New Issue
Block a user