Power System Platform  2026w23a-beta
Loading...
Searching...
No Matches
ChartWindowManager.cpp
1/*
2 * Copyright (C) 2026 Thales Lima Oliveira <thales.oliveira@uftm.edu.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 "ChartWindowManager.h"
19#include "Workspace.h"
20
21ChartWindowManager::ChartWindowManager(Workspace* workspace): m_workspace(workspace)
22{
23}
24
25ChartWindowManager::~ChartWindowManager()
26{
27}
28
29ChartView* ChartWindowManager::Open(std::vector<ElementPlotData>& epdList, std::vector<double>& time)
30{
31 ChartView* cView = new ChartView(m_workspace, epdList, time, m_workspace->GetProperties()->GetGeneralPropertiesData().plotLib);
32 cView->Show();
33 return cView;
34}
This class is responsible to manage the charts generated in the transient electromechanical studies.
Definition ChartView.h:49
This class manages the graphical and power elements. It is responsible for handling the user's intera...
Definition Workspace.h:105