Graphics item for map route (a.k.a track). More...
#include <maprouteitem.h>
Public Member Functions | |
MapRouteItem (QGraphicsItem *parent=0) | |
Constructor. | |
MapRouteItem (Route *route, QGraphicsItem *parent=0) | |
Constructor with building the route lines. | |
void | clear () |
Clear the route. | |
void | setRoute (Route *route) |
Set route. |
Graphics item for map route (a.k.a track).
Class is derived from QGraphicsItemGroup and is used as a container for QGraphicsLineItem items which are created between Route geometry points.
MapRouteItem::MapRouteItem | ( | QGraphicsItem * | parent = 0 |
) | [explicit] |
Constructor.
parent | Parent QGraphicsItem |
MapRouteItem::MapRouteItem | ( | Route * | route, | |
QGraphicsItem * | parent = 0 | |||
) | [explicit] |
Constructor with building the route lines.
route | Route information used for building the lines presenting a track | |
parent | Parent QGraphicsItem |
void MapRouteItem::clear | ( | ) |
Clear the route.
Deletes all line items.
void MapRouteItem::setRoute | ( | Route * | route | ) |
Set route.
Does clear old route before setting the new one. Does create lines presenting a track.
route | Route information used for building the lines presenting a track |