fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/FEdata/cursessltpattern.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           cursessltpattern.h  -  description
00003                              -------------------
00004     begin                : Tue Jul 23 2002
00005     copyright            : (C) 2002 by Andreas Kopmann
00006     email                : kopmann@ipe.fzk.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef CURSESSLTPATTERN_H
00019 #define CURSESSLTPATTERN_H
00020 
00021 #include <ncurses.h>
00022 #include <ctype.h>
00023 
00024 #include <Hw/SltPattern.h>
00025 
00026 
00027 
00033 class CursesSltPattern : public SltPattern  {
00034 public: 
00035         CursesSltPattern();
00036         ~CursesSltPattern();
00037 
00038 
00040   int getRow();
00041 
00043   int getCol();
00044 
00046   int getFirstTimeBin();
00047 
00049   int setFirstTimeBin(int bin);
00050 
00051   void display(WINDOW *win, unsigned long *mem, int n, int iFirst=0);
00052 
00053   void display(unsigned long *mem, int n, int iFirst=0);
00054 
00056   void moveToPixel(WINDOW *win);
00057 
00059   void moveToCoordinate(WINDOW *win, int x, int y);
00060 
00070   void handleKeyEvent(WINDOW *win, int key, bool focus=true);
00071 
00081   void explore(unsigned long *mem, int n, int iFirst=0);
00082 
00095   void displaySkyFit(WINDOW *win, double phi0, double dphi);
00096 
00098   void setFixColumnMode(bool mode);
00099 
00100 private:
00101 
00102   // Parameters for GUI
00103   WINDOW *win;
00104 
00105   int col;
00106   int row;
00107   int dig;
00108   int inc;
00109 
00111   int kMin;
00113   int maxBins;
00114 
00121   bool fixColumn;
00122   
00123 };
00124 
00125 #endif