Power System Platform  2024w23a
Loading...
Searching...
No Matches
ControlEditor Class Reference
Inheritance diagram for ControlEditor:
Collaboration diagram for ControlEditor:

Public Types

enum class  ControlEditorMode : int {
  MODE_EDIT = 0 , MODE_MOVE_ELEMENT , MODE_MOVE_LINE , MODE_DRAG ,
  MODE_DRAG_INSERT , MODE_INSERT , MODE_INSERT_LINE , MODE_SELECTION_RECT ,
  MODE_PASTE , MODE_DRAG_PASTE
}
 

Public Member Functions

 ControlEditor (wxWindow *parent)
 
 ControlEditor (wxWindow *parent, int ioflags=IOControl::IN_TERMINAL_VOLTAGE|IOControl::IN_VELOCITY|IOControl::OUT_FIELD_VOLTAGE|IOControl::OUT_MEC_POWER)
 
virtual void AddElement (ControlElementButtonID id)
 
virtual void Redraw ()
 
virtual void SetJustOpened (bool justOpened)
 
virtual void RotateSelectedElements (bool clockwise)
 
virtual void DeleteSelectedElements ()
 
virtual void CheckConnections ()
 
virtual std::vector< ConnectionLine * > GetConnectionLineList () const
 
virtual std::vector< ControlElement * > GetControlElementList () const
 
virtual void SetElementsList (std::vector< ControlElement * > elementList)
 
virtual void SetConnectionsList (std::vector< ConnectionLine * > connectionList)
 
virtual void SetControlContainer (ControlElementContainer *ctrlContainer)
 
virtual void OnClose (wxCloseEvent &event)
 
virtual void OnTestClick (wxCommandEvent &event)
 
virtual void OnButtonOKClick (wxCommandEvent &event)
 
virtual void OnImportClick (wxCommandEvent &event)
 
virtual void OnExportClick (wxCommandEvent &event)
 
virtual void OnKeyDown (wxKeyEvent &event)
 
virtual void OnIdle (wxIdleEvent &event)
 
virtual void OnScroll (wxMouseEvent &event)
 
virtual void OnDoubleClick (wxMouseEvent &event)
 
virtual void OnLeftClickDown (wxMouseEvent &event)
 
virtual void OnLeftClickUp (wxMouseEvent &event)
 
virtual void OnMiddleDown (wxMouseEvent &event)
 
virtual void OnMiddleUp (wxMouseEvent &event)
 
virtual void OnMouseMotion (wxMouseEvent &event)
 
virtual void OnPaint (wxPaintEvent &event)
 
virtual void LeftClickDown (wxMouseEvent &event)
 
void BuildControlElementPanel ()
 

Protected Member Functions

int GetNextID ()
 
std::vector< ConnectionLine * >::iterator DeleteLineFromList (std::vector< ConnectionLine * >::iterator &it)
 

Protected Attributes

Cameram_camera = nullptr
 
ControlEditorMode m_mode = ControlEditorMode::MODE_EDIT
 
wxRect2DDouble m_selectionRect
 
wxPoint2DDouble m_startSelRect
 
std::vector< ControlElement * > m_elementList
 
std::vector< ConnectionLine * > m_connectionList
 
ControlElementContainerm_ctrlContainer = nullptr
 
bool m_justOpened = false
 
int m_ioFlags = 0
 
int m_inputType = 0
 
double m_startTime = 1.0
 
double m_slope = 1.0
 
double m_timeStep = 1e-4
 
double m_simTime = 10.0
 

The documentation for this class was generated from the following files: