|
Antares Simulator
Power System Simulator
|
Public Member Functions | |
Constructor & Destructor | |
| BindingConstraint (Manager &manager) | |
| Constructor. | |
| virtual | ~BindingConstraint () |
| Destructor. | |
| virtual Type | type () const |
| Type. | |
Selection | |
| virtual bool | selected () const |
| virtual void | selected (bool v) |
Cache | |
| virtual void | refreshCache (wxDC &dc) |
| Refresh the cache (even if not invalidated) | |
Public Member Functions inherited from Antares::Map::Item | |
| Item (Manager &manager, const int zPos=0) | |
| Constructor. | |
| virtual | ~Item () |
| Destructor. | |
| Manager & | manager () |
| Get the manager. | |
| const Manager & | manager () const |
| virtual bool | isVisibleOnLayer (const size_t &) const |
| Get the visivility for a layerId. | |
| const wxString & | caption () const |
| void | caption (const wxString &v) |
| int | x () const |
| void | x (const int v) |
| int | y () const |
| void | y (const int v) |
| virtual wxPoint | absolutePosition (DrawingContext &dc) const |
| const wxColour & | color () const |
| void | color (const wxColour &c) |
| void | color (const wxString &s) |
| void | color (const int r, const int g, const int b) |
| void | color (const int r, const int g, const int b, const int alpha) |
| int | zPosition () const |
| void | forceReload () |
| Mark the node as invalidated (to force its refresh for the next canvas update) | |
| bool | isInvalidated () const |
| Get the node is invalidated. | |
| virtual void | move (const int x, const int y) |
| virtual void | mouseDblClick () |
| Mouse double click. | |
Misc | |
| virtual bool | contains (const int, const int, double &) |
| Get if the drawing representation of the node contains the point (x,y) | |
| virtual bool | isContained (const int, const int, const int, const int) const |
| Get if the drawing representation of the node is contained inside a bounding box. More... | |
| virtual void | draw (DrawingContext &dc) |
| Draw the node. | |
| virtual void | drawExternalDrawer (DrawingContext &dc) |
| virtual void | extendBoundingBox (wxPoint &, wxPoint &) |
| Extends the bounding box. | |
| void | clear () |
| bool | empty () const |
| uint | count () const |
| void | add (Item *item) |
| bool | remove (Item *item) |
Additional Inherited Members | |
Public Types inherited from Antares::Map::Item | |
| enum | Type { tyUnknown , tyNode , tyConnection , tyBindingConstraint } |
| using | Vector = std::vector< Item * > |
| using | Set = std::set< Item *, SetCompare > |
| using | Links = std::map< Item *, bool > |
Protected Member Functions inherited from Antares::Map::Item | |
| void | internalClearAllLinks () |
| virtual void | captionHasChanged () |
| virtual void | positionHasChanged () |
| virtual void | colorHasChanged () |
Protected Attributes inherited from Antares::Map::Item | |
| Manager & | pManager |
| wxColour | pColor |
| Color. | |
| bool | pSelected |
| Selected. | |
| bool | pInvalidated |
| invalidated | |
| int | pX |
| Y-Coordinate. | |
| int | pY |
| X-Coordinate. | |
| wxString | pCaption |
| Caption. | |
| Links * | pLinks |
| Linked with other items. | |
| int | pZPosition |
|
inlinevirtual |
Get if the drawing representation of the node is contained inside a bounding box.
This method is used to know if the mouse if over a node or not
Implements Antares::Map::Item.