digiKam
optimisationtask.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2012-03-15
7  * Description : a tool to create panorama by fusion of several images.
8  *
9  * Copyright (C) 2012-2015 by Benjamin Girault <benjamin dot girault at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_OPTIMISATION_TASK_H
24 #define DIGIKAM_OPTIMISATION_TASK_H
25 
26 // Local includes
27 
28 #include "commandtask.h"
29 
31 {
32 
34 {
35 public:
36 
37  explicit OptimisationTask(const QString& workDirPath,
38  const QUrl& input,
39  QUrl& autoOptimiserPtoUrl,
40  bool levelHorizon,
41  bool gPano,
42  const QString& autooptimiserPath);
43  ~OptimisationTask() override;
44 
45 protected:
46 
47  void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
48 
49 private:
50 
51  QUrl& autoOptimiserPtoUrl;
52  const QUrl& ptoUrl;
53  const bool levelHorizon;
54  const bool buildGPano;
55 
56 private:
57 
58  // Disable
59  OptimisationTask() = delete;
60 
61  Q_DISABLE_COPY(OptimisationTask)
62 };
63 
64 } // namespace DigikamGenericPanoramaPlugin
65 
66 #endif // DIGIKAM_OPTIMISATION_TASK_H
Definition: commandtask.h:38
Definition: optimisationtask.h:34
~OptimisationTask() override
Definition: optimisationtask.cpp:43
void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override
Definition: optimisationtask.cpp:47
Definition: panoactions.h:36