#include <omggraph.h>
Collaboration diagram for OmgGraph:
Definition at line 32 of file omggraph.h.
Public Member Functions | |
OmgGraph (QPainter *thepPainter) | |
virtual | ~OmgGraph () |
void | render () |
void | addSeries (OmgDataSeries) |
bool | removeSeriesAt (int theSeriesNo) |
int | seriesCount () const |
void | clear (QColor theColour=Qt::white) |
void | setAxisFont (QFont theFont) |
void | setLegendFont (QFont theFont) |
void | setVertexLabelFont (QFont theFont) |
void | setGridLinesEnabled (bool theFlag=true) |
bool | hasGridLinesEnabled () |
void | setVerticesEnabled (bool theFlag=true) |
bool | hasVerticesEnabled () |
void | setVertexLabelsEnabled (bool theFlag=true) |
bool | hasVertexLabelsEnabled () |
void | setDiagonalEnabled (bool theFlag=true) |
bool | hasDiagonalEnabled () |
void | setSpliningEnabled (bool theFlag=true) |
bool | hasSpliningEnabled () |
void | setAreaFillEnabled (bool theFlag=true) |
bool | hasAreaFillEnabled () |
Private Member Functions | |
OmgGraph () | |
void | drawHighlight (QPointF theTopLeftPoint, QPointF theBottomRightPoint) |
void | initialise () |
QLinearGradient | greenGradient () |
QLinearGradient | redGradient () |
QLinearGradient | blueGradient () |
QLinearGradient | grayGradient () |
QLinearGradient | customGradient (QColor theColour) |
QLinearGradient | randomGradient () |
QLinearGradient | highlightGradient () |
void | drawAxes () |
void | drawDiagonal () |
void | makeLegend () |
void | calculateGutters () |
void | calculateLegendHeight () |
Private Attributes | |
qreal | mGradientHeight |
qreal | mGradientWidth |
QPainter * | mpPainter |
QList< OmgDataSeries > | mSeriesList |
int | mImageHeight |
int | mImageWidth |
int | mGraphImageWidth |
int | mGraphImageHeight |
float | mXAxisMin |
float | mXAxisMax |
int | mXGutterWidth |
int | mXGutterHeight |
int | mLegendHeight |
float | mYAxisMin |
float | mYAxisMax |
int | mYGutterWidth |
int | mYGutterHeight |
QFont | mAxisFont |
QFont | mLegendFont |
QFont | mVertexLabelFont |
bool | mGridLinesFlag |
bool | mShowVerticesFlag |
bool | mDrawDiagonal |
bool | mShowVertexLabelsFlag |
bool | mSplinePointsFlag |
bool | mAreaFillFlag |
|
Constructor . Definition at line 28 of file omggraph.cpp. References initialise(), and mpPainter. |
Here is the call graph for this function:
|
Desctructor . Definition at line 37 of file omggraph.cpp. |
|
Definition at line 34 of file omggraph.cpp. |
|
Used to add a new series to the chart Definition at line 134 of file omggraph.cpp. References mSeriesList. Referenced by OmgModel::createRocGraph(), OmgExperiment::summaryMapToGraph(), OmgGraphTest::testRemoveSeries(), OmgGraphTest::testRenderGraph(), and OmgModel::toHtml(). |
|
Definition at line 479 of file omggraph.cpp. References mGradientHeight, and mGradientWidth. |
|
Definition at line 601 of file omggraph.cpp. References mXAxisMax, mXAxisMin, mXGutterHeight, mXGutterWidth, mYAxisMax, and mYGutterWidth. Referenced by render(). |
|
Definition at line 701 of file omggraph.cpp. References OmgDataSeries::label(), mImageWidth, mLegendFont, mLegendHeight, and mSeriesList. Referenced by render(). |
Here is the call graph for this function:
|
Clear the graph by painting onto it with a solid colour
Definition at line 129 of file omggraph.cpp. References mImageHeight, mImageWidth, and mpPainter. Referenced by OmgExperiment::summaryMapToGraph(), and OmgGraphTest::testRenderGraph(). |
|
Definition at line 507 of file omggraph.cpp. References mGradientHeight, and mGradientWidth. Referenced by render(). |
|
Definition at line 531 of file omggraph.cpp. References mAxisFont, mGraphImageHeight, mGraphImageWidth, mGridLinesFlag, mImageHeight, mImageWidth, mLegendHeight, mpPainter, mXAxisMax, mXAxisMin, mXGutterHeight, mXGutterWidth, mYAxisMax, mYAxisMin, and mYGutterWidth. Referenced by render(). |
|
Definition at line 593 of file omggraph.cpp. References mImageHeight, mImageWidth, mLegendHeight, mpPainter, mXGutterHeight, and mYGutterWidth. Referenced by render(). |
|
Draw a highlight.
Definition at line 754 of file omggraph.cpp. References mpPainter. |
|
Definition at line 488 of file omggraph.cpp. References mGradientHeight, and mGradientWidth. |
|
Definition at line 470 of file omggraph.cpp. References mGradientHeight, and mGradientWidth. |
|
Whether to fill areas under the graph Definition at line 124 of file omggraph.cpp. References mAreaFillFlag. |
|
Whether to render a BR to TL diagonal onto the graph Definition at line 91 of file omggraph.cpp. References mDrawDiagonal. |
|
Whether to render the vertices onto the graph Definition at line 82 of file omggraph.cpp. References mGridLinesFlag. |
|
Whether to try to make the line into a spline curve Definition at line 116 of file omggraph.cpp. References mSplinePointsFlag. |
|
Whether to render the vertex labels onto the graph Definition at line 108 of file omggraph.cpp. References mShowVertexLabelsFlag. |
|
Whether to render the vertices onto the graph Definition at line 100 of file omggraph.cpp. References mShowVerticesFlag. |
|
Definition at line 521 of file omggraph.cpp. References mGradientHeight, and mGradientWidth. |
|
Definition at line 41 of file omggraph.cpp. References mAreaFillFlag, mAxisFont, mDrawDiagonal, mGradientHeight, mGradientWidth, mGridLinesFlag, mImageHeight, mImageWidth, mLegendFont, mLegendHeight, mpPainter, mShowVertexLabelsFlag, mShowVerticesFlag, mSplinePointsFlag, mVertexLabelFont, mXAxisMax, mXAxisMin, mXGutterWidth, mYAxisMax, mYAxisMin, and mYGutterWidth. Referenced by OmgGraph(). |
|
Definition at line 628 of file omggraph.cpp. References OmgDataSeries::fillColor(), OmgDataSeries::label(), OmgDataSeries::lineColor(), mImageHeight, mImageWidth, mLegendFont, mLegendHeight, mpPainter, and mSeriesList. Referenced by render(). |
Here is the call graph for this function:
|
Definition at line 497 of file omggraph.cpp. References mGradientHeight, mGradientWidth, and Omgui::randomColour(). |
Here is the call graph for this function:
|
Definition at line 461 of file omggraph.cpp. References mGradientHeight, and mGradientWidth. |
|
Used to remove a series from the chart
Definition at line 138 of file omggraph.cpp. References mSeriesList. Referenced by OmgGraphTest::testRemoveSeries(), and OmgGraphTest::testRenderGraph(). |
|
Here is the call graph for this function:
|
Get the number of series in this graph Definition at line 150 of file omggraph.cpp. References mSeriesList. Referenced by OmgGraphTest::testRemoveSeries(). |
|
Set whether to fill areas under the graph Definition at line 120 of file omggraph.cpp. References mAreaFillFlag. Referenced by OmgModel::createRocGraph(), OmgExperiment::summaryMapToGraph(), OmgGraphTest::testRenderGraph(), and OmgModel::toHtml(). |
|
Set the font for axis scale Definition at line 66 of file omggraph.cpp. References mAxisFont. |
|
Set whether to render a BR to TL diagonal onto the graph Definition at line 87 of file omggraph.cpp. References mDrawDiagonal. Referenced by OmgModel::createRocGraph(). |
|
Set whether to render the vertices onto the graph Definition at line 78 of file omggraph.cpp. References mGridLinesFlag. Referenced by OmgModel::createRocGraph(), OmgExperiment::summaryMapToGraph(), OmgGraphTest::testRenderGraph(), and OmgModel::toHtml(). |
|
Set the font for the legend Definition at line 70 of file omggraph.cpp. References mLegendFont. |
|
Set whether to try to make the line into a spline curve Definition at line 112 of file omggraph.cpp. References mSplinePointsFlag. Referenced by OmgModel::createRocGraph(), OmgGraphTest::testRenderGraph(), and OmgModel::toHtml(). |
|
Set the font for the vertex labels Definition at line 74 of file omggraph.cpp. References mVertexLabelFont. |
|
Set whether to render the vertex labels onto the graph Definition at line 104 of file omggraph.cpp. References mShowVertexLabelsFlag. Referenced by OmgModel::createRocGraph(), OmgExperiment::summaryMapToGraph(), OmgGraphTest::testRenderGraph(), and OmgModel::toHtml(). |
|
Set whether to render the vertices onto the graph Definition at line 96 of file omggraph.cpp. References mShowVerticesFlag. Referenced by OmgModel::createRocGraph(), OmgGraphTest::testRenderGraph(), and OmgModel::toHtml(). |
|
Whether to fill areas under the graph Definition at line 166 of file omggraph.h. Referenced by hasAreaFillEnabled(), initialise(), render(), and setAreaFillEnabled(). |
|
Definition at line 150 of file omggraph.h. Referenced by drawAxes(), initialise(), and setAxisFont(). |
|
whether to render a diagonal from bl to tr on the graph Definition at line 160 of file omggraph.h. Referenced by hasDiagonalEnabled(), initialise(), render(), and setDiagonalEnabled(). |
|
Definition at line 117 of file omggraph.h. Referenced by blueGradient(), customGradient(), grayGradient(), greenGradient(), highlightGradient(), initialise(), randomGradient(), and redGradient(). |
|
Definition at line 118 of file omggraph.h. Referenced by blueGradient(), customGradient(), grayGradient(), greenGradient(), highlightGradient(), initialise(), randomGradient(), and redGradient(). |
|
Definition at line 137 of file omggraph.h. Referenced by drawAxes(), and render(). |
|
Definition at line 136 of file omggraph.h. Referenced by drawAxes(), and render(). |
|
whether to render the vertices onto the graph Definition at line 156 of file omggraph.h. Referenced by drawAxes(), hasGridLinesEnabled(), initialise(), and setGridLinesEnabled(). |
|
Definition at line 133 of file omggraph.h. Referenced by clear(), drawAxes(), drawDiagonal(), initialise(), makeLegend(), and render(). |
|
Definition at line 134 of file omggraph.h. Referenced by calculateLegendHeight(), clear(), drawAxes(), drawDiagonal(), initialise(), makeLegend(), and render(). |
|
Definition at line 151 of file omggraph.h. Referenced by calculateLegendHeight(), initialise(), makeLegend(), and setLegendFont(). |
|
Definition at line 143 of file omggraph.h. Referenced by calculateLegendHeight(), drawAxes(), drawDiagonal(), initialise(), makeLegend(), and render(). |
|
Definition at line 130 of file omggraph.h. Referenced by clear(), drawAxes(), drawDiagonal(), drawHighlight(), initialise(), makeLegend(), OmgGraph(), and render(). |
|
Definition at line 131 of file omggraph.h. Referenced by addSeries(), calculateLegendHeight(), makeLegend(), removeSeriesAt(), render(), and seriesCount(). |
|
whether to render the vertex labels onto the graph Definition at line 162 of file omggraph.h. Referenced by hasVertexLabelsEnabled(), initialise(), render(), and setVertexLabelsEnabled(). |
|
whether to render the vertices onto the graph Definition at line 158 of file omggraph.h. Referenced by hasVerticesEnabled(), initialise(), render(), and setVerticesEnabled(). |
|
whether to try to make the line into a spline curve Definition at line 164 of file omggraph.h. Referenced by hasSpliningEnabled(), initialise(), render(), and setSpliningEnabled(). |
|
Definition at line 152 of file omggraph.h. Referenced by initialise(), render(), and setVertexLabelFont(). |
|
Definition at line 140 of file omggraph.h. Referenced by calculateGutters(), drawAxes(), initialise(), and render(). |
|
Definition at line 139 of file omggraph.h. Referenced by calculateGutters(), drawAxes(), initialise(), and render(). |
|
Definition at line 142 of file omggraph.h. Referenced by calculateGutters(), drawAxes(), drawDiagonal(), and render(). |
|
Definition at line 141 of file omggraph.h. Referenced by calculateGutters(), drawAxes(), and initialise(). |
|
Definition at line 146 of file omggraph.h. Referenced by calculateGutters(), drawAxes(), initialise(), and render(). |
|
Definition at line 145 of file omggraph.h. Referenced by drawAxes(), initialise(), and render(). |
|
Definition at line 148 of file omggraph.h. |
|
Definition at line 147 of file omggraph.h. Referenced by calculateGutters(), drawAxes(), drawDiagonal(), initialise(), and render(). |