Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

whiskerplot.h

00001 /***************************************************************************
00002                           whiskerplot.h  -  description
00003                              -------------------
00004     begin                : Sun May 11 2003
00005     copyright            : (C) 2003 by Fungmeista
00006     email                : mizunoami44@users.sourceforge.net
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 WHISKERPLOT_H
00019 #define WHISKERPLOT_H
00020 
00021 #include "plotmodule.h"
00022 
00023 #include <vector>
00024 
00025 #include <qcolor.h>
00026 
00031 class WhiskerPlot : public PlotModule
00032 {
00033     public: 
00034         WhiskerPlot(std::vector<double> & xlist, bool show, const QColor & color);
00035         virtual ~WhiskerPlot(){}
00036 
00037         virtual void drawPlot( QPainter *, int *, StatPlotGraph *graph, double xScale, double yScale );
00038         virtual void trace( double, double, double *, double * );
00039         virtual std::string updateCoords( double, double );
00040 
00041         virtual void zoomStat( double *xmin, double *xmax, double *ymin, double *ymax );
00042 
00043     private:
00044         double _min;
00045         double _max;
00046         double _median;
00047         double _first_quartile;
00048         double _third_quartile;
00049 
00050         int _vertical;
00051 
00052         std::vector<double> _xlist;
00053 
00054         static const int boxAndWhiskerHeight = 2;
00055 
00056 };
00057 
00058 #endif