Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::SimplePalette Class Reference

#include <SimplePalette.h>

Inheritance diagram for sf::SimplePalette:
[legend]
Collaboration diagram for sf::SimplePalette:
[legend]

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}

Member Enumeration Documentation

◆ Mode

Mode for generation of colors.

Enumerator
ShiftRgb 
ShiftHsv 
ShiftHsl 

Constructor & Destructor Documentation

◆ SimplePalette()

sf::SimplePalette::SimplePalette ( const Parameters & )
explicit

Interface constructor.

Member Function Documentation

◆ addPropertyPages()

void sf::SimplePalette::addPropertyPages ( PropertySheetDialog * sheet)
overridevirtual

Overridden from base class.

Reimplemented from sf::PaletteInterface.

◆ getColorTable()

ColorTable sf::SimplePalette::getColorTable ( ) const
nodiscardoverridevirtual

Gets the color table of the implementation.

Implements sf::PaletteInterface.

◆ getCurveLevel()

qreal sf::SimplePalette::getCurveLevel ( qreal x) const
nodiscardoverridevirtual

Gets calculated level for color shifts.

Used in calculation of colors and drawing a curve when configuring.

Parameters
xValue between 0.0 and 1.0.
Returns
Value between 0.0 and 1.0.

Implements sf::PaletteInterface.

◆ Q_ENUM()

sf::SimplePalette::Q_ENUM ( Mode )

Property Documentation

◆ colorCenter

QColor sf::SimplePalette::colorCenter
readwrite

◆ colorFrom

QColor sf::SimplePalette::colorFrom
readwrite

◆ colorTo

QColor sf::SimplePalette::colorTo
readwrite

◆ formula

QString sf::SimplePalette::formula
readwrite

◆ mode

Mode sf::SimplePalette::mode
readwrite

The documentation for this class was generated from the following file: