File indexing completed on 2025-02-02 04:11:07
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "shape.hpp" 0010 0011 namespace glaxnimate::model { 0012 0013 /** 0014 * \brief Base class for modifiers than only alter the bezier points 0015 */ 0016 class PathModifier : public Modifier 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 using Modifier::Modifier; 0022 0023 std::unique_ptr<ShapeElement> to_path() const override; 0024 0025 protected: 0026 void on_paint(QPainter* painter, FrameTime t, PaintMode mode, model::Modifier* modifier) const override; 0027 0028 }; 0029 0030 } // namespace glaxnimate::model