Class SimpleScale#
Defined in File Scale.h
Inheritance Relationships#
Base Type#
public Scale(Class Scale)
Class Documentation#
-
class SimpleScale : public Scale#
A Scale that represents a graphical axis that can display data from the real numbers with two given extremes.
- Author
stratmann
- Date
15.05.2018
Public Functions
-
inline SimpleScale(size_t major_intersections, size_t minor_intersections, const std::pair<double, double> &extremes, const TextProperties &label_prop, const std::string &label_suffix = "")#
Creates a new SimpleScale from major (big) and minor intersections, label properties, label suffix (unit) and extreme values.
- Parameters:
major_intersections – number of big intersection lines
minor_intersections – number of small intersection lines
extremes – the extreme values of the scale
label_prop – the style of the label text
label_suffix – the unit of the presented data
-
inline const std::pair<double, double> &get_extremes() const#
Access function for the Ticks extreme values.
- Returns:
a reference to the extreme values