40 void SetAxis(
int axis) { m_axis = axis; }
41 void SetColour(
const wxColour& colour) { m_colour = colour; }
42 void SetName(
const wxString& name) { m_name = name; }
43 void SetPenType(
const wxPenStyle& penType) { m_penType = penType; }
44 void SetPlot(
bool plot) { m_plot = plot; }
45 void SetThick(
int thick) { m_thick = thick; }
46 void SetValues(
const std::vector<double>& values) { m_values = values; }
47 int GetAxis()
const {
return m_axis; }
48 wxColour GetColour()
const {
return m_colour; }
49 wxString GetName()
const {
return m_name; }
50 wxPenStyle GetPenType()
const {
return m_penType; }
51 bool IsPlot()
const {
return m_plot; }
52 int GetThick()
const {
return m_thick; }
53 std::vector<double> GetValues()
const {
return m_values; }
54 void SetHighlight(
bool highlight) { m_highlight = highlight; }
55 bool IsHighlighted()
const {
return m_highlight; }
57 std::vector<double> m_values;
58 wxString m_name = wxT(
"");
60 wxColour m_colour = *wxBLACK;
62 wxPenStyle m_penType = wxPenStyle::wxPENSTYLE_SOLID;
64 bool m_highlight =
false;
70 enum class CurveType :
int {
88 wxString GetName()
const {
return m_name; }
89 void SetName(wxString name) { m_name = name; }
90 CurveType GetCurveType()
const {
return m_curveType; }
91 void SetCurveType(CurveType type) { m_curveType = type; }
92 PlotData* GetPlotData(
int index)
const {
return m_elementData[index]; }
93 void AddData(std::vector<double> values, wxString name);
95 int GetElementDataNumber()
const {
return static_cast<int>(m_elementData.size()); }
96 std::vector<double> GetValues(
int index)
const {
return m_elementData[index]->GetValues(); }
97 void SetValues(
int index, std::vector<double> values) { m_elementData[index]->SetValues(values); }
98 void SetPlot(
int index,
bool plot =
true) { m_elementData[index]->SetPlot(plot); }
99 wxString GetDataName(
int index)
const {
return m_elementData[index]->GetName(); }
100 void SetDataName(
int index, wxString name) { m_elementData[index]->SetName(name); }
101 wxColour GetColour(
int index)
const {
return m_elementData[index]->GetColour(); }
102 void SetColour(
int index, wxColour colour) { m_elementData[index]->SetColour(colour); }
103 int GetThick(
int index)
const {
return m_elementData[index]->GetThick(); }
104 void SetThick(
int index,
int thick) { m_elementData[index]->SetThick(thick); }
105 wxPenStyle GetPenType(
int index)
const {
return m_elementData[index]->GetPenType(); }
106 void SetPenType(
int index, wxPenStyle penType) { m_elementData[index]->SetPenType(penType); }
107 int GetAxis(
int index)
const {
return m_elementData[index]->GetAxis(); }
108 void SetAxis(
int index,
int axis) { m_elementData[index]->SetAxis(axis); }
111 CurveType m_curveType;
112 std::vector<PlotData*> m_elementData;