Display of ink coverage

This commit is contained in:
Jakub Melka
2021-04-02 20:20:53 +02:00
parent 63376400da
commit 4921b61cf9
6 changed files with 141 additions and 0 deletions

View File

@ -806,6 +806,21 @@ QDataStream& operator<<(QDataStream& stream, const std::set<T>& set)
return stream;
}
/// Color scale represents hot-to-cold color scale. It maps value
/// to the color from blue trough green to red.
class Pdf4QtLIBSHARED_EXPORT PDFColorScale
{
public:
explicit PDFColorScale(PDFReal min, PDFReal max);
QColor map(PDFReal value) const;
private:
std::vector<QColor> m_colorScales;
PDFReal m_min;
PDFReal m_max;
};
} // namespace pdf
#endif // PDFUTILS_H