Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Export.h
Go to the documentation of this file.
1 /* Copyright (c) 2014-2015 "Omnidome" by cr8tr
2  * Dome Mapping Projection Software (http://omnido.me).
3  * Omnidome was created by Michael Winkelmann aka Wilston Oreo (@WilstonOreo)
4  *
5  * This file is part of Omnidome.
6  *
7  * Omnidome is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Affero General Public License for more details.
16  * You should have received a copy of the GNU Affero General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef OMNI_UI_EXPORT_H_
21 #define OMNI_UI_EXPORT_H_
22 
23 #include <memory>
24 #include <QWidget>
25 #include <omni/Session.h>
27 
28 namespace omni {
29  class Session;
30 
31  namespace ui {
32  namespace Ui {
33  class Export;
34  }
35 
36  class Export :
37  public QWidget,
38  public mixin::SharedDataModel<Session>{
39  Q_OBJECT
41 
42  public:
43  Export(QWidget * = nullptr);
44  ~Export();
45 
46  public slots:
47  void exportToFile();
48  void renderPreview();
49 
50  void selectPlainImage(bool);
51  void selectOmniCalibration(bool);
52  void getExportSettings();
53 
54  signals:
55  void dataModelChanged();
56 
57  private:
58  void dataToFrontend();
59  inline bool frontendToData() {
60  return false;
61  }
62 
63  void setup();
64 
65  std::unique_ptr<Ui::Export> ui_;
66  };
67  }
68 }
69 
70 #endif /* OMNI_UI_EXPORT_H_ */
void exportToFile()
Definition: Export.cpp:42
A session consists of a canvas, a mapping, a list of tunings and one or several inputs.
Definition: Session.h:41
#define OMNI_UI_SHARED_DATAMODEL(MODEL)
Definition: DataModel.h:216
Export(QWidget *=nullptr)
Definition: Export.cpp:32
bool frontendToData()
Return true if data has changed by front end.
Definition: Export.h:59
~Export()
Definition: Export.cpp:39
void getExportSettings()
Definition: Export.cpp:90
void renderPreview()
Definition: Export.cpp:85
void dataModelChanged()
void selectOmniCalibration(bool)
Definition: Export.cpp:154
Definition: Export.h:36
std::unique_ptr< Ui::Export > ui_
Definition: Export.h:65
void selectPlainImage(bool)
Definition: Export.cpp:148
Holds a specific data model with frontend update mechanism.
Definition: DataModel.h:87
void dataToFrontend()
Pure virtual method which determines how data model is represented in frontend.
Definition: Export.cpp:121
void setup()
Definition: Export.cpp:127