Models an axis and its attributes like its title and its scale. More...
#include <shark/Core/Chart.h>
Collaboration diagram for shark::Chart::Axis:Public Types | |
| enum | Scale { LINEAR_SCALE, LOG_10_SCALE } |
| Models the scale of the axis. More... | |
Public Member Functions | |
| Axis (bool isEnabled=false) | |
| C'tor. More... | |
| boost::property_tree::ptree & | properties () |
| Access the properties of the axis. More... | |
| const boost::property_tree::ptree & | properties () const |
| Access the properties of the axis. More... | |
| template<typename Archive > | |
| void | serialize (Archive &a, const unsigned int version) |
| (De-)Serializes the axis, its attributes and properties. More... | |
Public Attributes | |
| bool | m_isEnabled |
| Indicates whether the axis is enabled or not. More... | |
| Scale | m_scale |
| The scaling of the axis. More... | |
| std::string | m_title |
| The title of the axis. More... | |
| boost::property_tree::ptree | m_properties |
| The properties of the axis. More... | |
Models an axis and its attributes like its title and its scale.
|
inline |
|
inline |
Access the properties of the axis.
In addition to the attributes that are explicitly modelled arbitrary key/value pairs can be associated with the axis. These key/value-pairs might be used by renderers to further customize the output.
Definition at line 146 of file Chart.h.
References m_properties.
|
inline |
Access the properties of the axis.
In addition to the attributes that are explicitly modelled arbitrary key/value pairs can be associated with the axis. These key/value-pairs might be used by renderers to further customize the output.
Definition at line 160 of file Chart.h.
References m_properties.
|
inline |
(De-)Serializes the axis, its attributes and properties.
| Archive | The type of the archive. |
| [in,out] | a | The archive to read from/write to. |
| [in] | version | Currently unused. |
Definition at line 172 of file Chart.h.
References m_properties, m_scale, and m_title.
| bool shark::Chart::Axis::m_isEnabled |
| boost::property_tree::ptree shark::Chart::Axis::m_properties |
The properties of the axis.
Definition at line 184 of file Chart.h.
Referenced by properties(), and serialize().
| Scale shark::Chart::Axis::m_scale |
| std::string shark::Chart::Axis::m_title |
The title of the axis.
Definition at line 182 of file Chart.h.
Referenced by shark::HighchartRenderer< Stream >::render(), and serialize().