File indexing completed on 2025-01-05 03:53:10
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2012-12-05 0007 * Description : a tool to create panorama by fusion of several images. 0008 * 0009 * SPDX-FileCopyrightText: 2012-2015 by Benjamin Girault <benjamin dot girault at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_CREATE_FINAL_PTO_TASK_H 0016 #define DIGIKAM_CREATE_FINAL_PTO_TASK_H 0017 0018 // Qt includes 0019 0020 #include <QSharedPointer> 0021 0022 // Local includes 0023 0024 #include "panotask.h" 0025 #include "ptotype.h" 0026 0027 using namespace Digikam; 0028 0029 namespace DigikamGenericPanoramaPlugin 0030 { 0031 0032 class CreateFinalPtoTask : public PanoTask 0033 { 0034 public: 0035 0036 explicit CreateFinalPtoTask(const QString& workDirPath, 0037 QSharedPointer<const PTOType> ptoData, 0038 QUrl& finalPtoUrl, 0039 const QRect& crop); 0040 ~CreateFinalPtoTask() override; 0041 0042 protected: 0043 0044 void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override; 0045 0046 private: 0047 0048 PTOType ptoData; 0049 QUrl& finalPtoUrl; 0050 const QRect crop; 0051 0052 private: 0053 0054 // Disable 0055 CreateFinalPtoTask() = delete; 0056 0057 Q_DISABLE_COPY(CreateFinalPtoTask) 0058 }; 0059 0060 } // namespace DigikamGenericPanoramaPlugin 0061 0062 #endif // DIGIKAM_CREATE_FINAL_PTO_TASK_H