|
Krita Source Code Documentation
|
#include "kis_hsv_adjustment.h"#include <KoConfig.h>#include <kis_debug.h>#include <klocalizedstring.h>#include <KoColorConversions.h>#include <KoColorModelStandardIds.h>#include <KoColorSpace.h>#include <KoColorSpaceTraits.h>#include <KoColorTransformation.h>#include <KoID.h>#include "kis_global.h"Go to the source code of this file.
Classes | |
| struct | HCIPolicy |
| struct | HCYPolicy |
| struct | HSLPolicy |
| struct | HSVPolicy |
| class | KisHSVAdjustment< _channel_type_, traits > |
| class | KisHSVCurveAdjustment< _channel_type_, traits > |
Macros | |
| #define | FLOAT_CLAMP(v) *v = (*v < 0.0) ? 0.0 : ( (*v>1.0) ? 1.0 : *v ) |
| #define | SCALE_FROM_FLOAT(v) KoColorSpaceMaths< float, _channel_type_>::scaleToA( v ) |
| #define | SCALE_TO_FLOAT(v) KoColorSpaceMaths< _channel_type_, float>::scaleToA( v ) |
Functions | |
| template<typename _channel_type_ > | |
| void | clamp (float *r, float *g, float *b) |
| template<> | |
| void | clamp< float > (float *r, float *g, float *b) |
| template<> | |
| void | clamp< quint16 > (float *r, float *g, float *b) |
| template<> | |
| void | clamp< quint8 > (float *r, float *g, float *b) |
| template<class ValuePolicy > | |
| void | HSVTransform (float *r, float *g, float *b, float dh, float ds, float dv, ValuePolicy valuePolicy) |
| static void | writeRGBSimple (float *r, float *g, float *b, int sextant, float x, float m, float M) |
Definition at line 30 of file kis_hsv_adjustment.cpp.
| #define SCALE_FROM_FLOAT | ( | v | ) | KoColorSpaceMaths< float, _channel_type_>::scaleToA( v ) |
Definition at line 25 of file kis_hsv_adjustment.cpp.
| #define SCALE_TO_FLOAT | ( | v | ) | KoColorSpaceMaths< _channel_type_, float>::scaleToA( v ) |
Definition at line 24 of file kis_hsv_adjustment.cpp.
| void clamp | ( | float * | r, |
| float * | g, | ||
| float * | b ) |
Definition at line 59 of file kis_hsv_adjustment.cpp.
Definition at line 41 of file kis_hsv_adjustment.cpp.
References FLOAT_CLAMP.
Definition at line 33 of file kis_hsv_adjustment.cpp.
References FLOAT_CLAMP.
| void HSVTransform | ( | float * | r, |
| float * | g, | ||
| float * | b, | ||
| float | dh, | ||
| float | ds, | ||
| float | dv, | ||
| ValuePolicy | valuePolicy ) |
approximation of a nonlinear slider: ds = 0.0 -> chroma *= 1.0; ds = 0.5 -> chroma *= 2.0; ds = 1.0 -> chroma *= 4.0;
Definition at line 237 of file kis_hsv_adjustment.cpp.
References EPSILON, normalizeAngleDegrees(), pow2(), and v.
|
inlinestatic |
Definition at line 68 of file kis_hsv_adjustment.cpp.