Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTangentTiltOption.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef KISTANGENTTILT_OPTION_H
7#define KISTANGENTTILT_OPTION_H
8
11
13
15{
16public:
18
19 /*This assigns the right axis to the component, based on index and maximum value*/
20 void swizzleAssign(qreal const horizontal, qreal const vertical, qreal const depth, qreal *component, int index, qreal maxvalue);
21
22 //takes the RGB values and will deform them depending on tilt.
23 void apply(const KisPaintInformation& info, qreal *r, qreal *g, qreal *b);
24
25private:
27private:
33 double m_mixValue;
34};
35
36#endif // KISTANGENTILT_OPTION_H
void swizzleAssign(qreal const horizontal, qreal const vertical, qreal const depth, qreal *component, int index, qreal maxvalue)
KisTangentTiltOption(const KisPropertiesConfiguration *setting)
TangentTiltDirectionType m_directionType
void apply(const KisPaintInformation &info, qreal *r, qreal *g, qreal *b)