Class Scale#
Defined in File Scale.h
Inheritance Relationships#
Derived Types#
public MultiScale(Class MultiScale)public SimpleScale(Class SimpleScale)
Class Documentation#
-
class Scale#
Ticked scale.
The Scale class represents a graphical scale of an axis by its extreme values and intersections counts.
- Author
beyss
- Date
22.08.2017
Subclassed by MultiScale, SimpleScale
Public Functions
-
inline Scale(size_t major_intersections, size_t minor_intersections, const TextProperties &label_prop, const std::string &label_suffix = "")#
Creates a Scale from major (big) and minor intersections, label properties and a label suffix (unit).
- 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 virtual ~Scale()#
-
inline size_t get_major_intersections(void) const#
Returns the number of major intersection lines of this scale.
- Returns:
number of major intersections
-
inline size_t get_minor_intersections(void) const#
Returns the number of major intersection lines of this scale.
- Returns:
number of minor intersections
Protected Attributes
-
size_t m_major_intersections#
-
size_t m_minor_intersections#
-
TextProperties m_label_prop#
-
std::string m_label_suffix#