Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

cameralist.h

Go to the documentation of this file.
00001 //--- < CAMERALIST.H > ----------| ViewGraph - A Flexible Graph view Framework |
00002 //
00003 // Cameralist holds a list of cameras in a 
00004 // first-on-top order (Z-Order)
00005 //
00006 // $Author: botik32 $
00007 // $Revision: 1.1.1.1 $
00008 // $Date: 2004/03/26 10:50:21 $
00009 //-----------------------------------------------------------------------------/
00010 
00011 #ifndef CAMERALIST_H
00012 #define CAMERALIST_H
00013 
00014 #include <list>
00015 #include <cZUI/surfacecamera.h>
00016 #include <cZUI/objectcamera.h>
00017 
00018 /// This class holds a list of cameras
00019 /// in the order of addition. Used by
00020 /// CameraFocus as storage.
00021 
00022 class CameraList
00023 {
00024 protected:
00025         std::list<Camera*> cameras;
00026 public:
00027         CameraList( );
00028     SurfaceCamera* add_surface_camera( int w, int h );
00029     SurfaceCamera* add_surface_camera( SurfaceCamera * );
00030     ObjectCamera* add_object_camera( int w, int h );
00031     void to_front( Camera * );
00032     void to_back( Camera * );
00033 
00034         std::list<Camera*>::const_iterator begin( void );
00035         std::list<Camera*>::const_iterator end( void );
00036         std::list<Camera*>::const_reverse_iterator rbegin( void );
00037         std::list<Camera*>::const_reverse_iterator rend( void );
00038 };
00039 
00040 #endif
00041 
00042 
00043 /// $Log: cameralist.h,v $
00044 /// Revision 1.1.1.1  2004/03/26 10:50:21  botik32
00045 /// Initial release
00046 ///
00047 /// Revision 1.1.1.1  2004/03/26 08:53:33  botik
00048 /// initial import
00049 ///
00050 ///
00051 /// Revision 1.3  2003/11/17 18:39:37  botik
00052 /// Added rectangle to surface driver.
00053 /// Sdxpsdl line and rectangle bugfixes
00054 ///
00055 /// Revision 1.2  2003/11/09 18:05:37  botik
00056 /// Contrib/borderlayer works! Fixed a lot of small bugs.
00057 ///
00058 /// Revision 1.1  2003/10/28 15:43:55  botik
00059 /// More work on event framework and camera composition and
00060 /// z-ordering
00061 ///
00062 

Generated on Wed Jun 23 18:47:21 2004 for cZUI by doxygen 1.3.5