Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
GeneratorStabForm.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 GENERATORSTABFORM_H
19#define GENERATORSTABFORM_H
20
21//#include <GL/glew.h>
22
23//#include <wx/glcanvas.h>
24#include "ElementFormBase.h"
25
26class SwitchingForm;
27class SyncGenerator;
28class ControlEditor;
30
38class GeneratorStabForm : public GeneratorStabFormBase
39{
40 public:
41 GeneratorStabForm(wxWindow* parent, SyncGenerator* syncGenerator, int plotLib);
42 virtual ~GeneratorStabForm();
43
44 protected:
45 virtual void UseAVRClick(wxCommandEvent& event);
46 virtual void UseSGClick(wxCommandEvent& event);
47 virtual void OnCancelButtonClick(wxCommandEvent& event);
48 virtual void OnEditAVRButtonClick(wxCommandEvent& event);
49 virtual void OnOKButtonClick(wxCommandEvent& event);
50 virtual void OnSpeedGovernorButtonClick(wxCommandEvent& event);
51 virtual void OnSwitchingButtonClick(wxCommandEvent& event);
52 //wxGLContext* GetSharedGLContext() const { return m_sharedGLContext; }
53
54 virtual bool ValidateData();
55
56 SyncGenerator* m_syncGenerator = nullptr;
57 wxWindow* m_parent = nullptr;
58 int m_plotLib = 0;
59 // wxGLContext* m_sharedGLContext = nullptr;
60};
61#endif // GENERATORSTABFORM_H
Class that can contain all control elements. Can identify (using RTTI) the elements from a generic li...
Form to edit the synchronous generator data for electromechanical studies.
Form to edit the switching data of power elements for electromechanical transient studies.
Synchronous generator power element.