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

#include <SimplePalette.h>

Inheritance diagram for sf::SimplePalette:
Collaboration diagram for sf::SimplePalette:

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)
 
QStringList getProperties () const
 
void setProperties (const QStringList &) const
 

Properties

Mode mode
 
QColor colorFrom
 
QColor colorTo
 
QColor colorCenter
 
QString formula
 

Additional Inherited Members

- Protected Attributes inherited from sf::PaletteInterface
Parameters::Callback _callback
 
qsizetype _colorsUsed {256}
 
qsizetype _colorsSize {256}
 

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
overridevirtual

Gets the color table of the implementation.

Implements sf::PaletteInterface.

◆ getCurveLevel()

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

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: