Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/chancfg/chanwindow.I

Go to the documentation of this file.
00001 // Filename: chanwindow.I
00002 // Created by:  cary (06Feb99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
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 }

Generated on Fri May 2 00:35:19 2003 for Panda by doxygen1.3