![]() |
Scanframe Modular Application 0.1.0
|
#include <SimplePalette.h>


Public Types | |
| enum | Mode { ShiftRgb , ShiftHsv , ShiftHsl } |
| Mode for generation of colors. More... | |
Public Member Functions | |
| Q_ENUM (Mode) | |
| SimplePalette (const Parameters &) | |
| Interface constructor. | |
| void | addPropertyPages (PropertySheetDialog *sheet) override |
| Overridden from base class. | |
| ColorTable | getColorTable () const override |
| Gets the color table of the implementation. | |
| qreal | getCurveLevel (qreal x) const override |
| Gets calculated level for color shifts. | |
Public Member Functions inherited from sf::PaletteInterface | |
| PaletteInterface (const Parameters &) | |
| Constructor for passing general structure for derived classes. | |
| ~PaletteInterface () override=default | |
| Virtual destructor for derived classes. | |
| virtual void | setSizes (qsizetype colorsUsed, qsizetype colorsSize) |
| Sets the size of the color table of the implementation. | |
Public Member Functions inherited from sf::Persistent | |
| Persistent (QObject *obj) | |
| Constructor. | |
| void | setSourceObject (QObject *obj) |
| QStringList | getProperties () const |
| Gets the properties from the object as a string list to store as settings. | |
| void | setProperties (const QStringList &) const |
| Sets the properties of the object as a string list settings. | |
Properties | |
| Mode | mode |
| QColor | colorFrom |
| QColor | colorTo |
| QColor | colorCenter |
| QString | formula |
Additional Inherited Members | |
Protected Member Functions inherited from sf::Persistent | |
| QMap< int, const char * > | getObjectProperties (const QObject *obj) const |
| Gets a mapped property list af all properties of the object. | |
Protected Attributes inherited from sf::PaletteInterface | |
| Parameters::Callback | _callback |
| qsizetype | _colorsSize {256} |
| qsizetype | _colorsUsed {_colorsSize} |
|
explicit |
Interface constructor.
|
overridevirtual |
Overridden from base class.
Reimplemented from sf::PaletteInterface.
|
overridevirtual |
Gets the color table of the implementation.
Implements sf::PaletteInterface.
|
overridevirtual |
Gets calculated level for color shifts.
Used in calculation of colors and drawing a curve when configuring.
| x | Value between 0.0 and 1.0. |
Implements sf::PaletteInterface.
| sf::SimplePalette::Q_ENUM | ( | Mode | ) |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |