File indexing completed on 2024-05-12 05:46:46

0001 /*
0002  *  Copyright (c) 2014 Boudewijn Rempt <boud@valdyas.org>
0003  *  Copyright (c) 2017 Victor Wåhlström <victor.wahlstrom@initiali.se>
0004  *
0005  *  This library is free software; you can redistribute it and/or modify
0006  *  it under the terms of the GNU Lesser General Public License as published by
0007  *  the Free Software Foundation; version 2 of the License, or
0008  *  (at your option) any later version.
0009  *
0010  *  This library is distributed in the hope that it will be useful,
0011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013  *  GNU Lesser General Public License for more details.
0014  *
0015  *  You should have received a copy of the GNU Lesser General Public License
0016  *  along with this program; if not, write to the Free Software
0017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018  * Boston, MA 02110-1301, USA.
0019  */
0020 
0021 #ifndef _KIS_HeightMap_EXPORT_H_
0022 #define _KIS_HeightMap_EXPORT_H_
0023 
0024 #include <QVariant>
0025 
0026 #include <KisImportExportFilter.h>
0027 #include <kis_config_widget.h>
0028 
0029 class KisHeightMapExport : public KisImportExportFilter
0030 {
0031     Q_OBJECT
0032 public:
0033     KisHeightMapExport(QObject *parent, const QVariantList &);
0034     ~KisHeightMapExport() override;
0035     KisPropertiesConfigurationSP defaultConfiguration(const QByteArray& from = "", const QByteArray& to = "") const override;
0036     KisConfigWidget *createConfigurationWidget(QWidget *parent, const QByteArray& from = "", const QByteArray& to = "") const override;
0037     void initializeCapabilities() override;
0038     
0039     KisImportExportErrorCode convert(KisDocument *document, QIODevice *io,  KisPropertiesConfigurationSP configuration = 0) override;
0040 };
0041 
0042 #endif