MapRouteItem Class Reference

Graphics item for map route (a.k.a track). More...

#include <maprouteitem.h>

List of all members.

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.

Detailed Description

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.

Author:
Sami Rämö - sami.ramo@ixonos.com

Constructor & Destructor Documentation

MapRouteItem::MapRouteItem ( QGraphicsItem *  parent = 0  )  [explicit]

Constructor.

Parameters:
parent Parent QGraphicsItem
MapRouteItem::MapRouteItem ( Route route,
QGraphicsItem *  parent = 0 
) [explicit]

Constructor with building the route lines.

Parameters:
route Route information used for building the lines presenting a track
parent Parent QGraphicsItem

Member Function Documentation

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.

Parameters:
route Route information used for building the lines presenting a track

The documentation for this class was generated from the following files:

Generated on Fri Sep 3 12:05:41 2010 for Situare client for Maemo by  doxygen 1.6.1