##// END OF EJS Templates
Handles items with same names in the same node...
Handles items with same names in the same node This case is handled by adding suffix (plugin name) when displaying items in the widget

File last commit:

r584:17624d030c39
r1077:c90049fe7bc2
Show More
ColorUtils.h
19 lines | 569 B | text/x-c | CLexer
Alexandre Leroux
Sets differents colors for components of a vector
r584 #ifndef SCIQLOP_COLORUTILS_H
#define SCIQLOP_COLORUTILS_H
#include <vector>
class QColor;
/**
* Utility class with methods for colors
*/
struct ColorUtils {
/// Generates a color scale from min / max values and a number of colors.
/// The algorithm uses the HSV color model to generate color variations (see
/// http://doc.qt.io/qt-4.8/qcolor.html#the-hsv-color-model)
static std::vector<QColor> colors(const QColor &minColor, const QColor &maxColor,
int nbColors) noexcept;
};
#endif // SCIQLOP_COLORUTILS_H