21 #ifndef __ANTARES_TOOLBOX_MAP_CONNECTION_H__
22 #define __ANTARES_TOOLBOX_MAP_CONNECTION_H__
26 #include "../tools/tool.h"
27 #include <antares/study/area/area.h>
29 namespace Antares::Map
67 virtual Type
type()
const;
74 const Item* leftSide()
const
84 const Item* rightSide()
const
89 Direction arrowDirection()
const
91 return pArrowDirection;
94 void arrowDirection(
const Direction& d);
96 Direction direction()
const
101 void direction(
const Direction& d);
108 virtual bool contains(
const int x,
const int y,
double& distance);
110 virtual bool isContained(
const int x1,
const int y1,
const int x2,
const int y2)
const;
138 void drawArrow(wxDC& dc,
const Direction direction,
const wxPoint& rA,
const wxPoint& rB);
146 Direction pDirection;
147 Direction pArrowDirection;
149 wxPoint pCachedAbsolutePosition;
151 wxPoint pCachedMiddlePoint;
152 wxPoint pCachedTextPos;
168 #include "connection.hxx"
Definition of a link between two areas (Interconnection)
Definition: links.h:58
Definition: connection.h:38
virtual bool contains(const int x, const int y, double &distance)
Get if the drawing representation of the node contains the point (x,y)
Definition: connection.cpp:289
void createANewConnectionIfNeeded()
Create a link if the internal pointers are nil.
Definition: connection.cpp:252
virtual bool isContained(const int x1, const int y1, const int x2, const int y2) const
Get if the drawing representation of the node is contained inside a bounding box.
Definition: connection.cpp:301
virtual ~Connection()
Destructor.
Definition: connection.cpp:142
virtual void draw(DrawingContext &dc)
Draw the node.
Definition: connection.cpp:368
Data::AreaLink * attachedAreaLink() const
Get the attached link.
Definition: connection.hxx:36
bool isVisibleOnLayer(const size_t &layerID) const
Get the visivility for a layerId.
Definition: connection.cpp:179
virtual void extendBoundingBox(wxPoint &topLeft, wxPoint &bottomRight)
Extends the bounding box.
Definition: connection.cpp:491
Connection(Manager &manager, Item *a, Item *b)
Default constructor.
Definition: connection.cpp:104
virtual Type type() const
Type of the node.
Definition: connection.hxx:26
virtual bool selected() const
Get if the item is selected.
Definition: connection.hxx:31
virtual void refreshCache(wxDC &dc)
Refresh the cache (even if not invalidated)
Definition: connection.cpp:201
Drawing Context.
Definition: drawingcontext.h:41
Manager & manager()
Get the manager.
Definition: item.h:90
A convenient container for nodes on the graph.
Definition: manager.h:44