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>
69 virtual Type
type()
const;
75 const Item* leftSide()
const
84 const Item* rightSide()
const
89 Direction arrowDirection()
const
91 return pArrowDirection;
93 void arrowDirection(
const Direction& d);
95 Direction direction()
const
99 void direction(
const Direction& d);
106 virtual bool contains(
const int x,
const int y,
double& distance);
108 virtual bool isContained(
const int x1,
const int y1,
const int x2,
const int y2)
const;
136 void drawArrow(wxDC& dc,
const Direction direction,
const wxPoint& rA,
const wxPoint& rB);
144 Direction pDirection;
145 Direction pArrowDirection;
147 wxPoint pCachedAbsolutePosition;
149 wxPoint pCachedMiddlePoint;
150 wxPoint pCachedTextPos;
167#include "connection.hxx"
Definition of a link between two areas (Interconnection)
Definition links.h:50
Definition connection.h:40
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:259
void createANewConnectionIfNeeded()
Create a link if the internal pointers are nil.
Definition connection.cpp:228
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:267
virtual ~Connection()
Destructor.
Definition connection.cpp:137
virtual void draw(DrawingContext &dc)
Draw the node.
Definition connection.cpp:334
Data::AreaLink * attachedAreaLink() const
Get the attached link.
Definition connection.hxx:38
bool isVisibleOnLayer(const size_t &layerID) const
Get the visivility for a layerId.
Definition connection.cpp:168
virtual void extendBoundingBox(wxPoint &topLeft, wxPoint &bottomRight)
Extends the bounding box.
Definition connection.cpp:448
virtual Type type() const
Type of the node.
Definition connection.hxx:28
virtual bool selected() const
Get if the item is selected.
Definition connection.hxx:33
virtual void refreshCache(wxDC &dc)
Refresh the cache (even if not invalidated)
Definition connection.cpp:189
Drawing Context.
Definition drawingcontext.h:43
Manager & manager()
Get the manager.
Definition item.h:91
A convenient container for nodes on the graph.
Definition manager.h:46