Class MultiScale#

Inheritance Relationships#

Base Type#

Class Documentation#

class MultiScale : public Scale#

A Scale that represents a graphical axis that can display data from the R^n with two given extremes for each entry.

Author

stratmann

Date

15.05.2018

Public Functions

inline MultiScale(size_t ticks_major, size_t ticks_minor, const TextProperties &label_prop, const std::string &label_suffix = "")#

Creates a new MultiScale from major (big) and minor intersections, label properties, label suffix (unit) and extreme values. To use MultiScale, extreme values of each entry need to be added.

Parameters:
  • major_intersections – number of big intersection lines

  • minor_intersections – number of small intersection lines

  • label_prop – the style of the label text

  • label_suffix – the unit of the presented data

inline void add_scale(const std::pair<double, double> &extremes)#

Adds extreme value of another scalable entry to this MultiScale.

Parameters:

extremes – the extreme values

inline size_t get_scale_number(void) const#

Returns the number of scales of this MultiScale.

Returns:

number of scales

inline const std::pair<double, double> &get_extremes(size_t i) const#

Returns the extreme values of the i-th entry.

Returns:

the extremes

std::vector<Label> make_labels(size_t i) const#

Constructs description labels using the scale with the given index.

Returns:

the labels