Power System Platform  2026w10a-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
27class SyncGenerator;
28class SyncMotor;
29
37class SyncMachineForm : public SyncMachineFormBase
38{
39 public:
40 SyncMachineForm(wxWindow* parent, SyncGenerator* syncGenerator, int plotLib);
41 SyncMachineForm(wxWindow* parent, SyncMotor* syncMotor);
42 virtual ~SyncMachineForm();
43
44 protected:
45 virtual void OnCancelButtonClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); };
46 virtual void OnCheckMaxReactive(wxCommandEvent& event);
47 virtual void OnCheckMinReactive(wxCommandEvent& event);
48 virtual void OnOKButtonClick(wxCommandEvent& event);
49 virtual void OnStabilityButtonClick(wxCommandEvent& event);
50 //wxGLContext* GetSharedGLContext() const { return m_sharedGLContext; }
51
52 virtual bool ValidateData();
53 virtual void ReplaceStaticTextLabelChar(wxStaticText* staticText, wchar_t newChar);
54
55 SyncGenerator* m_syncGenerator = nullptr;
56 SyncMotor* m_syncMotor = nullptr;
57 wxWindow* m_parent = nullptr;
58 int m_plotLib = 0;
59 //wxGLContext* m_sharedGLContext = nullptr;
60};
61#endif // SYNCMACHINEFORM_H
Form to edit the synchronous generator data for electromechanical studies.
Synchronous generator power element.
Form to edit the synchronous machine power data.
Synchronous motor (synchronous compensator) power element.
Definition SyncMotor.h:135