JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
struct, describing basic layout and size properties of a key/legend, mostly used as return value of getSize(). More...
#include <jkqtpkey.h>
Public Member Functions | |
double | calcOverallHeight (double ySeparation, double sampleHeight) const |
calculates the width over all columns | |
double | calcOverallWidth (double sampleLineLength, double xSeparation, double columnSeparation) const |
calculates the width over all columns | |
int | calcRowCount () const |
calculates the number of rows | |
double | calcRowHeight (int i, double sampleHeight) const |
calculate the hieght of the i -th column | |
int | countItems () const |
calculate the number of items | |
void | redistributeIntoOneColumn () |
put all items into one column | |
void | redistributeOverColumns (int cols, bool colMajor=true) |
takes all elements in columns and redistributes them over the given number of columns, items are distributed as equally as possible (last column may have fewer items) | |
void | redistributeOverRows (int rows, bool rowMajor=true) |
takes all elements in columns and redistributes them over the given number of rows, items are distributed as equally as possible (last row may have fewer items) | |
Public Attributes | |
QList< KeyColumnDescription > | columns |
list of all columns with items in the key | |
struct, describing basic layout and size properties of a key/legend, mostly used as return value of getSize().
double JKQTPBaseKey::KeyLayoutDescription::calcOverallHeight | ( | double | ySeparation, |
double | sampleHeight | ||
) | const |
calculates the width over all columns
double JKQTPBaseKey::KeyLayoutDescription::calcOverallWidth | ( | double | sampleLineLength, |
double | xSeparation, | ||
double | columnSeparation | ||
) | const |
calculates the width over all columns
int JKQTPBaseKey::KeyLayoutDescription::calcRowCount | ( | ) | const |
calculates the number of rows
double JKQTPBaseKey::KeyLayoutDescription::calcRowHeight | ( | int | i, |
double | sampleHeight | ||
) | const |
calculate the hieght of the i -th column
int JKQTPBaseKey::KeyLayoutDescription::countItems | ( | ) | const |
calculate the number of items
void JKQTPBaseKey::KeyLayoutDescription::redistributeIntoOneColumn | ( | ) |
put all items into one column
void JKQTPBaseKey::KeyLayoutDescription::redistributeOverColumns | ( | int | cols, |
bool | colMajor = true |
||
) |
takes all elements in columns and redistributes them over the given number of columns, items are distributed as equally as possible (last column may have fewer items)
void JKQTPBaseKey::KeyLayoutDescription::redistributeOverRows | ( | int | rows, |
bool | rowMajor = true |
||
) |
takes all elements in columns and redistributes them over the given number of rows, items are distributed as equally as possible (last row may have fewer items)
QList<KeyColumnDescription> JKQTPBaseKey::KeyLayoutDescription::columns |
list of all columns with items in the key