comparison layer/Colour3DPlotLayer.cpp @ 536:aca01b3af29f

* Add High Gain colour map
author Chris Cannam
date Fri, 22 May 2009 15:50:10 +0000
parents 78f9436195b1
children 0cc658fe1423
comparison
equal deleted inserted replaced
535:78f9436195b1 536:aca01b3af29f
1559 .arg(m_normalizeVisibleArea ? "true" : "false") 1559 .arg(m_normalizeVisibleArea ? "true" : "false")
1560 .arg(m_miny) 1560 .arg(m_miny)
1561 .arg(m_maxy) 1561 .arg(m_maxy)
1562 .arg(m_invertVertical ? "true" : "false") 1562 .arg(m_invertVertical ? "true" : "false")
1563 .arg(m_opaque ? "true" : "false") 1563 .arg(m_opaque ? "true" : "false")
1564 .arg(QString("binScale=\"%1\" smooth=\"%2\" ") 1564 .arg(QString("binScale=\"%1\" smooth=\"%2\" gain=\"%3\" ")
1565 .arg((int)m_binScale) 1565 .arg((int)m_binScale)
1566 .arg(m_smooth ? "true" : "false")); 1566 .arg(m_smooth ? "true" : "false")
1567 .arg(m_gain));
1567 1568
1568 Layer::toXml(stream, indent, extraAttributes + " " + s); 1569 Layer::toXml(stream, indent, extraAttributes + " " + s);
1569 } 1570 }
1570 1571
1571 void 1572 void
1600 1601
1601 bool smooth = 1602 bool smooth =
1602 (attributes.value("smooth").trimmed() == "true"); 1603 (attributes.value("smooth").trimmed() == "true");
1603 setSmooth(smooth); 1604 setSmooth(smooth);
1604 1605
1606 float gain = attributes.value("gain").toFloat(&ok);
1607 if (ok) setGain(gain);
1608
1605 float min = attributes.value("minY").toFloat(&ok); 1609 float min = attributes.value("minY").toFloat(&ok);
1606 float max = attributes.value("maxY").toFloat(&alsoOk); 1610 float max = attributes.value("maxY").toFloat(&alsoOk);
1607 if (ok && alsoOk) setDisplayExtents(min, max); 1611 if (ok && alsoOk) setDisplayExtents(min, max);
1608 } 1612 }
1609 1613