diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2018-03-28 21:40:03 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2018-03-28 21:40:03 -0300 |
commit | 856aebefdbaedfbe630c521106f6b06ae758c737 (patch) | |
tree | b45d09897f8a782f41ad89c48e483041aeeaab56 /Project/ImportForm.h | |
parent | 3c817f09e1bfcfea4041758ba54d06139d796d3d (diff) | |
download | PSP.git-856aebefdbaedfbe630c521106f6b06ae758c737.tar.gz PSP.git-856aebefdbaedfbe630c521106f6b06ae758c737.tar.xz PSP.git-856aebefdbaedfbe630c521106f6b06ae758c737.zip |
All elements graphic data implemented
Diffstat (limited to 'Project/ImportForm.h')
-rw-r--r-- | Project/ImportForm.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Project/ImportForm.h b/Project/ImportForm.h index 11357cf..8224d3a 100644 --- a/Project/ImportForm.h +++ b/Project/ImportForm.h @@ -9,6 +9,14 @@ #include <bitset> class Workspace; +class Bus; +class SyncGenerator; +class Load; +class Capacitor; +class Inductor; +class IndMotor; +class Transformer; +class Line; /** * @class ImportForm @@ -29,6 +37,7 @@ class ImportForm : public ImportFormBase virtual void OnButtonCancelClick(wxCommandEvent& event); virtual void OnButtonOKClick(wxCommandEvent& event); bool ImportSelectedFiles(); + Bus* GetBusFromID(std::vector<Bus*> busList, int id); Workspace* m_workspace = NULL; wxWindow* m_parent; @@ -90,17 +99,18 @@ class ParseAnarede bool Parse(); std::vector<Component> GetComponents() const { return m_components; } std::vector<PowerLine> GetLines() const { return m_lines; } + wxPoint2DDouble GetNodePositionFromID(Bus* bus, double scale, int nodeID); protected: bool GetLenghtAndRotationFromBusCode(wxString code, double& lenght, int& rotationID); wxString GetLSTLineNextValue(wxString line, int& currentPos); + bool StrToElementType(wxString strType, ElementTypeAnarede& type); wxFileName m_lstFile; wxFileName m_pwfFile; std::vector<Component> m_components; std::vector<PowerLine> m_lines; - }; #endif // IMPORTFORM_H |