Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CalibratedProjector.h
Go to the documentation of this file.
1 /* Copyright (c) 2014-2016 "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_RENDER_CALIBRATEDPROJECTOR_H_
21 #define OMNI_RENDER_CALIBRATEDPROJECTOR_H_
22 
23 #include <QRect>
24 #include <omni/RenderBuffer.h>
26 
27 namespace omni {
28  namespace render {
30  private:
32 
33  QImage toImage();
34 
35  RenderBuffer const& buffer() const;
36  QRect const & screenGeometry() const;
37  ColorCorrection colorCorrection() const;
38  bool virtualScreen() const;
39 
40  public:
41  template<typename PROJECTION, typename MODELVIEW>
42  static void renderToBuffer(RenderBuffer& _buffer,
43  PROJECTION _proj,
44  MODELVIEW _mv);
45 
48  ColorCorrection colorCorrection_;
50  };
51  }
52 }
53 
54 #endif /* OMNI_RENDER_CALIBRATEDPROJECTOR_H_ */
bool virtualScreen_
Definition: CalibratedProjector.h:46
ColorCorrection colorCorrection() const
RenderBuffer buffer_
Definition: CalibratedProjector.h:49
CalibratedProjector(proj::Tuning const *)
A projector tuning holds adjustment and distorsion data for a single projector and screen A tuning c...
Definition: Tuning.h:52
QRect screenGeometry_
Definition: CalibratedProjector.h:47
ColorCorrection colorCorrection_
Definition: CalibratedProjector.h:48
static void renderToBuffer(RenderBuffer &_buffer, PROJECTION _proj, MODELVIEW _mv)
Definition: CalibratedProjector.h:29
RenderBuffer const & buffer() const
QRect const & screenGeometry() const