|
Krita Source Code Documentation
|
Write API docs here. More...
#include <KoSegmentGradient.h>
Classes | |
| class | ColorInterpolationStrategy |
| class | CurvedInterpolationStrategy |
| class | HSVCCWColorInterpolationStrategy |
| class | HSVCWColorInterpolationStrategy |
| class | InterpolationStrategy |
| class | LinearInterpolationStrategy |
| class | RGBColorInterpolationStrategy |
| class | SineInterpolationStrategy |
| class | SphereDecreasingInterpolationStrategy |
| class | SphereIncreasingInterpolationStrategy |
Private Attributes | |
| ColorInterpolationStrategy * | m_colorInterpolator |
| KoGradientSegmentEndpoint | m_end |
| bool | m_hasVariableColors = false |
| InterpolationStrategy * | m_interpolator |
| qreal | m_length |
| qreal | m_middleOffset |
| qreal | m_middleT |
| KoGradientSegmentEndpoint | m_start |
Write API docs here.
Definition at line 62 of file KoSegmentGradient.h.
| KoGradientSegment::KoGradientSegment | ( | int | interpolationType, |
| int | colorInterpolationType, | ||
| KoGradientSegmentEndpoint | start, | ||
| KoGradientSegmentEndpoint | end, | ||
| qreal | middleOffset ) |
Definition at line 316 of file KoSegmentGradient.cpp.
References COLOR_ENDPOINT, COLOR_INTERP_HSV_CCW, COLOR_INTERP_HSV_CW, COLOR_INTERP_RGB, KoGradientSegment::RGBColorInterpolationStrategy::instance(), KoGradientSegment::HSVCWColorInterpolationStrategy::instance(), KoGradientSegment::HSVCCWColorInterpolationStrategy::instance(), KoGradientSegment::LinearInterpolationStrategy::instance(), KoGradientSegment::CurvedInterpolationStrategy::instance(), KoGradientSegment::SphereIncreasingInterpolationStrategy::instance(), KoGradientSegment::SphereDecreasingInterpolationStrategy::instance(), KoGradientSegment::SineInterpolationStrategy::instance(), INTERP_CURVED, INTERP_LINEAR, INTERP_SINE, INTERP_SPHERE_DECREASING, INTERP_SPHERE_INCREASING, m_colorInterpolator, m_end, m_hasVariableColors, m_interpolator, m_length, m_middleOffset, m_middleT, m_start, middleOffset(), KoGradientSegmentEndpoint::offset, and KoGradientSegmentEndpoint::type.
Definition at line 566 of file KoSegmentGradient.cpp.
References KoGradientSegmentEndpoint::color, KoGradientSegment::ColorInterpolationStrategy::colorAt(), m_colorInterpolator, m_end, m_interpolator, m_length, m_middleT, m_start, KoGradientSegmentEndpoint::offset, and KoGradientSegment::InterpolationStrategy::valueAt().
| int KoGradientSegment::colorInterpolation | ( | ) | const |
Definition at line 546 of file KoSegmentGradient.cpp.
References m_colorInterpolator, and KoGradientSegment::ColorInterpolationStrategy::type().
| const KoColor & KoGradientSegment::endColor | ( | ) | const |
Definition at line 392 of file KoSegmentGradient.cpp.
References KoGradientSegmentEndpoint::color, and m_end.
| qreal KoGradientSegment::endOffset | ( | ) | const |
Definition at line 407 of file KoSegmentGradient.cpp.
References m_end, and KoGradientSegmentEndpoint::offset.
| KoGradientSegmentEndpointType KoGradientSegment::endType | ( | ) | const |
Definition at line 417 of file KoSegmentGradient.cpp.
References m_end, and KoGradientSegmentEndpoint::type.
| bool KoGradientSegment::hasVariableColors | ( | ) |
Definition at line 516 of file KoSegmentGradient.cpp.
References m_hasVariableColors.
| int KoGradientSegment::interpolation | ( | ) | const |
Definition at line 520 of file KoSegmentGradient.cpp.
References m_interpolator, and KoGradientSegment::InterpolationStrategy::type().
| bool KoGradientSegment::isValid | ( | ) | const |
Definition at line 609 of file KoSegmentGradient.cpp.
References m_colorInterpolator, and m_interpolator.
|
inline |
Definition at line 106 of file KoSegmentGradient.h.
| qreal KoGradientSegment::middleOffset | ( | ) | const |
Definition at line 402 of file KoSegmentGradient.cpp.
References m_middleOffset.
| void KoGradientSegment::mirrorSegment | ( | ) |
Definition at line 584 of file KoSegmentGradient.cpp.
References COLOR_INTERP_HSV_CCW, COLOR_INTERP_HSV_CW, colorInterpolation(), endColor(), endOffset(), endType(), INTERP_SPHERE_DECREASING, INTERP_SPHERE_INCREASING, interpolation(), middleOffset(), setColorInterpolation(), setEndColor(), setEndType(), setInterpolation(), setMiddleOffset(), setStartColor(), setStartType(), startColor(), startOffset(), and startType().
| void KoGradientSegment::setColorInterpolation | ( | int | colorInterpolationType | ) |
Definition at line 551 of file KoSegmentGradient.cpp.
References COLOR_INTERP_HSV_CCW, COLOR_INTERP_HSV_CW, COLOR_INTERP_RGB, KoGradientSegment::RGBColorInterpolationStrategy::instance(), KoGradientSegment::HSVCWColorInterpolationStrategy::instance(), KoGradientSegment::HSVCCWColorInterpolationStrategy::instance(), and m_colorInterpolator.
Definition at line 83 of file KoSegmentGradient.h.
References BACKGROUND_ENDPOINT, BACKGROUND_TRANSPARENT_ENDPOINT, FOREGROUND_ENDPOINT, FOREGROUND_TRANSPARENT_ENDPOINT, and KoColor::setOpacity().
| void KoGradientSegment::setEndOffset | ( | qreal | t | ) |
Definition at line 464 of file KoSegmentGradient.cpp.
References m_end, m_length, m_middleOffset, m_middleT, m_start, and KoGradientSegmentEndpoint::offset.
| void KoGradientSegment::setEndType | ( | KoGradientSegmentEndpointType | type | ) |
Definition at line 432 of file KoSegmentGradient.cpp.
References COLOR_ENDPOINT, m_end, m_hasVariableColors, m_start, and KoGradientSegmentEndpoint::type.
| void KoGradientSegment::setInterpolation | ( | int | interpolationType | ) |
Definition at line 525 of file KoSegmentGradient.cpp.
References KoGradientSegment::LinearInterpolationStrategy::instance(), KoGradientSegment::CurvedInterpolationStrategy::instance(), KoGradientSegment::SphereIncreasingInterpolationStrategy::instance(), KoGradientSegment::SphereDecreasingInterpolationStrategy::instance(), KoGradientSegment::SineInterpolationStrategy::instance(), INTERP_CURVED, INTERP_LINEAR, INTERP_SINE, INTERP_SPHERE_DECREASING, INTERP_SPHERE_INCREASING, and m_interpolator.
| void KoGradientSegment::setMiddleOffset | ( | qreal | t | ) |
Definition at line 453 of file KoSegmentGradient.cpp.
References m_length, m_middleOffset, m_middleT, m_start, and KoGradientSegmentEndpoint::offset.
Definition at line 75 of file KoSegmentGradient.h.
References BACKGROUND_ENDPOINT, BACKGROUND_TRANSPARENT_ENDPOINT, FOREGROUND_ENDPOINT, FOREGROUND_TRANSPARENT_ENDPOINT, and KoColor::setOpacity().
| void KoGradientSegment::setStartOffset | ( | qreal | t | ) |
Definition at line 442 of file KoSegmentGradient.cpp.
References m_end, m_length, m_middleOffset, m_middleT, m_start, and KoGradientSegmentEndpoint::offset.
| void KoGradientSegment::setStartType | ( | KoGradientSegmentEndpointType | type | ) |
Definition at line 422 of file KoSegmentGradient.cpp.
References COLOR_ENDPOINT, m_end, m_hasVariableColors, m_start, and KoGradientSegmentEndpoint::type.
| void KoGradientSegment::setVariableColors | ( | const KoColor & | foreground, |
| const KoColor & | background ) |
Definition at line 476 of file KoSegmentGradient.cpp.
References BACKGROUND_ENDPOINT, BACKGROUND_TRANSPARENT_ENDPOINT, KoGradientSegmentEndpoint::color, COLOR_ENDPOINT, FOREGROUND_ENDPOINT, FOREGROUND_TRANSPARENT_ENDPOINT, m_end, m_start, KoColor::setOpacity(), and KoGradientSegmentEndpoint::type.
| const KoColor & KoGradientSegment::startColor | ( | ) | const |
Definition at line 387 of file KoSegmentGradient.cpp.
References KoGradientSegmentEndpoint::color, and m_start.
| qreal KoGradientSegment::startOffset | ( | ) | const |
Definition at line 397 of file KoSegmentGradient.cpp.
References m_start, and KoGradientSegmentEndpoint::offset.
| KoGradientSegmentEndpointType KoGradientSegment::startType | ( | ) | const |
Definition at line 412 of file KoSegmentGradient.cpp.
References m_start, and KoGradientSegmentEndpoint::type.
|
private |
Definition at line 274 of file KoSegmentGradient.h.
|
private |
Definition at line 280 of file KoSegmentGradient.h.
|
private |
Definition at line 281 of file KoSegmentGradient.h.
|
private |
Definition at line 273 of file KoSegmentGradient.h.
|
private |
Definition at line 277 of file KoSegmentGradient.h.
|
private |
Definition at line 276 of file KoSegmentGradient.h.
|
private |
Definition at line 278 of file KoSegmentGradient.h.
|
private |
Definition at line 280 of file KoSegmentGradient.h.