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

panda/src/chancfg/chanlayout.I

Go to the documentation of this file.
00001 // Filename: chanlayout.I
00002 // Created by:  cary (04Feb99)
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 LayoutItem::LayoutItem(void) {}
00020 
00021 INLINE LayoutItem::LayoutItem(int x, int y) : _x(x), _y(y) {}
00022 
00023 INLINE LayoutItem::LayoutItem(const LayoutItem& c) : _x(c._x), _y(c._y),
00024                                                      _regions(c._regions) {}
00025 
00026 INLINE LayoutItem::~LayoutItem(void) {}
00027 
00028 INLINE LayoutItem& LayoutItem::operator=(const LayoutItem& c) {
00029   _x = c._x;
00030   _y = c._y;
00031   _regions = c._regions;
00032   return *this;
00033 }
00034 
00035 INLINE void LayoutItem::AddRegion(const ChanViewport& r) {
00036   _regions.push_back(r);
00037 }
00038 
00039 INLINE int LayoutItem::GetNumRegions(void) {
00040   return _regions.size();
00041 }
00042 
00043 INLINE const ChanViewport& LayoutItem::operator[](int i) {
00044   return _regions[i];
00045 }

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