4 #include "CanvasItem.h"
5 #include "LineProperties.h"
14 typedef std::vector<double>::iterator iterator;
16 typedef const std::vector<double>::const_iterator const_iterator;
21 void setXAndY(
const std::vector<double> &x,
const std::vector<double> &y);
23 void setXAndY(
const double x,
const double y);
25 void setXErr(
const double xerr);
27 void setXErr(
const std::vector<double> &xerr);
29 void setYErr(
const double yerr);
31 void setYErr(
const std::vector<double> &yerr);
33 std::vector<double>
const &getX()
const;
35 std::vector<double>
const &getXErr()
const;
37 std::vector<double>
const &getY()
const;
39 std::vector<double>
const &getYErr()
const;
43 void setFillColor(std::string_view color);
45 std::string_view getFillColor()
const;
47 void setFill(
bool on);
51 void setSymbol(
char symbol);
53 const char &getSymbol()
const;
55 void setSymbolSize(
int size);
57 const int &getSymbolSize()
const;
60 std::vector<double> _x;
62 std::vector<double> _xerr;
64 std::vector<double> _y;
66 std::vector<double> _yerr;
68 std::string_view _fillcolor;
77 inline void Curve::setXAndY(
const std::vector<double> &x,
78 const std::vector<double> &y) {
83 inline void Curve::setXErr(
const std::vector<double> &xerr) { _xerr = xerr; }
85 inline void Curve::setYErr(
const std::vector<double> &yerr) { _yerr = yerr; }
87 inline std::vector<double>
const &Curve::getX()
const {
return (_x); }
89 inline std::vector<double>
const &Curve::getXErr()
const {
return (_xerr); }
91 inline std::vector<double>
const &Curve::getY()
const {
return (_y); }
93 inline std::vector<double>
const &Curve::getYErr()
const {
return (_yerr); }
95 inline void Curve::clear() {
106 inline void Curve::setFill(
bool on =
true) { _fill = on; }
108 inline bool Curve::isFill() {
return (_fill); }
110 inline void Curve::setFillColor(std::string_view color) { _fillcolor = color; }
112 inline std::string_view Curve::getFillColor()
const {
return (_fillcolor); }
114 inline void Curve::setSymbol(
char symbol) { _symbol = symbol; }
116 inline const char &Curve::getSymbol()
const {
return (_symbol); }
118 inline void Curve::setSymbolSize(
int size) { _symbolsize = size; }
120 inline const int &Curve::getSymbolSize()
const {
return (_symbolsize); }
Definition: CanvasItem.h:4
Definition: LineProperties.h:7