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  

FrequencyPlot Class Reference

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

#include <frequencyplot.h>

Inheritance diagram for FrequencyPlot:

Inheritance graph
[legend]
Collaboration diagram for FrequencyPlot:

Collaboration graph
[legend]
List of all members.

Public Methods

 FrequencyPlot (std::vector< double > &xlist, int classes, bool show, const QColor &color)
virtual ~FrequencyPlot ()
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 frequencyplot.h.


Member Function Documentation

void FrequencyPlot::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 56 of file frequencyplot.cpp.

References PlotModule::color().

void FrequencyPlot::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 81 of file frequencyplot.cpp.

std::string FrequencyPlot::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 104 of file frequencyplot.cpp.


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