Power System Platform  2024w23a
Loading...
Searching...
No Matches
Element.h File Reference
#include <wx/msgdlg.h>
#include <wx/geometry.h>
#include <wx/cursor.h>
#include <wx/menu.h>
#include <wx/stdpaths.h>
#include <wx/filename.h>
#include <wx/graphics.h>
#include <complex>
#include "../utils/XMLParser.h"
Include dependency graph for Element.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Element
 Base class of all elements of the program. This class is responsible for manage graphical and his data. More...
 

Enumerations

enum  ElementType {
  TYPE_NONE = 0 , TYPE_BUS , TYPE_CAPACITOR , TYPE_IND_MOTOR ,
  TYPE_INDUCTOR , TYPE_LINE , TYPE_LOAD , TYPE_SYNC_GENERATOR ,
  TYPE_SYNC_MOTOR , TYPE_TRANSFORMER , TYPE_HARMCURRENT , TYPE_TEXT
}
 
enum  PickboxID {
  ID_PB_NONE = 0 , ID_PB_RIGHT , ID_PB_LEFT , ID_PB_RIGHT_BOTTOM ,
  ID_PB_RIGHT_TOP , ID_PB_LEFT_BOTTOM , ID_PB_LEFT_TOP
}
 ID of the pickbox. More...
 
enum  ContextMenuID {
  ID_EDIT_ELEMENT = 0 , ID_LINE_ADD_NODE , ID_LINE_REMOVE_NODE , ID_ROTATE_CLOCK ,
  ID_ROTATE_COUNTERCLOCK , ID_DELETE , ID_TXT_NAME , ID_TXT_VOLTAGE ,
  ID_TXT_ANGLE , ID_TXT_FAULTCURRENT , ID_TXT_FAULTVOLTAGE , ID_TXT_SCC ,
  ID_TXT_THD , ID_TXT_ACTIVE_POWER , ID_TXT_REACTIVE_POWER , ID_TXT_BRANCH_ACTIVE_POWER_1_2 ,
  ID_TXT_BRANCH_ACTIVE_POWER_2_1 , ID_TXT_BRANCH_REACTIVE_POWER_1_2 , ID_TXT_BRANCH_REACTIVE_POWER_2_1 , ID_TXT_BRANCH_LOSSES ,
  ID_TXT_BRANCH_CURRENT_1_2 , ID_TXT_BRANCH_CURRENT_2_1 , ID_TXT_BRANCH_FAULT_CURRENT_1_2 , ID_TXT_BRANCH_FAULT_CURRENT_2_1
}
 ID of contex menu itens. More...
 

Enumeration Type Documentation

◆ ContextMenuID

ID of contex menu itens.

Enumerator
ID_EDIT_ELEMENT 

Edit element

ID_LINE_ADD_NODE 

Add node on power lines

ID_LINE_REMOVE_NODE 

Remove power line node

ID_ROTATE_CLOCK 

Rotate the element clockwise

ID_ROTATE_COUNTERCLOCK 

Rotate the element counter-clockwise

ID_DELETE 

Delete the element

◆ PickboxID

enum PickboxID

ID of the pickbox.

Enumerator
ID_PB_NONE 

No pickbox

ID_PB_RIGHT 

Right pickbox

ID_PB_LEFT 

Left pickbox

ID_PB_RIGHT_BOTTOM 

Right-bottom pickbox

ID_PB_RIGHT_TOP 

Right-top pickbox

ID_PB_LEFT_BOTTOM 

Left-bottom pickbox

ID_PB_LEFT_TOP 

Left-top pickbox