Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
839 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2021 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KISINTERSTROKEDATAFACTORY_H
#define KISINTERSTROKEDATAFACTORY_H

#include "kritaimage_export.h"
#include "kis_types.h"

class KisInterstrokeData;

/**
 * A factory class for creation KisInterstrokeData by paint tools
 *
 * The main purpose for the factory is to check if the currently
 * attached interstroke data is compatible with the current tool
 * and replace it with the new one if needed.
 *
 * \see KisInterstrokeData
 */
class KRITAIMAGE_EXPORT KisInterstrokeDataFactory
{
public:
    virtual ~KisInterstrokeDataFactory();

    virtual bool isCompatible(KisInterstrokeData *data) = 0;
    virtual KisInterstrokeData* create(KisPaintDeviceSP device) = 0;
};

#endif // KISINTERSTROKEDATAFACTORY_H