Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MappingParameters.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_MAPPINGPARAMETERS_H_
21 #define OMNI_UI_MAPPINGPARAMETERS_H_
22 
23 #include <omni/mapping/Interface.h>
26 
27 namespace omni
28 {
29  namespace ui
30  {
31  /**@brief Parameter widget for getting and setting mapping parameters
32  **/
34  public ParameterWidget,
35  public mixin::UnsharedDataModel<mapping::Interface>
36  {
37  Q_OBJECT
39 
40  public:
41  MappingParameters(QWidget* _parent = nullptr);
43 
44  signals:
45  void dataModelChanged();
46  protected:
47  virtual void dataToFrontend();
48 
49  /// Return true if data has changed by front end
50  virtual bool frontendToData();
51 
52  /// Add flip and bound to canvas parameters
53  void addDefaultParameters();
54 
56  };
57  }
58 }
59 
60 
61 #endif /* OMNI_UI_MAPPINGPARAMETERS_H_ */
void addDefaultParameters()
Add flip and bound to canvas parameters.
~MappingParameters()
Definition: MappingParameters.cpp:37
virtual bool frontendToData()
Return true if data has changed by front end.
Definition: MappingParameters.cpp:52
A widget for editing an affine transformation.
Definition: AffineTransform.h:37
A widget which holds sub-widgets for manipulating parameters.
Definition: ParameterWidget.h:37
omni::ui::AffineTransform * transform_
Definition: MappingParameters.h:55
#define OMNI_UI_UNSHARED_DATAMODEL(MODEL)
Definition: DataModel.h:219
Holds a specific data model with frontend update mechanism.
Definition: DataModel.h:87
virtual void dataToFrontend()
Pure virtual method which determines how data model is represented in frontend.
Definition: MappingParameters.cpp:41
Mapping interface with one or several inputs and shader Holds inputs and shader. ...
Definition: Interface.h:54
MappingParameters(QWidget *_parent=nullptr)
Definition: MappingParameters.cpp:26
Parameter widget for getting and setting mapping parameters.
Definition: MappingParameters.h:33