10#ifndef QWT_COLORMAP_COMPAT_H
11#define QWT_COLORMAP_COMPAT_H
13#include "qwt_colormap.h"
14#include "qwt_interval.h"
QwtColorMap is used to map values into colors.
Definition qwt_colormap.h:33
virtual QRgb rgb(double vMin, double vMax, double value) const =0
Map a value of a given interval into a RGB value.
virtual uint colorIndex(int numColors, double vMin, double vMax, double value) const
Map a value of a given interval into a color index.
Definition qwt_colormap.cpp:252
A class representing an interval
Definition qwt_interval.h:39
constexpr double minValue() const noexcept
Definition qwt_interval.h:214
constexpr double maxValue() const noexcept
Definition qwt_interval.h:223
QwtInterval-based convenience wrappers for QwtColorMap.
Definition qwt_colormap_compat.h:23
QColor color(const QwtColorMap &map, const QwtInterval &interval, double value)
Map a value of a given interval into a QColor.
Definition qwt_colormap_compat.h:38
uint colorIndex(const QwtColorMap &map, int numColors, const QwtInterval &interval, double value)
Map a value of a given interval into a color index.
Definition qwt_colormap_compat.h:32
QRgb rgb(const QwtColorMap &map, const QwtInterval &interval, double value)
Map a value of a given interval into a RGB value.
Definition qwt_colormap_compat.h:26