![]() |
Power System Platform
2018w15a
|
This class manages the graphical and power elements. It is responsible for handling the user's interaction with the elements. More...
#include <Workspace.h>
Public Member Functions | |
Workspace (wxWindow *parent, wxString name=wxEmptyString, wxStatusBar *statusBar=NULL, wxGLContext *sharedGLContext=NULL) | |
wxString | GetName () const |
std::vector< Element * > | GetElementList () const |
std::vector< Text * > | GetTextList () const |
std::vector< Element * > | GetAllElements () const |
WorkspaceMode | GetWorkspaceMode () const |
Camera * | GetCamera () const |
void | CopySelection () |
bool | Paste () |
wxFileName | GetSavedPath () const |
void | SetName (wxString name) |
void | SetElementList (std::vector< Element *> elementList) |
void | SetTextList (std::vector< Text *> textList) |
void | SetStatusBarText (wxString text) |
void | SetWorkspaceMode (WorkspaceMode mode) |
void | SetSavedPath (wxFileName savedPath) |
void | SetJustOpened (bool justOpened) |
void | Redraw () |
wxGLContext * | GetOpenGLContext () |
void | RotateSelectedElements (bool clockwise=true) |
void | DeleteSelectedElements () |
bool | GetElementsCorners (wxPoint2DDouble &leftUpCorner, wxPoint2DDouble &rightDownCorner, std::vector< Element *> elementList) |
void | Fit () |
void | UnselectAll () |
void | ValidateBusesVoltages (Element *initialBus) |
void | ValidateElementsVoltages () |
void | UpdateElementsID () |
bool | UpdateTextElements () |
int | GetElementNumber (ElementID elementID) |
void | IncrementElementNumber (ElementID elementID) |
PropertiesData * | GetProperties () const |
std::vector< double > | GetStabilityTimeVector () const |
bool | IsContinuousCalculationActive () const |
void | SetContinuousCalculationActive (bool value=true) |
bool | RunPowerFlow () |
bool | RunFault () |
bool | RunSCPower () |
bool | RunStaticStudies () |
bool | RunStability () |
Protected Attributes | |
wxGLContext * | m_glContext = NULL |
wxStatusBar * | m_statusBar = NULL |
Camera * | m_camera = NULL |
wxTipWindow * | m_tipWindow = NULL |
wxString | m_name |
WorkspaceMode | m_mode = MODE_EDIT |
std::vector< PowerElement * > | m_elementList |
int | m_elementNumber [NUM_ELEMENTS] |
std::vector< Text * > | m_textList |
wxFileName | m_savedPath |
wxRect2DDouble | m_selectionRect |
wxPoint2DDouble | m_startSelRect |
PropertiesData * | m_properties = NULL |
std::vector< double > | m_stabilityTimeVector |
bool | m_continuousCalc = false |
bool | m_disconnectedElement = false |
bool | m_justOpened = false |
This class manages the graphical and power elements. It is responsible for handling the user's interaction with the elements.