Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FreeSetup.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_PROJ_FREESETUP_H_
21 #define OMNI_PROJ_FREESETUP_H_
22 
23 #include <QVector3D>
24 #include "AngleSetup.h"
25 
26 namespace omni {
27  namespace proj {
28  /// Free projector setup with euler angles and positioning
29  class FreeSetup :
30  public AngleSetup {
31  public:
33 
34  FreeSetup();
35 
36  /// Setup projector with scene size
37  void setup(Projector&);
38 
39  void toPropertyMap(PropertyMap&) const;
40  void fromPropertyMap(PropertyMap const&);
41 
42  /// Return projector position
43  QVector3D pos() const;
44 
45  /// Set position from QVector3D
46  void setPos(QVector3D const&);
47 
48  /// Set position from x,y,z position values
49  void setPos(float _x,
50  float _y,
51  float _z);
52 
53  /// Scale by factor
54  void scale(qreal);
55  private:
56  QVector3D pos_;
57  };
58  }
59 }
60 
61 #endif /* OMNI_PROJ_FREESETUP_H_ */
A projector with a transformation matrix and setup.
Definition: Projector.h:32
FreeSetup()
Definition: FreeSetup.cpp:29
QVector3D pos_
Definition: FreeSetup.h:56
void fromPropertyMap(PropertyMap const &)
Definition: FreeSetup.cpp:40
void setup(Projector &)
Setup projector with scene size.
Definition: FreeSetup.cpp:46
Basic projector setup with three euler angles and no positioning offsets.
Definition: AngleSetup.h:29
Free projector setup with euler angles and positioning.
Definition: FreeSetup.h:29
#define OMNI_REGISTER_CLASS(FACTORY, CLASS_NAME)
Definition: TypeIdInterface.h:43
void scale(qreal)
Scale by factor.
Definition: FreeSetup.cpp:69
QVector3D pos() const
Return projector position.
Definition: FreeSetup.cpp:54
void toPropertyMap(PropertyMap &) const
Definition: FreeSetup.cpp:34
void setPos(QVector3D const &)
Set position from QVector3D.
Definition: FreeSetup.cpp:59
The central factory class.
Definition: factory.hpp:38