21 #ifndef __ANTARES_TOOLBOX_MAP_NODE_H__
22 #define __ANTARES_TOOLBOX_MAP_NODE_H__
24 #include <antares/study/study.h>
27 #include "../drawingcontext.h"
29 namespace Antares::Map
77 const wxString& id()
const
84 void position(
const int x,
const int y);
92 virtual void move(
const int x,
const int y);
107 return pCachedPosition;
127 virtual bool contains(
const int x,
const int y,
double& distance);
134 virtual bool isContained(
const int x1,
const int y1,
const int x2,
const int y2)
const;
147 return pAttachedArea;
159 void removeLayerVisibility(
size_t id);
162 virtual void captionHasChanged();
163 virtual void positionHasChanged();
164 virtual void colorHasChanged();
166 void createANewAreaIfNotAlreadyAttached();
172 wxPoint pCachedPosition;
174 wxColour pCachedColorGradientStart;
175 wxColour pCachedColorGradientEnd;
176 wxColour pCachedColorGradientStart2;
177 wxColour pCachedColorGradientEnd2;
179 wxColour pCachedColorText;
Definition for a single area.
Definition: area.h:51
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
A node in a map.
Definition: node.h:39
virtual void refreshCache(wxDC &dc)
Refresh the cache (even if not invalidated)
Definition: node.cpp:122
virtual Type type() const
Type.
Definition: node.h:70
virtual ~Node()
Destructor.
Definition: node.cpp:87
const wxPoint & cachedPosition() const
Get the cached position.
Definition: node.h:105
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: node.cpp:251
virtual void draw(DrawingContext &dc)
Draw the node.
Definition: node.cpp:284
void addLayerVisibility(size_t id=0)
make this node visible/invisible in a layer
Definition: node.cpp:385
virtual void extendBoundingBox(wxPoint &topLeft, wxPoint &bottomRight)
Extends the bounding box.
Definition: node.cpp:362
const wxPoint & cachedSize() const
Get the cached size.
Definition: node.h:113
Node(Manager &manager)
Default constructor.
Definition: node.cpp:56
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: node.cpp:238
bool isVisibleOnLayer(const size_t &layerID) const
Get the visivility for a layerId.
Definition: node.cpp:111
virtual void move(const int x, const int y)
Move the node.
Definition: node.cpp:273