Draws a coordinate axis. It has only static methods, that's why the constructor is private.
More...
#include <OpenMS/VISUAL/AxisPainter.h>
|
| static void | paint (QPainter *painter, QPaintEvent *e, const double &min, const double &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.
|
| |
|
| static void | getShortenedNumber_ (QString &short_num, double number) |
| | sets short_num to a shortened string representation ("123.4 k/M/G") of number
|
| |
| static double | scale_ (double x, bool is_log) |
| | Round to 8 significant digits after comma (and apply log scaling)
|
| |
Draws a coordinate axis. It has only static methods, that's why the constructor is private.
◆ GridVector
| typedef std::vector<std::vector<double> > GridVector |
Typedef for the grid vector.
◆ Alignment
Where the axis is placed.
| Enumerator |
|---|
| TOP | |
| BOTTOM | |
| LEFT | |
| RIGHT | |
◆ AxisPainter()
Constructor: only static methods.
◆ getShortenedNumber_()
| static void getShortenedNumber_ |
( |
QString & |
short_num, |
|
|
double |
number |
|
) |
| |
|
staticprivate |
sets short_num to a shortened string representation ("123.4 k/M/G") of number
◆ paint()
| static void paint |
( |
QPainter * |
painter, |
|
|
QPaintEvent * |
e, |
|
|
const double & |
min, |
|
|
const double & |
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 |
◆ scale_()
| static double scale_ |
( |
double |
x, |
|
|
bool |
is_log |
|
) |
| |
|
staticprivate |
Round to 8 significant digits after comma (and apply log scaling)