|
|
| BindingConstraint (Manager &manager) |
| Constructor.
|
|
virtual | ~BindingConstraint () |
| Destructor.
|
|
virtual Type | type () const |
| Type.
|
|
|
virtual bool | selected () const |
|
virtual void | selected (bool v) |
|
|
virtual void | refreshCache (wxDC &dc) |
| Refresh the cache (even if not invalidated)
|
|
| 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.
|
|
|
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.
|
|
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) |
|
|
enum | Type { tyUnknown
, tyNode
, tyConnection
, tyBindingConstraint
} |
|
using | Vector = std::vector<Item*> |
|
using | Set = std::set<Item*, SetCompare> |
|
using | Links = std::map<Item*, bool> |
|
void | internalClearAllLinks () |
|
virtual void | captionHasChanged () |
|
virtual void | positionHasChanged () |
|
virtual void | colorHasChanged () |
|
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 |
|
◆ contains()
virtual bool Antares::Map::BindingConstraint::contains |
( |
const int | , |
|
|
const int | , |
|
|
double & | ) |
|
inlinevirtual |
Get if the drawing representation of the node contains the point (x,y)
Implements Antares::Map::Item.
◆ draw()
◆ drawExternalDrawer()
void Antares::Map::BindingConstraint::drawExternalDrawer |
( |
DrawingContext & | dc | ) |
|
|
virtual |
◆ extendBoundingBox()
virtual void Antares::Map::BindingConstraint::extendBoundingBox |
( |
wxPoint & | , |
|
|
wxPoint & | ) |
|
inlinevirtual |
◆ isContained()
virtual bool Antares::Map::BindingConstraint::isContained |
( |
const int | , |
|
|
const int | , |
|
|
const int | , |
|
|
const int | ) const |
|
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.
◆ refreshCache()
void Antares::Map::BindingConstraint::refreshCache |
( |
wxDC & | dc | ) |
|
|
virtual |
◆ selected() [1/2]
virtual bool Antares::Map::BindingConstraint::selected |
( |
| ) |
const |
|
inlinevirtual |
◆ selected() [2/2]
void Antares::Map::BindingConstraint::selected |
( |
bool | v | ) |
|
|
virtual |
◆ type()
virtual Type Antares::Map::BindingConstraint::type |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files:
- src/ui/simulator/toolbox/components/map/nodes/bindingconstraint.h
- src/ui/simulator/toolbox/components/map/nodes/bindingconstraint.cpp