kis_onion_skin_compositor.h 1.45 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*
 *  Copyright (c) 2015 Jouni Pentikäinen <joupent@gmail.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#ifndef KIS_ONION_SKIN_COMPOSITOR_H
#define KIS_ONION_SKIN_COMPOSITOR_H

#include "kis_types.h"

24
class KRITAIMAGE_EXPORT KisOnionSkinCompositor : public QObject
25 26 27 28
{
    Q_OBJECT

public:
Dmitry Kazakov's avatar
Dmitry Kazakov committed
29 30
    KisOnionSkinCompositor();
    ~KisOnionSkinCompositor();
31 32 33 34
    static KisOnionSkinCompositor *instance();

    void composite(const KisPaintDeviceSP sourceDevice, KisPaintDeviceSP targetDevice, const QRect &rect);

35
    QRect calculateFullExtent(const KisPaintDeviceSP device);
36 37
    QRect calculateExtent(const KisPaintDeviceSP device);

38
public Q_SLOTS:
39 40
    void configChanged();

41 42 43
Q_SIGNALS:
    void sigOnionSkinChanged();

44 45
private:
    struct Private;
Jouni Pentikäinen's avatar
Jouni Pentikäinen committed
46
    QScopedPointer<Private> m_d;
47 48 49 50

};

#endif