Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTangentTiltOptionData.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 KIS_TANGENTTILT_OPTION_DATA_H
7#define KIS_TANGENTTILT_OPTION_DATA_H
8
9
10#include "kis_types.h"
11#include <boost/operators.hpp>
12
14
21
22struct KisTangentTiltOptionData : boost::equality_comparable<KisTangentTiltOptionData>
23{
24 inline friend bool operator==(const KisTangentTiltOptionData &lhs, const KisTangentTiltOptionData &rhs) {
25 return lhs.redChannel == rhs.redChannel
26 && lhs.greenChannel == rhs.greenChannel
27 && lhs.blueChannel == rhs.blueChannel
28 && lhs.directionType == rhs.directionType
30 && qFuzzyCompare(lhs.mixValue, rhs.mixValue);
31 }
32
33 int redChannel {0};
34 int greenChannel {2};
35 int blueChannel {4};
37 double elevationSensitivity {100.0};
38 double mixValue {50.0};
39
40 bool read(const KisPropertiesConfiguration *setting);
41 void write(KisPropertiesConfiguration *setting) const;
42};
43
44#endif // KIS_TANGENTTILT_OPTION_DATA_H
static bool qFuzzyCompare(half p1, half p2)
bool read(const KisPropertiesConfiguration *setting)
void write(KisPropertiesConfiguration *setting) const
friend bool operator==(const KisTangentTiltOptionData &lhs, const KisTangentTiltOptionData &rhs)
TangentTiltDirectionType directionType