Mercurial > hg > svgui
comparison layer/ColourMapper.cpp @ 248:28c8e8e3c537
* Fix many compile warnings, remove some debug output
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 13:36:23 +0000 |
parents | 1ab31723825d |
children | b9380f679f70 |
comparison
equal
deleted
inserted
replaced
247:0e9f59f991aa | 248:28c8e8e3c537 |
---|---|
72 if (norm > 1.f) norm = 1.f; | 72 if (norm > 1.f) norm = 1.f; |
73 | 73 |
74 float h = 0.f, s = 0.f, v = 0.f, r = 0.f, g = 0.f, b = 0.f; | 74 float h = 0.f, s = 0.f, v = 0.f, r = 0.f, g = 0.f, b = 0.f; |
75 bool hsv = true; | 75 bool hsv = true; |
76 | 76 |
77 float red = 0.f, green = 0.3333f, blue = 0.6666f, pieslice = 0.3333f; | 77 // float red = 0.f, green = 0.3333f; |
78 float blue = 0.6666f, pieslice = 0.3333f; | |
78 | 79 |
79 if (m_map >= getColourMapCount()) return Qt::black; | 80 if (m_map >= getColourMapCount()) return Qt::black; |
80 StandardMap map = (StandardMap)m_map; | 81 StandardMap map = (StandardMap)m_map; |
81 | 82 |
82 switch (map) { | 83 switch (map) { |