|
Public Member Functions |
| RouteMaker (int x, int y, int zoom) |
| Constructor that takes x and y geographic locations and an int indicating zoom level.
|
virtual | ~RouteMaker () |
void | loadTiles (int x, int y, int zoom) |
| Method that loads the appropriate tile images based on location and zoom level.
|
void | drawRoute (double xa, double ya, double xb, double yb) |
| Method to draw the route based on locations.
|
void | drawText (string road, double fx, double fy, double x, double y) |
| Method to insert peritinent text (road names, etc.) on top of the map.
|
string | createPNG () |
| Method that creates an image from the drawn route in the PNG format and returns its file name.
|
void | icon (double x, double y, int icon) |
| Method to insert icons indicating pertinent locations on a route, like the start and end points.
|
Private Attributes |
QCanvas * | m_canvas |
| Pointer to a Qt Canvas, on which the class performs drawing operations before converting the route to an image.
|
int | m_zoom |
| Integer flag indicating zoom level.
|
int | m_xOff |
int | m_yOff |
QPen * | m_pen |
| Pointer to a Qt Pen, used for drawing lines on a QCanvas.
|
QPixmap * | m_pix |
| Pointer to a Qt Pixmap, used as an intermediate step between the QCanvas and an image file.
|
QCanvasPixmapArray * | m_s |
| Pointer to an array containing pairs of lists of QPixmaps and QPoints, for the start of the route.
|
QCanvasPixmapArray * | m_e |
| Pointer to an array containing pairs of lists of QPixmaps and QPoints, for the end of the route.
|
QCanvasPixmapArray * | m_p |
| Pointer to an array containing pairs of lists of QPixmaps and QPoints, for intermediate points in the route.
|
QCanvasSprite * | m_start |
| Movable canvas viewer with ties to the start point.
|
QCanvasSprite * | m_end |
| Movable canvas viewer with ties to the end point.
|
QCanvasSprite * | m_star |
| Movable canvas viewer.
|
QCanvasSprite * | m_star1 |
| Movable canvas viewer.
|