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  

PlotModule Class Reference

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

#include <plotmodule.h>

Inheritance diagram for PlotModule:

Inheritance graph
[legend]
List of all members.

Public Methods

 PlotModule (bool, const QColor &)
 Pass the PlotModule constructor whether or not the graph is visible and its color.

virtual void drawPlot (QPainter *p, int *, StatPlotGraph *graph, double xScale, double yScale)=0
 Draw the plot onto the given QPainter.

virtual void trace (double x, double y, double *new_x, double *new_y)=0
 Set where the pointer should be for tracing.

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

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

void setVisible (bool show)
 Hides or shows this plot.

bool show () const
 Whether or not the graph is being shown.

QColor color () const
 The color of this plot.


Protected Methods

int toPixelXCoord (StatPlotGraph *s, double d)
int toPixelYCoord (StatPlotGraph *s, double d)

Detailed Description

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

Author:
Fungmeista

Definition at line 32 of file plotmodule.h.


Member Function Documentation

virtual void PlotModule::drawPlot QPainter *    p,
int *   ,
StatPlotGraph   graph,
double    xScale,
double    yScale
[pure virtual]
 

Draw the plot onto the given QPainter.

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

Implemented in FrequencyPlot, ScatterPlot, and WhiskerPlot.

virtual void PlotModule::trace double    x,
double    y,
double *    new_x,
double *    new_y
[pure 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.

Implemented in FrequencyPlot, ScatterPlot, and WhiskerPlot.

virtual std::string PlotModule::updateCoords double    x,
double    y
[pure virtual]
 

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

x and y are the current coordinates of the mouse.

Implemented in FrequencyPlot, ScatterPlot, and WhiskerPlot.


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