00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 INLINE SetupFOV::SetupFOV(void) : _type(Invalid),
00020 _horiz(0.0f),
00021 _vert(0.0f) {}
00022
00023 INLINE SetupFOV::SetupFOV(const SetupFOV& c) : _type(c._type),
00024 _horiz(c._horiz),
00025 _vert(c._vert) {}
00026
00027 INLINE SetupFOV::~SetupFOV(void) {}
00028
00029 INLINE SetupFOV& SetupFOV::operator=(const SetupFOV& c) {
00030 _type = c._type;
00031 _horiz = c._horiz;
00032 _vert = c._vert;
00033 return *this;
00034 }
00035
00036 INLINE void SetupFOV::setFOV(void) {
00037 _type = Default;
00038 }
00039
00040 INLINE void SetupFOV::setFOV(const float h) {
00041 _type = Horizontal;
00042 _horiz = h;
00043 }
00044
00045 INLINE void SetupFOV::setFOV(const float h, const float v) {
00046 _type = Both;
00047 _horiz = h;
00048 _vert = v;
00049 }
00050
00051 INLINE SetupFOV::FOVType SetupFOV::getType(void) const {
00052 return _type;
00053 }
00054
00055 INLINE float SetupFOV::getHoriz(void) const {
00056 return _horiz;
00057 }
00058
00059 INLINE float SetupFOV::getVert(void) const {
00060 return _vert;
00061 }
00062
00063 INLINE SetupItem::SetupItem(void) : _viewport(0., 1., 0., 1.) {}
00064
00065 INLINE SetupItem::SetupItem(const SetupItem& c) : _layouts(c._layouts),
00066 _setups(c._setups),
00067 _stereo(c._stereo),
00068 _hw_chan(c._hw_chan),
00069 _chan(c._chan),
00070 _viewport(c._viewport),
00071 _fov(c._fov),
00072 _orientation(c._orientation)
00073 {}
00074
00075 INLINE SetupItem::~SetupItem(void) {}
00076
00077 INLINE SetupItem& SetupItem::operator=(const SetupItem& c) {
00078 _layouts = c._layouts;
00079 _setups = c._setups;
00080 _stereo = c._stereo;
00081 _hw_chan = c._hw_chan;
00082 _chan = c._chan;
00083 _viewport = c._viewport;
00084 _fov = c._fov;
00085 _orientation = c._orientation;
00086 return *this;
00087 }
00088
00089 INLINE void SetupItem::setState(const bool st, const bool hw, const int pvc,
00090 const ChanViewport& v, const SetupFOV& f,
00091 const Orientation& o) {
00092 _stereo = st;
00093 _hw_chan = hw;
00094 _chan = pvc;
00095 _viewport = v;
00096 _fov = f;
00097 _orientation = o;
00098 }
00099
00100 INLINE SetupSyms SetupItem::getLayouts(void) const {
00101 return _layouts;
00102 }
00103
00104 INLINE SetupSyms SetupItem::getSetups(void) const {
00105 return _setups;
00106 }
00107
00108 INLINE bool SetupItem::getStereo(void) const {
00109 return _stereo;
00110 }
00111
00112 INLINE bool SetupItem::getHWChan(void) const {
00113 return _hw_chan;
00114 }
00115
00116 INLINE int SetupItem::getChan(void) const {
00117 return _chan;
00118 }
00119
00120 INLINE ChanViewport SetupItem::getViewport(void) const {
00121 return _viewport;
00122 }
00123
00124 INLINE SetupFOV SetupItem::getFOV(void) const {
00125 return _fov;
00126 }
00127
00128 INLINE SetupItem::Orientation SetupItem::getOrientation(void) const {
00129 return _orientation;
00130 }