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

panda/src/chancfg/chanwindow.h

Go to the documentation of this file.
00001 // Filename: chanwindow.h
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 #ifndef __CHANWINDOW_H__
00020 #define __CHANWINDOW_H__
00021 
00022 #include <pandabase.h>
00023 
00024 #include "pmap.h"
00025 #include "pvector.h"
00026 #include <string>
00027 #include "chansetup.h"
00028 #include <pta_int.h>
00029 
00030 class WindowItem {
00031 private:
00032   bool _hw_chans, _dvr, _border, _cursor;
00033   int _chan_offset, _sizeX, _sizeY;
00034   std::string _layout;
00035   SetupSyms _setups;
00036   PTA(int) _camera_group;
00037 public:
00038   INLINE WindowItem(void);
00039   INLINE WindowItem(const bool, const bool, const int, const std::string&,
00040                     const SetupSyms&, const int, const int, const bool,
00041                     const bool, PTA(int) );
00042   INLINE WindowItem(const WindowItem&);
00043   INLINE ~WindowItem(void);
00044 
00045   INLINE WindowItem& operator=(const WindowItem&);
00046 
00047   INLINE bool getHWChans(void) const;
00048   INLINE bool getDVR(void) const;
00049   INLINE bool getBorder(void) const;
00050   INLINE bool getCursor(void) const;
00051   INLINE int getChanOffset(void) const;
00052   INLINE int getSizeX(void) const;
00053   INLINE int getSizeY(void) const;
00054   INLINE std::string getLayout(void) const;
00055   INLINE SetupSyms getSetups(void) const;
00056   INLINE int getCameraGroup(int display_region) const;
00057   INLINE int getNumCameraGroups(void) const;
00058 };
00059 
00060 typedef pmap<std::string, WindowItem> WindowType;
00061 
00062 extern WindowType* WindowDB;
00063 
00064 void ResetWindow();
00065 void ParseWindow(istream&);
00066 
00067 #include "chanwindow.I"
00068 
00069 #endif /* __CHANWINDOW_H__ */

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