Logo Search packages:      
Sourcecode: mapnik-viewer version File versions  Download package

Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes

MapWidget Class Reference

List of all members.

Public Types

enum  eTool { ZoomToBox = 1, Pan, Info }

Public Slots

void layerSelected (int)
void updateMap ()
void zoomToLevel (int level)


void mapViewChanged ()

Public Member Functions

void defaultView ()
boost::shared_ptr< mapnik::Map > getMap ()
 MapWidget (QWidget *parent=0)
void panDown ()
void panLeft ()
void panRight ()
void panUp ()
QPixmap const & pixmap () const
void setMap (boost::shared_ptr< mapnik::Map > map)
void setTool (eTool tool)
void zoomIn ()
void zoomOut ()
void zoomToBox (mapnik::box2d< double > const &box)

Protected Member Functions

void export_to_file (unsigned width, unsigned height, std::string const &filename, std::string const &type)
void keyPressEvent (QKeyEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void paintEvent (QPaintEvent *ev)
void resizeEvent (QResizeEvent *ev)

Private Attributes

eTool cur_tool_
bool drag_
int end_x_
int end_y_
mapnik::box2d< double > extent_
bool first_
boost::shared_ptr< mapnik::Map > map_
QPen pen_
QPixmap pix_
int selected_
int selectedLayer_
int start_x_
int start_y_

Detailed Description

Definition at line 35 of file mapwidget.hpp.

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

Generated by  Doxygen 1.6.0   Back to index