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 KISDYNAMICSENSORTIME_H 0007 #define KISDYNAMICSENSORTIME_H 0008 0009 #include "KisDynamicSensor.h" 0010 0011 struct KisSensorWithLengthData; 0012 0013 class KisDynamicSensorTime : public KisDynamicSensor 0014 { 0015 public: 0016 KisDynamicSensorTime(const KisSensorWithLengthData &data, std::optional<KisCubicCurve> curveOverride); 0017 0018 qreal value(const KisPaintInformation &pi) const override; 0019 0020 private: 0021 bool m_periodic; 0022 int m_length; 0023 }; 0024 0025 #endif // KISDYNAMICSENSORTIME_H