|
Antares Simulator
Power System Simulator
|
Classes | |
| struct | SetCompare |
Public Types | |
| enum | Type { tyUnknown , tyNode , tyConnection , tyBindingConstraint } |
| using | Vector = std::vector< Item * > |
| using | Set = std::set< Item *, SetCompare > |
| using | Links = std::map< Item *, bool > |
Public Member Functions | |
Constructor & Destructor | |
| Item (Manager &manager, const int zPos=0) | |
| Constructor. | |
| virtual | ~Item () |
| Destructor. | |
| virtual Type | type () const |
| Type. | |
Manager | |
| Manager & | manager () |
| Get the manager. | |
| const Manager & | manager () const |
layerVisibility | |
| virtual bool | isVisibleOnLayer (const size_t &) const |
| Get the visivility for a layerId. | |
Caption | |
| const wxString & | caption () const |
| void | caption (const wxString &v) |
X-Coordinate | |
| int | x () const |
| void | x (const int v) |
Y-Coordinate | |
| int | y () const |
| void | y (const int v) |
| virtual wxPoint | absolutePosition (DrawingContext &dc) const |
Color | |
| 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) |
Selection | |
| virtual bool | selected () const |
| virtual void | selected (bool v) |
Z-Position | |
| int | zPosition () const |
Cache | |
| virtual void | refreshCache (wxDC &dc)=0 |
| Refresh the cache (even if not invalidated) | |
| void | forceReload () |
| Mark the node as invalidated (to force its refresh for the next canvas update) | |
| bool | isInvalidated () const |
| Get the node is invalidated. | |
Misc | |
| virtual bool | contains (const int x, const int y, double &distance)=0 |
| Get if the drawing representation of the node contains the point (x,y) More... | |
| virtual bool | isContained (const int x1, const int y1, const int x2, const int y2) const =0 |
| Get if the drawing representation of the node is contained inside a bounding box. More... | |
| virtual void | draw (DrawingContext &dc)=0 |
| Draw the node. | |
| virtual void | drawExternalDrawer (DrawingContext &) |
| virtual void | move (const int x, const int y) |
| virtual void | extendBoundingBox (wxPoint &topLeft, wxPoint &bottomRight)=0 |
| Extends the bounding box. | |
Mouse handling | |
| 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 |
| class | ::Antares::Map::Manager |
| class | ::Antares::Map::Connection |
| class | ::Antares::Map::BindingConstraint |
| virtual void | mouseDblClick () |
| Mouse double click. | |
| void | internalClearAllLinks () |
| virtual void | captionHasChanged () |
| virtual void | positionHasChanged () |
| virtual void | colorHasChanged () |
|
pure virtual |
Get if the drawing representation of the node contains the point (x,y)
This method is used to know if the mouse if over a node or not
Implemented in Antares::Map::BindingConstraint, Antares::Map::Node, and Antares::Map::Connection.
|
pure virtual |
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
Implemented in Antares::Map::BindingConstraint, Antares::Map::Node, and Antares::Map::Connection.