![]() |
Scanframe Modular Application 0.1.0
|
Base class for the interface. More...
#include <PaletteInterface.h>
Classes | |
struct | Parameters |
Structure passed as a constructor argument. More... | |
Public Member Functions | |
PaletteInterface (const Parameters &) | |
Constructor for passing general structure for derived classes. | |
~PaletteInterface () override=default | |
Virtual destructor for derived classes. | |
virtual void | addPropertyPages (PropertySheetDialog *sheet) |
virtual void | setSizes (qsizetype colorsUsed, qsizetype colorsSize) |
Sets the size of the color table of the implementation. | |
virtual ColorTable | getColorTable () const =0 |
Gets the color table of the implementation. | |
virtual qreal | getCurveLevel (qreal x) const =0 |
Gets calculated level for color shifts. | |
![]() | |
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. | |
Protected Attributes | |
Parameters::Callback | _callback |
qsizetype | _colorsSize {256} |
qsizetype | _colorsUsed {_colorsSize} |
Additional Inherited Members | |
![]() | |
QMap< int, const char * > | getObjectProperties (const QObject *obj) const |
Gets a mapped property list af all properties of the object. | |
Base class for the interface.
|
explicit |
Constructor for passing general structure for derived classes.
|
overridedefault |
Virtual destructor for derived classes.
|
virtual |
Adds controller specific property pages to the passed sheet.
sheet |
Reimplemented in sf::AmplitudePalette, and sf::SimplePalette.
|
pure virtual |
Gets the color table of the implementation.
Implemented in sf::AmplitudePalette, and sf::SimplePalette.
|
pure virtual |
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. |
Implemented in sf::AmplitudePalette, and sf::SimplePalette.
|
virtual |
Sets the size of the color table of the implementation.
colorsUsed | Amount of colors actually used. |
colorsSize | Amount of colors needed. |
|
protected |
|
protected |
|
protected |