File indexing completed on 2024-12-22 04:10:06

0001 /*
0002  *  SPDX-FileCopyrightText: 2008 Boudewijn Rempt <boud@valdyas.org>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "generator/kis_generator.h"
0008 
0009 #include <QString>
0010 
0011 #include "kis_bookmarked_configuration_manager.h"
0012 #include "filter/kis_filter_configuration.h"
0013 #include "kis_processing_information.h"
0014 #include "kis_paint_device.h"
0015 #include "kis_selection.h"
0016 #include "kis_types.h"
0017 
0018 
0019 KisGenerator::KisGenerator(const KoID& _id, const KoID & category, const QString & entry)
0020     : KisBaseProcessor(_id, category, entry)
0021 {
0022     init(id() + "_generator_bookmarks");
0023 }
0024 
0025 KisGenerator::~KisGenerator()
0026 {
0027 }
0028 
0029 void KisGenerator::generate(KisProcessingInformation dst,
0030                             const QSize& size,
0031                             const KisFilterConfigurationSP config
0032                            ) const
0033 {
0034     generate(dst, size, config, 0);
0035 }
0036 
0037 QRect KisGenerator::generatedRect(QRect _imageArea, const KisFilterConfigurationSP) const
0038 {
0039     return _imageArea;
0040 }