21 #ifndef EDGEMAPOBJECT_H 22 #define EDGEMAPOBJECT_H 29 #include <QMapControl/GeometryLineString.h> 30 #include <QMapControl/Geometry.h> 42 static QPen mNormalPen, mSelectedPen;
44 std::shared_ptr<NodeData::Edge> mEdge;
46 explicit EdgeGraphics(
const std::vector<qmapcontrol::PointWorldCoord>& points, std::shared_ptr<NodeData::Edge>
edge);
48 virtual void draw(QPainter& painter,
const qmapcontrol::RectWorldCoord& backbuffer_rect_coord,
const int& controller_zoom);
53 void buildArrow(
const qmapcontrol::PointWorldCoord& from,
const qmapcontrol::PointWorldCoord &to);
67 bool selected()
const {
return mGeometry->selected(); }
69 std::shared_ptr<NodeData>
node()
const {
return mEdge->source.lock(); }
70 std::shared_ptr<NodeData>
target()
const {
return mEdge->target.lock(); }
80 std::shared_ptr<NodeData::Edge> mEdge;
82 std::shared_ptr<EdgeGraphics> mGeometry;
86 #endif // EDGEMAPOBJECT_H
static const double minTextZoom
Definition: edgemapobject.h:50
Definition: myutils.h:206
void edgeSelectionHasChanged(EdgeMapObject *object)
Definition: moc_edgemapobject.cpp:139
EdgeMapObject(MapObjectsController *controller, std::shared_ptr< NodeData::Edge > edge)
Definition: edgemapobject.cpp:41
static const double minZoom
Definition: edgemapobject.h:50
EdgeGraphics(const std::vector< qmapcontrol::PointWorldCoord > &points, std::shared_ptr< NodeData::Edge > edge)
Definition: edgemapobject.cpp:59
Definition: edgemapobject.h:41
virtual void draw(QPainter &painter, const qmapcontrol::RectWorldCoord &backbuffer_rect_coord, const int &controller_zoom)
Definition: edgemapobject.cpp:68
std::shared_ptr< NodeData > node() const
Definition: edgemapobject.h:69
Definition: mapobject.h:30
static const double maxZoom
Definition: edgemapobject.h:50
std::shared_ptr< NodeData > target() const
Definition: edgemapobject.h:70
Definition: mapobjectscontroller.h:91
Definition: edgemapobject.h:56
Definition: csvspecspage.h:20
std::shared_ptr< qmapcontrol::Geometry > getGeometryEntity() const
Definition: edgemapobject.h:63
bool selected() const
Definition: edgemapobject.h:67