Draws a coordinate axis. It has only static methods, that's why the constructor is private. More...
#include <OpenMS/VISUAL/AxisPainter.h>
Public Types | |
| enum | Alignment { TOP, BOTTOM, LEFT, RIGHT } |
Where the axis is placed. More... | |
| typedef std::vector < std::vector< double > > | GridVector |
| Typedef for the grid vector. | |
Static Public Member Functions | |
| static void | paint (QPainter *painter, QPaintEvent *e, const DoubleReal &min, const DoubleReal &max, const GridVector &grid, const Int width, const Int height, const Alignment alignment, const UInt margin, const bool show_legend, const String legend, const bool shorten_number, const bool is_log, const bool is_inverse_orientation) |
| Draws an axis. | |
Private Member Functions | |
| AxisPainter () | |
| Constructor: only static methods. | |
Static Private Member Functions | |
| static void | getShortenedNumber_ (QString &short_num, DoubleReal number) |
sets short_num to a shortened string representation ("123.4 k/M/G") of number | |
| static DoubleReal | scale_ (DoubleReal x, bool is_log) |
| Scale axis values to correct value (i.e. reverse log, unit conversion). | |
Draws a coordinate axis. It has only static methods, that's why the constructor is private.
| typedef std::vector<std::vector<double> > GridVector |
Typedef for the grid vector.
| enum Alignment |
| AxisPainter | ( | ) | [private] |
Constructor: only static methods.
| static void getShortenedNumber_ | ( | QString & | short_num, | |
| DoubleReal | number | |||
| ) | [static, private] |
sets short_num to a shortened string representation ("123.4 k/M/G") of number
| static void paint | ( | QPainter * | painter, | |
| QPaintEvent * | e, | |||
| const DoubleReal & | min, | |||
| const DoubleReal & | max, | |||
| const GridVector & | grid, | |||
| const Int | width, | |||
| const Int | height, | |||
| const Alignment | alignment, | |||
| const UInt | margin, | |||
| const bool | show_legend, | |||
| const String | legend, | |||
| const bool | shorten_number, | |||
| const bool | is_log, | |||
| const bool | is_inverse_orientation | |||
| ) | [static] |
Draws an axis.
| static DoubleReal scale_ | ( | DoubleReal | x, | |
| bool | is_log | |||
| ) | [static, private] |
Scale axis values to correct value (i.e. reverse log, unit conversion).
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1 |