Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
ElementPlotData.cpp
1/*
2 * Copyright (C) 2017 Thales Lima Oliveira <thales@ufu.br>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#include "ElementPlotData.h"
19
20ElementPlotData::ElementPlotData(wxString name, CurveType curveType)
21{
22 m_name = name;
23 m_curveType = curveType;
24}
25
26ElementPlotData::~ElementPlotData() {}
27void ElementPlotData::AddData(std::vector<double> values, wxString name)
28{
29 PlotData* data = new PlotData();
30 data->SetName(name);
31 data->SetValues(values);
32 data->SetPlot(false);
33 data->SetAxis(0);
34 data->SetColour(*wxBLACK);
35 data->SetPenType(wxPENSTYLE_SOLID);
36 data->SetThick(2);
37
38 m_elementData.push_back(data);
39}
This class is responsible to manage the graphical data of electromechanical result to be plotted on c...