• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

fitshistogram.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           fitshistogram.h  -  FITS Historgram
00003                           ---------------
00004     begin                : Thu Mar 4th 2004
00005     copyright            : (C) 2004 by Jasem Mutlaq
00006     email                : mutlaqja@ikarustech.com
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 FITSHISTOGRAM
00019  #define FITSHISTOGRAM
00020  
00021  #include "histdialog.h"
00022  #include <kcommand.h>
00023  
00024  #define BARS 500
00025  
00026  class FITSViewer;
00027  class QPixmap;
00028  
00029  class FITSHistogram : public histDialog
00030  {
00031    Q_OBJECT
00032    
00033    public:
00034     FITSHistogram(QWidget *parent, const char * name = 0);
00035     ~FITSHistogram();
00036     
00037     void constructHistogram(float *buffer);
00038     int  findMax();
00039     int type;
00040     int napply;
00041     
00042     private:
00043     int histArray[BARS]; 
00044     double binSize;
00045 
00046     FITSViewer * viewer;
00047     QPixmap *histogram;
00048        
00049     
00050     protected:
00051     void paintEvent( QPaintEvent *e);
00052     void mouseMoveEvent( QMouseEvent *e);
00053     
00054     
00055     public slots:
00056     void applyScale();
00057     void updateBoxes();
00058     void updateIntenFreq(int x);
00059     
00060     
00061  };
00062  
00063  class FITSHistogramCommand : public KCommand
00064 {
00065   public:
00066         FITSHistogramCommand(QWidget * parent, FITSHistogram *inHisto, int newType, int lmin, int lmax);
00067     ~FITSHistogramCommand();
00068             
00069         void execute();
00070         void unexecute();
00071         QString name() const;
00072 
00073     
00074     private:
00075         FITSHistogram *histo;
00076         int type;
00077     int min, max;
00078     float *buffer;
00079         FITSViewer *viewer;
00080     QImage *oldImage;
00081 };
00082  
00083  
00084  #endif
00085  
00086 
00087   

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal