Power System Platform  2026w34a-beta
Loading...
Searching...
No Matches
SyncMachineForm.h
Go to the documentation of this file.
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#ifndef SYNCMACHINEFORM_H
19#define SYNCMACHINEFORM_H
20//#include <GL/glew.h>
21
22//#include <wx/glcanvas.h>
23
24#include "ElementFormBase.h"
25
26class Workspace;
28class SyncGenerator;
29class SyncMotor;
30
38class SyncMachineForm : public SyncMachineFormBase
39{
40 public:
41 SyncMachineForm(wxWindow* parent, SyncGenerator* syncGenerator, Workspace* workspace);
42 SyncMachineForm(wxWindow* parent, SyncMotor* syncMotor);
43 virtual ~SyncMachineForm();
44
45 protected:
46 virtual void OnCancelButtonClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); };
47 virtual void OnCheckMaxReactive(wxCommandEvent& event);
48 virtual void OnCheckMinReactive(wxCommandEvent& event);
49 virtual void OnOKButtonClick(wxCommandEvent& event);
50 virtual void OnStabilityButtonClick(wxCommandEvent& event);
51 //wxGLContext* GetSharedGLContext() const { return m_sharedGLContext; }
52
53 virtual bool ValidateData();
54 virtual void ReplaceStaticTextLabelChar(wxStaticText* staticText, wchar_t newChar);
55
56 SyncGenerator* m_syncGenerator = nullptr;
57 SyncMotor* m_syncMotor = nullptr;
58 wxWindow* m_parent = nullptr;
59 Workspace* m_workspace = nullptr;
60 //int m_plotLib = 0;
61 //wxGLContext* m_sharedGLContext = nullptr;
62};
63#endif // SYNCMACHINEFORM_H
Form to edit the synchronous generator data for electromechanical studies.
Synchronous generator power element.
Synchronous motor (synchronous compensator) power element.
Definition SyncMotor.h:135
This class manages the graphical and power elements. It is responsible for handling the user's intera...
Definition Workspace.h:105