|
Antares Simulator
Power System Simulator
|
Standard study MAP. More...
#include <component.h>
Public Member Functions | |
Constructor & Destructor | |
| Component (wxWindow *parent) | |
| Default Constructor. | |
| virtual | ~Component () |
| Destructor. | |
Study | |
| void | attachStudy (Data::Study::Ptr study) |
| Attach a study to the map to reflect changes. More... | |
| void | detachStudy (bool canRefresh=true) |
| Detach the study (if any) currently attached to the map. | |
| Data::Study::Ptr | attachedStudy () |
| Get the study attached to the map. More... | |
Import Export | |
| bool | loadFromStudy (Data::Study &study) |
| Load the map's settings from an existing Antares study. More... | |
| bool | loadFromAttachedStudy () |
| Load the map's settings from the attached study. More... | |
| bool | saveToStudy (Data::Study &study, bool incremental=true) |
| Save the map's settings to a study. More... | |
| bool | saveToAttachedStudy (bool incremental=true) |
| Save the map's settings to the attached study (if any) More... | |
| bool | saveToImageFile (const AnyString &filePath, const MapRenderOptions &options) |
| Save the map into an image file. More... | |
| void | clear () |
UI | |
| void | recenterView () |
| Recenter scrollbars to the center of the map. | |
| void | onCenterXY (void *) |
| void | setFocus () |
| Set the focus to the map. | |
| uint | selectedAreaCount () const |
| Get how many areas have been selected. | |
| void | drawerVisible () |
| void | showLayerAll () |
| void | forceReload () |
| void | refresh () |
| void | refreshHeaderInformations () |
| Refresh the header informations (how many areas/connexions) | |
| void | renameNodeFromArea (const Data::Area *area) |
Edition | |
| void | unselectAll (bool canRefresh=true) |
| Select all nodes of type "area". | |
| void | selectAll () |
| Select all nodes of type "area". | |
| void | reverseSelection () |
| Reverse the selection. | |
| void | selectOnly (const Data::Area::Vector &areas) |
| Select only items from a list of areas. | |
| void | selectOnly (const Data::Area::Vector &areas, const Data::AreaLink::Vector &links) |
| Select only items from a list of areas and links. | |
Public Member Functions inherited from Antares::Component::Panel | |
| Panel (wxWindow *parent) | |
| Constructor. | |
| virtual | ~Panel () |
| Destructor. | |
| virtual void | onMouseDown (wxMouseEvent &) |
| Click down. | |
| virtual void | onMouseUp (wxMouseEvent &) |
| Click up. | |
| virtual void | onMouseClick () |
| The panel has been clicked (delayed) | |
| virtual void | onMouseEnter () |
| The mouse has entered. | |
| virtual void | onMouseLeave () |
| The mouse has leaved. | |
| virtual void | onMouseMoved (int, int) |
| The mouse has moved. | |
Cache management | |
| Yuni::Event< void(int, int)> | onPopupEvent |
| Popup event. | |
| Yuni::Event< void(const wxString &)> | onStatusBarText |
| Status bar event. | |
| Yuni::Event< void(Component &)> | onDblClick |
| Event: Double-Click on a item. | |
| void | reimportNodeColors (const Data::Area *area) |
| Refresh the internal cache about the color of a single area. | |
| void | moveNodeFromAreaX (const Data::Area *area, int x) |
| Refresh the internal cache about the X-coordinate of a single area. | |
| void | moveNodeFromAreaY (const Data::Area *area, int y) |
| Refresh the internal cache about the X-coordinate of a single area. | |
| size_t | getActiveLayerID () |
Additional Inherited Members | |
Static Public Member Functions inherited from Antares::Component::Panel | |
| static void | OnMouseMoveFromExternalComponent () |
| Event triggered by any other component (not derived from Panel) | |
Protected Member Functions inherited from Antares::Component::Panel | |
| virtual bool | triggerMouseClickEvent () const |
Standard study MAP.
| Data::Study::Ptr Antares::Map::Component::attachedStudy | ( | ) |
Get the study attached to the map.
| void Antares::Map::Component::attachStudy | ( | Data::Study::Ptr | study | ) |
Attach a study to the map to reflect changes.
The user is responsible for deleting the study. However to not forget to detach it just before
| study | The study to attach |
| bool Antares::Map::Component::loadFromAttachedStudy | ( | ) |
Load the map's settings from the attached study.
| bool Antares::Map::Component::loadFromStudy | ( | Data::Study & | study | ) |
Load the map's settings from an existing Antares study.
| study | The study to import the data from |
| bool Antares::Map::Component::saveToAttachedStudy | ( | bool | incremental = true | ) |
Save the map's settings to the attached study (if any)
| incremental | Modify the study only for detected changes |
| bool Antares::Map::Component::saveToImageFile | ( | const AnyString & | filePath, |
| const MapRenderOptions & | options | ||
| ) |
Save the map into an image file.
| filePath |
| bool Antares::Map::Component::saveToStudy | ( | Data::Study & | study, |
| bool | incremental = true |
||
| ) |
Save the map's settings to a study.
| study | The target study |
| incremental | Modify the study only for detected changes |