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

visualization/SMeshTopViewEl.h

Go to the documentation of this file.
00001 /* #start# ***********************************************************
00002 
00003                              Scheduling Simulator
00004                     Lehrstuhl f"ur Effiziente Algorithmen
00005                        Technische Universit"at M"unchen
00006 
00007  File    : $Id: SMeshTopViewEl.h,v 1.4 2003/01/08 18:57:15 meierb Exp $
00008 
00009  Purpose : 
00010 
00011  RCS-Log:
00012  $Log: SMeshTopViewEl.h,v $
00013  Revision 1.4  2003/01/08 18:57:15  meierb
00014  added randomized release times
00015 
00016  Revision 1.1.1.1  2002/12/02 22:26:19  meierb
00017  my_schedule
00018 
00019  Revision 1.2  2002/11/11 16:19:36  taeubig
00020  changes in header inclusion
00021 
00022  Revision 1.1  2002/08/29 12:59:59  taeubig
00023  Added the sources
00024 
00025  Revision 1.3  2000/08/22 17:04:36  hall
00026  changed painting (mesh + gantt) ... nicer :-)
00027 
00028  Revision 1.2  2000/06/07 11:39:25  taeubig
00029  Updated for new MeshView
00030 
00031  Revision 1.1  2000/02/22 11:58:47  hall
00032  new visulization model
00033 
00034 
00035  * #end# ************************************************************* */
00036 
00037 #ifndef SMESHTOPVIEWEL_H
00038 #define SMESHTOPVIEWEL_H
00039 
00040 // system header files
00041 
00042 // project header files
00043 #include "STopViewEl.h"
00044 #include "SJobViewEl.h"
00045 #include "../model/SMachines.h"
00046 #include "../model/topos/SMeshTopology.h"
00047 #include "../logging/SGanttLog.h"
00048 
00049 class SMeshTopViewEl : public STopViewEl {
00050 public:
00051   SMeshTopViewEl(SJobViewEl &proto, SMeshTopology &top);
00052   SMeshTopViewEl(SJobViewEl &proto, SMeshTopology &top, STaskSystem &ts);
00053 
00054   virtual void paint( QPaintDevice *pd, QRect rect );
00055   void load();
00056   QRegion getRegion() ;
00057 
00058 protected:
00059   virtual void update( const class SEvent & );
00060 
00061 private:
00062   SMeshTopology &_top;
00063 
00064   SGanttLog *_pGanttLog;
00065 
00066   // height and width of the mesh
00067   int _machines_h;
00068   int _machines_w;
00069 
00070   int _x;
00071   int _y;
00072   int _w;
00073   int _h;
00074   int _minH;
00075   int _minW;
00076   bool _resetNeeded;
00077   QFont _myFont;  
00078 
00079   void init();
00080 
00081   void paintChart( QPaintDevice *pd, QRect rect );
00082   void paintBackground( QPaintDevice *pd, QRect rect );
00083 };
00084 
00085 
00086 #endif

Generated on Thu May 22 16:48:09 2003 for Sketch-it! by doxygen1.2.18