JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
Specifies how a fill-color is derived from a given color. More...
#include <jkqtptools.h>
Public Member Functions | |
JKQTPColorDerivationMode (const QString &mode) | |
initialize object from a string (calls fromString() ) | |
JKQTPColorDerivationMode (PredefinedModes mode=JKQTPFFCMSameColor) | |
for compatibility: use one of several predefined settings to iitialize object | |
QColor | apply (const QColor &basecolor) const |
apply the modifications encoded in this object to a given color | |
bool | operator== (const JKQTPColorDerivationMode &other) const |
compares two objects for equality | |
bool | operator== (const PredefinedModes &other) const |
determines whether the current object equals a default-initialized object with the given parameter, i.e. this is equivalent to calling | |
QString | toString () const |
convert object contents into a string | |
Static Public Member Functions | |
static JKQTPColorDerivationMode | fromString (const QString &mode) |
read values from a string | |
Public Attributes | |
ColorChangeMode | colorModification |
specifies how the color should change | |
float | colorModificationStrength |
strength of colorModification-settings, such as ColorChangeMode::DarkerColor or ColorChangeMode::LighterColor | |
QColor | targetColor |
replacement color when colorModification==ColorChangeMode::ReplaceColor | |
float | targetTransparency |
target transparency (0:non-transparennt .. 1:fully-transparent, i.e. 1-alphaF!!!) for TransparencyChangeMode::ReplaceTransparency | |
float | transparencyModficationStrength |
strength of transparencyModification-settings, such as TransparencyChangeMode::MoreTransparent or TransparencyChangeMode::LessTransparent | |
TransparencyChangeMode | transparencyModification |
specifies how the transparency of the color chould change | |
Specifies how a fill-color is derived from a given color.
JKQTPColorDerivationMode::JKQTPColorDerivationMode | ( | PredefinedModes | mode = JKQTPFFCMSameColor | ) |
for compatibility: use one of several predefined settings to iitialize object
JKQTPColorDerivationMode::JKQTPColorDerivationMode | ( | const QString & | mode | ) |
initialize object from a string (calls fromString() )
QColor JKQTPColorDerivationMode::apply | ( | const QColor & | basecolor | ) | const |
apply the modifications encoded in this object to a given color
|
static |
read values from a string
bool JKQTPColorDerivationMode::operator== | ( | const JKQTPColorDerivationMode & | other | ) | const |
compares two objects for equality
bool JKQTPColorDerivationMode::operator== | ( | const PredefinedModes & | other | ) | const |
determines whether the current object equals a default-initialized object with the given parameter, i.e. this is equivalent to calling
QString JKQTPColorDerivationMode::toString | ( | ) | const |
convert object contents into a string
ColorChangeMode JKQTPColorDerivationMode::colorModification |
specifies how the color should change
float JKQTPColorDerivationMode::colorModificationStrength |
strength of colorModification-settings, such as ColorChangeMode::DarkerColor or ColorChangeMode::LighterColor
QColor JKQTPColorDerivationMode::targetColor |
replacement color when colorModification==ColorChangeMode::ReplaceColor
float JKQTPColorDerivationMode::targetTransparency |
target transparency (0:non-transparennt .. 1:fully-transparent, i.e. 1-alphaF!!!) for TransparencyChangeMode::ReplaceTransparency
float JKQTPColorDerivationMode::transparencyModficationStrength |
strength of transparencyModification-settings, such as TransparencyChangeMode::MoreTransparent or TransparencyChangeMode::LessTransparent
TransparencyChangeMode JKQTPColorDerivationMode::transparencyModification |
specifies how the transparency of the color chould change