Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::AmplitudePalette Class Referencefinal

#include <AmplitudePalette.h>

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

Public Member Functions

 AmplitudePalette (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.
double getCalibLevel () const
 Property getter.
void setCalibLevel (double value)
 Property setter.
gii::IdType getIdCalibMin () const
void setIdCalibMin (gii::IdType id)
gii::IdType getIdCalibMax () const
void setIdCalibMax (gii::IdType id)
gii::IdType getIdCalibPos () const
void setIdCalibPos (gii::IdType id)
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

QColor colorFrom
QColor colorTo
QColor colorCalib
QColor colorOver
double calibLevel
double sizeCalib
sf::gii::IdType idCalibMin
sf::gii::IdType idCalibMax
sf::gii::IdType idCalibPos

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}

Constructor & Destructor Documentation

◆ AmplitudePalette()

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

Interface constructor.

Member Function Documentation

◆ addPropertyPages()

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

Overridden from base class.

Reimplemented from sf::PaletteInterface.

◆ getCalibLevel()

double sf::AmplitudePalette::getCalibLevel ( ) const
nodiscard

Property getter.

◆ getColorTable()

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

Gets the color table of the implementation.

Implements sf::PaletteInterface.

◆ getCurveLevel()

qreal sf::AmplitudePalette::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.

◆ getIdCalibMax()

gii::IdType sf::AmplitudePalette::getIdCalibMax ( ) const
nodiscard

◆ getIdCalibMin()

gii::IdType sf::AmplitudePalette::getIdCalibMin ( ) const
nodiscard

◆ getIdCalibPos()

gii::IdType sf::AmplitudePalette::getIdCalibPos ( ) const
nodiscard

◆ setCalibLevel()

void sf::AmplitudePalette::setCalibLevel ( double value)

Property setter.

◆ setIdCalibMax()

void sf::AmplitudePalette::setIdCalibMax ( gii::IdType id)

◆ setIdCalibMin()

void sf::AmplitudePalette::setIdCalibMin ( gii::IdType id)

◆ setIdCalibPos()

void sf::AmplitudePalette::setIdCalibPos ( gii::IdType id)

Property Documentation

◆ calibLevel

double sf::AmplitudePalette::calibLevel
readwrite

Calibration properties

◆ colorCalib

QColor sf::AmplitudePalette::colorCalib
readwrite

◆ colorFrom

QColor sf::AmplitudePalette::colorFrom
readwrite

Color properties

◆ colorOver

QColor sf::AmplitudePalette::colorOver
readwrite

◆ colorTo

QColor sf::AmplitudePalette::colorTo
readwrite

◆ idCalibMax

sf::gii::IdType sf::AmplitudePalette::idCalibMax
readwrite

◆ idCalibMin

sf::gii::IdType sf::AmplitudePalette::idCalibMin
readwrite

Calibration id properties.

◆ idCalibPos

sf::gii::IdType sf::AmplitudePalette::idCalibPos
readwrite

◆ sizeCalib

double sf::AmplitudePalette::sizeCalib
readwrite

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