24 #ifndef COM_DAFER45_TBTK_PLOT_DECORATION
25 #define COM_DAFER45_TBTK_PLOT_DECORATION
35 enum class LineStyle {Line, Point};
42 const std::vector<unsigned char> &color,
51 void setColor(
const std::vector<unsigned char> &color);
54 const std::vector<unsigned char>& getColor()
const;
57 const LineStyle& getLineStyle()
const;
60 unsigned int getSize()
const;
63 std::vector<unsigned char> color;
72 inline Decoration::Decoration(){
74 lineStyle = LineStyle::Point;
78 inline Decoration::Decoration(
79 const std::vector<unsigned char> &color,
84 this->lineStyle = lineStyle;
88 inline Decoration::~Decoration(){
91 inline void Decoration::setColor(
const std::vector<unsigned char> &color){
94 "Decoration::setColor()",
95 "Color must have three components but '" << color.size() <<
"'"
96 <<
" components given.",
102 inline const std::vector<unsigned char>& Decoration::getColor()
const{
106 inline const Decoration::LineStyle& Decoration::getLineStyle()
const{
110 inline unsigned int Decoration::getSize()
const{