Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ColorTable.h
Go to the documentation of this file.
1#pragma once
2#include <QColor>
3#include <QList>
4#include <QRgb>
5#include <misc/gen/TClosure.h>
6#include <pal/iface/global.h>
7
8namespace sf
9{
10
11typedef QList<QRgb> ColorTable;
12
14
15_PAL_FUNC void
16shiftHsv(const QColor& colorBegin, const QColor& colorEnd, ColorTable::iterator fromEntry, ColorTable::iterator toEntry, const ColorShiftCurve& curve = {});
17
18_PAL_FUNC void
19shiftHsl(const QColor& colorBegin, const QColor& colorEnd, ColorTable::iterator fromEntry, ColorTable::iterator toEntry, const ColorShiftCurve& curve = {});
20
21_PAL_FUNC void shiftSaturation(const QColor& color, ColorTable::iterator fromEntry, ColorTable::iterator toEntry, const ColorShiftCurve& curve = {});
22
23_PAL_FUNC void
24shiftRgb(const QColor& colorBegin, const QColor& colorEnd, ColorTable::iterator fromEntry, ColorTable::iterator toEntry, const ColorShiftCurve& curve = {});
25
26}// namespace sf
Encapsulates the std::function() template.
Definition TClosure.h:14
Definition Application.h:10
_PAL_FUNC void shiftSaturation(const QColor &color, ColorTable::iterator fromEntry, ColorTable::iterator toEntry, const ColorShiftCurve &curve={})
QList< QRgb > ColorTable
Definition ColorTable.h:11
_PAL_FUNC void shiftHsl(const QColor &colorBegin, const QColor &colorEnd, ColorTable::iterator fromEntry, ColorTable::iterator toEntry, const ColorShiftCurve &curve={})
TClosure< qreal, qreal > ColorShiftCurve
Definition ColorTable.h:13
_PAL_FUNC void shiftHsv(const QColor &colorBegin, const QColor &colorEnd, ColorTable::iterator fromEntry, ColorTable::iterator toEntry, const ColorShiftCurve &curve={})
_PAL_FUNC void shiftRgb(const QColor &colorBegin, const QColor &colorEnd, ColorTable::iterator fromEntry, ColorTable::iterator toEntry, const ColorShiftCurve &curve={})
#define _PAL_FUNC
Definition pal/iface/global.h:34