Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members Related Pages Search
PlotModule Class ReferenceA base class for a Stat Plot's plot modes.
More...
#include <plotmodule.h>
Inheritance diagram for PlotModule:
[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] |
|
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] |
|
The documentation for this class was generated from the following files:
|