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  

scatterplot.h

00001 /***************************************************************************
00002                           scatterplot.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 SCATTERPLOT_H
00019 #define SCATTERPLOT_H
00020 
00021 #include "plotmodule.h"
00022 
00023 #include <vector>
00024 
00029 class ScatterPlot : public PlotModule
00030 {
00031     public: 
00032         ScatterPlot(std::vector<double> & xlist, std::vector<double> & ylist, bool show, const QColor & color = QColor());
00033         virtual ~ScatterPlot(){}
00034         //bool operator==(const ScatterPlot &);
00035 
00036         virtual void drawPlot( QPainter *, int *, StatPlotGraph *graph, double xScale, double yScale );
00037         virtual void trace( double, double, double *, double * );
00038         virtual std::string updateCoords( double, double );
00039 
00040         virtual void zoomStat( double *xmin, double *xmax, double *ymin, double *ymax );
00041 
00042     private:
00043         std::vector<double> _xlist;
00044         std::vector<double> _ylist;
00045 
00046         static const int SCATTERWIDTH = 5;
00047         static const int SCATTERHEIGHT = 5;
00048 
00049 };
00050 
00051 #endif