File indexing completed on 2024-09-22 04:08:31

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KISDYNAMICSENSORDRAWINGANGLE_H
0007 #define KISDYNAMICSENSORDRAWINGANGLE_H
0008 
0009 #include "KisDynamicSensor.h"
0010 
0011 struct KisDrawingAngleSensorData;
0012 
0013 class KisDynamicSensorDrawingAngle : public KisDynamicSensor
0014 {
0015 public:
0016     KisDynamicSensorDrawingAngle(const KisDrawingAngleSensorData &data, std::optional<KisCubicCurve> curveOverride);
0017 
0018     qreal value(const KisPaintInformation& info) const override;
0019     bool isAbsoluteRotation() const override;
0020 
0021 private:
0022     const bool m_lockedAngleMode;
0023     const int m_angleOffset;
0024 };
0025 
0026 #endif // KISDYNAMICSENSORDRAWINGANGLE_H