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 Class Reference

A base class for a Stat Plot's plot modes. More...

#include <scatterplot.h>

Inheritance diagram for ScatterPlot:

Inheritance graph
[legend]
Collaboration diagram for ScatterPlot:

Collaboration graph
[legend]
List of all members.

Public Methods

 ScatterPlot (std::vector< double > &xlist, std::vector< double > &ylist, bool show, const QColor &color=QColor())
virtual ~ScatterPlot ()
virtual void drawPlot (QPainter *, int *, StatPlotGraph *graph, double xScale, double yScale)
 Draw the plot onto the given QPainter.

virtual void trace (double, double, double *, double *)
 Set where the pointer should be for tracing.

virtual std::string updateCoords (double, double)
 This returns a string that will be displayed to the user.

virtual void zoomStat (double *xmin, double *xmax, double *ymin, double *ymax)
 Set xmin, xmax, ymin, and ymax to the values the graph should have in order to zoom into the plot.


Detailed Description

A base class for a Stat Plot's plot modes.

Author:
Fungmeista

Definition at line 29 of file scatterplot.h.


Member Function Documentation

void ScatterPlot::drawPlot QPainter *   ,
int *   ,
StatPlotGraph   graph,
double    xScale,
double    yScale
[virtual]
 

Draw the plot onto the given QPainter.

The given parameters may or may not be necessary to draw this.

Implements PlotModule.

Definition at line 31 of file scatterplot.cpp.

void ScatterPlot::trace double   ,
double   ,
double *   ,
double *   
[virtual]
 

Set where the pointer should be for tracing.

The given x and y integers are where the mouse is hovering over. Set where the x and y coordinates of the mouse should be for tracing in the variables new_x and new_y.

Implements PlotModule.

Definition at line 46 of file scatterplot.cpp.

std::string ScatterPlot::updateCoords double   ,
double   
[virtual]
 

This returns a string that will be displayed to the user.

x and y are the current coordinates of the mouse.

Implements PlotModule.

Definition at line 51 of file scatterplot.cpp.


The documentation for this class was generated from the following files: