Mercurial > hg > svgui
comparison layer/ColourMapper.cpp @ 706:97ea68f62c1f imaf_enc
Merge from default branch
author | Chris Cannam |
---|---|
date | Thu, 05 Dec 2013 09:47:02 +0000 |
parents | 1a0dfcbffaf1 |
children | 1d526ba11a24 |
comparison
equal
deleted
inserted
replaced
678:26c5f7fd4807 | 706:97ea68f62c1f |
---|---|
17 | 17 |
18 #include <iostream> | 18 #include <iostream> |
19 | 19 |
20 #include <cmath> | 20 #include <cmath> |
21 | 21 |
22 #include "base/Debug.h" | |
23 | |
22 ColourMapper::ColourMapper(int map, float min, float max) : | 24 ColourMapper::ColourMapper(int map, float min, float max) : |
23 QObject(), | 25 QObject(), |
24 m_map(map), | 26 m_map(map), |
25 m_min(min), | 27 m_min(min), |
26 m_max(max) | 28 m_max(max) |
27 { | 29 { |
28 if (m_min == m_max) { | 30 if (m_min == m_max) { |
29 std::cerr << "WARNING: ColourMapper: min == max (== " << m_min | 31 cerr << "WARNING: ColourMapper: min == max (== " << m_min |
30 << "), adjusting" << std::endl; | 32 << "), adjusting" << endl; |
31 m_max = m_min + 1; | 33 m_max = m_min + 1; |
32 } | 34 } |
33 } | 35 } |
34 | 36 |
35 ColourMapper::~ColourMapper() | 37 ColourMapper::~ColourMapper() |