21#ifndef __ANTARES_TOOLBOX_MAP_NODE_H__
22#define __ANTARES_TOOLBOX_MAP_NODE_H__
24#include <antares/study/study.h>
27#include "../drawingcontext.h"
78 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;
158 void removeLayerVisibility(
size_t id);
161 virtual void captionHasChanged();
162 virtual void positionHasChanged();
163 virtual void colorHasChanged();
165 void createANewAreaIfNotAlreadyAttached();
171 wxPoint pCachedPosition;
173 wxColour pCachedColorGradientStart;
174 wxColour pCachedColorGradientEnd;
175 wxColour pCachedColorGradientStart2;
176 wxColour pCachedColorGradientEnd2;
178 wxColour pCachedColorText;
Definition for a single area.
Definition area.h:52
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
A node in a map.
Definition node.h:41
virtual void refreshCache(wxDC &dc)
Refresh the cache (even if not invalidated)
Definition node.cpp:114
virtual Type type() const
Type.
Definition node.h:71
const wxPoint & cachedSize() const
Get the cached size.
Definition node.h:113
virtual ~Node()
Destructor.
Definition node.cpp:82
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:234
virtual void draw(DrawingContext &dc)
Draw the node.
Definition node.cpp:265
void addLayerVisibility(size_t id=0)
make this node visible/invisible in a layer
Definition node.cpp:345
virtual void extendBoundingBox(wxPoint &topLeft, wxPoint &bottomRight)
Extends the bounding box.
Definition node.cpp:330
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:221
bool isVisibleOnLayer(const size_t &layerID) const
Get the visivility for a layerId.
Definition node.cpp:106
const wxPoint & cachedPosition() const
Get the cached position.
Definition node.h:105
virtual void move(const int x, const int y)
Move the node.
Definition node.cpp:254