Main Page | Namespace List | Class List | Directories | File List | Class Members | File Members

RouteMaker Class Reference

#include <RouteMaker.H>

List of all members.


Detailed Description

Class responsible for using existing MapTiles to draw a bike route that has been found by the AI path search algorithm. Graphics done using the gui package Qt.


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.


Constructor & Destructor Documentation

RouteMaker::RouteMaker int  x,
int  y,
int  zoom
 

Constructor that takes x and y geographic locations and an int indicating zoom level.

Here is the call graph for this function:

RouteMaker::~RouteMaker  )  [virtual]
 


Member Function Documentation

string RouteMaker::createPNG  ) 
 

Method that creates an image from the drawn route in the PNG format and returns its file name.

void RouteMaker::drawRoute double  xa,
double  ya,
double  xb,
double  yb
 

Method to draw the route based on locations.

void RouteMaker::drawText string  road,
double  fx,
double  fy,
double  x,
double  y
 

Method to insert peritinent text (road names, etc.) on top of the map.

void RouteMaker::icon double  x,
double  y,
int  icon
 

Method to insert icons indicating pertinent locations on a route, like the start and end points.

void RouteMaker::loadTiles int  x,
int  y,
int  zoom
 

Method that loads the appropriate tile images based on location and zoom level.


Member Data Documentation

QCanvas* RouteMaker::m_canvas [private]
 

Pointer to a Qt Canvas, on which the class performs drawing operations before converting the route to an image.

QCanvasPixmapArray* RouteMaker::m_e [private]
 

Pointer to an array containing pairs of lists of QPixmaps and QPoints, for the end of the route.

QCanvasSprite* RouteMaker::m_end [private]
 

Movable canvas viewer with ties to the end point.

QCanvasPixmapArray* RouteMaker::m_p [private]
 

Pointer to an array containing pairs of lists of QPixmaps and QPoints, for intermediate points in the route.

QPen* RouteMaker::m_pen [private]
 

Pointer to a Qt Pen, used for drawing lines on a QCanvas.

QPixmap* RouteMaker::m_pix [private]
 

Pointer to a Qt Pixmap, used as an intermediate step between the QCanvas and an image file.

QCanvasPixmapArray* RouteMaker::m_s [private]
 

Pointer to an array containing pairs of lists of QPixmaps and QPoints, for the start of the route.

QCanvasSprite* RouteMaker::m_star [private]
 

Movable canvas viewer.

QCanvasSprite* RouteMaker::m_star1 [private]
 

Movable canvas viewer.

QCanvasSprite* RouteMaker::m_start [private]
 

Movable canvas viewer with ties to the start point.

int RouteMaker::m_xOff [private]
 

int RouteMaker::m_yOff [private]
 

int RouteMaker::m_zoom [private]
 

Integer flag indicating zoom level.


The documentation for this class was generated from the following files:
Generated on Mon May 16 11:08:54 2005 for BikeQuest by  doxygen 1.4.0