Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CalibrationMode.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 #ifndef OMNI_PROJ_CALIBRATIONMODE_H_
20 #define OMNI_PROJ_CALIBRATIONMODE_H_
21 
23 #include <omni/mapping/Interface.h>
24 
25 namespace omni {
26  namespace proj {
27  /// Defines which type of data is in a calibration
28  enum class CalibrationMode {
30  };
31 
33  CalibrationMode _calibMode) {
34  switch (_calibMode) {
35  default:
42  }
43  // Return texcoords by default
45  }
46 
47  inline static int imageHeightMultiplier(CalibrationMode _calibMode) {
48  switch (_calibMode) {
49  default:
51  return 2;
53  return 3;
55  return 1;
56  }
57  return 2;
58  }
59  }
60 
62 }
63 
65 
66 #endif /* OMNI_PROJ_CALIBRATIONMODE_H_ */
#define OMNI_DECL_ENUM_STREAM_OPERATORS(ENUM)
Definition: Interface.h:65
CalibrationMode
Defines which type of data is in a calibration.
Definition: CalibrationMode.h:28
static mapping::OutputMode calibrationModeToMappingOutputMode(CalibrationMode _calibMode)
Definition: CalibrationMode.h:32
OutputMode
Definition: Interface.h:42
static int imageHeightMultiplier(CalibrationMode _calibMode)
Definition: CalibrationMode.h:47