00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 INLINE WindowItem::WindowItem(void) {}
00020
00021 INLINE WindowItem::WindowItem(const bool h, const bool d, const int o,
00022 const std::string& l, const SetupSyms& s,
00023 const int x, const int y, const bool b,
00024 const bool c, PTA(int) n) :
00025 _hw_chans(h), _dvr(d),
00026 _border(b), _cursor(c),
00027 _chan_offset(o), _sizeX(x),
00028 _sizeY(y), _layout(l),
00029 _setups(s),
00030 _camera_group(n) {}
00031
00032 INLINE WindowItem::WindowItem(const WindowItem& c) :
00033 _hw_chans(c._hw_chans),
00034 _dvr(c._dvr),
00035 _border(c._border),
00036 _cursor(c._cursor),
00037 _chan_offset(c._chan_offset),
00038 _sizeX(c._sizeX),
00039 _sizeY(c._sizeY),
00040 _layout(c._layout),
00041 _setups(c._setups),
00042 _camera_group(c._camera_group) {}
00043
00044 INLINE WindowItem::~WindowItem(void) {}
00045
00046 INLINE WindowItem& WindowItem::operator=(const WindowItem& c) {
00047 _hw_chans = c._hw_chans;
00048 _dvr = c._dvr;
00049 _border = c._border;
00050 _cursor = c._cursor;
00051 _chan_offset = c._chan_offset;
00052 _sizeX = c._sizeX;
00053 _sizeY = c._sizeY;
00054 _layout = c._layout;
00055 _setups = c._setups;
00056 _camera_group = c._camera_group;
00057 return *this;
00058 }
00059
00060 INLINE bool WindowItem::getHWChans(void) const {
00061 return _hw_chans;
00062 }
00063
00064 INLINE bool WindowItem::getDVR(void) const {
00065 return _dvr;
00066 }
00067
00068 INLINE bool WindowItem::getBorder(void) const {
00069 return _border;
00070 }
00071
00072 INLINE bool WindowItem::getCursor(void) const {
00073 return _cursor;
00074 }
00075
00076 INLINE int WindowItem::getChanOffset(void) const {
00077 return _chan_offset;
00078 }
00079
00080 INLINE int WindowItem::getSizeX(void) const {
00081 return _sizeX;
00082 }
00083
00084 INLINE int WindowItem::getSizeY(void) const {
00085 return _sizeY;
00086 }
00087
00088 INLINE std::string WindowItem::getLayout(void) const {
00089 return _layout;
00090 }
00091
00092 INLINE SetupSyms WindowItem::getSetups(void) const {
00093 return _setups;
00094 }
00095
00096 INLINE int WindowItem::getCameraGroup(int display_region) const {
00097 return _camera_group[display_region];
00098 }
00099 INLINE int WindowItem::getNumCameraGroups(void) const {
00100 int largestIndex=0;
00101 for(size_t j=0;j<_camera_group.size();j++)
00102 if(_camera_group[j]>largestIndex)largestIndex=_camera_group[j];
00103 return largestIndex+1;
00104 }