Axis descriptor: a dimension, a unit, a label. More...
#include <vcsl_axis.h>

Public Member Functions | |
| vcsl_axis () | |
| Default constructor. Axis with length in meters and an empty label. More... | |
| vcsl_axis (vcsl_dimension_sptr const &new_dimension) | |
| Constructor from dimension. Unit is the standard one. Label is empty. More... | |
| vcsl_axis (vcsl_dimension_sptr const &new_dimension, vcsl_unit_sptr const &new_unit) | |
| Constructor from dimension and unit. Label is empty. More... | |
| vcsl_axis (vcsl_dimension_sptr const &new_dimension, vcsl_unit_sptr const &new_unit, std::string new_label) | |
| Constructor from dimension, unit and label. More... | |
| vcsl_axis (const vcsl_axis &a) | |
| ~vcsl_axis () override=default | |
| vcsl_dimension_sptr | dimension () const |
| Return the dimension. More... | |
| vcsl_unit_sptr | unit () const |
| Return the unit of the dimension. More... | |
| std::string | label () const |
| Return the label of the axis. More... | |
| void | set_dimension (vcsl_dimension_sptr const &new_dimension) |
| Set the dimension. The unit is set with the standard unit. More... | |
| void | set_dimension_and_unit (vcsl_dimension_sptr const &new_dimension, vcsl_unit_sptr const &new_unit) |
| Set the dimension and the unit. More... | |
| void | set_unit (vcsl_unit_sptr const &new_unit) |
| Set the unit of the dimension. More... | |
| void | set_label (std::string const &new_label) |
| Set the label. More... | |
| void | ref () |
| void | unref () |
| long | get_references () const |
| bool | is_referenced () const |
Protected Attributes | |
| vcsl_dimension_sptr | dimension_ |
| Dimension. More... | |
| vcsl_unit_sptr | unit_ |
| Unit of the dimension. More... | |
| std::string | label_ |
| Label of the axis. More... | |
Axis descriptor: a dimension, a unit, a label.
Definition at line 25 of file vcsl_axis.h.
| vcsl_axis::vcsl_axis | ( | ) |
Default constructor. Axis with length in meters and an empty label.
Definition at line 16 of file vcsl_axis.cxx.
|
explicit |
Constructor from dimension. Unit is the standard one. Label is empty.
Definition at line 25 of file vcsl_axis.cxx.
| vcsl_axis::vcsl_axis | ( | vcsl_dimension_sptr const & | new_dimension, |
| vcsl_unit_sptr const & | new_unit | ||
| ) |
Constructor from dimension and unit. Label is empty.
REQUIRE: new_dimension.compatible_unit(new_unit)
Definition at line 35 of file vcsl_axis.cxx.
|
inline |
Constructor from dimension, unit and label.
Definition at line 45 of file vcsl_axis.h.
|
inline |
Definition at line 51 of file vcsl_axis.h.
|
overridedefault |
|
inline |
Return the dimension.
Definition at line 62 of file vcsl_axis.h.
|
inline |
Return the label of the axis.
Definition at line 68 of file vcsl_axis.h.
| void vcsl_axis::set_dimension | ( | vcsl_dimension_sptr const & | new_dimension | ) |
Set the dimension. The unit is set with the standard unit.
Definition at line 48 of file vcsl_axis.cxx.
| void vcsl_axis::set_dimension_and_unit | ( | vcsl_dimension_sptr const & | new_dimension, |
| vcsl_unit_sptr const & | new_unit | ||
| ) |
Set the dimension and the unit.
REQUIRE: new_dimension.compatible_unit(new_unit)
Definition at line 58 of file vcsl_axis.cxx.
|
inline |
Set the label.
Definition at line 87 of file vcsl_axis.h.
| void vcsl_axis::set_unit | ( | vcsl_unit_sptr const & | new_unit | ) |
Set the unit of the dimension.
REQUIRE dimension()->compatible_unit(new_unit)
Definition at line 72 of file vcsl_axis.cxx.
|
inline |
Return the unit of the dimension.
Definition at line 65 of file vcsl_axis.h.
|
protected |
Dimension.
Definition at line 95 of file vcsl_axis.h.
|
protected |
Label of the axis.
Definition at line 101 of file vcsl_axis.h.
|
protected |
Unit of the dimension.
Definition at line 98 of file vcsl_axis.h.
1.8.15