45 MapBox(QWidget *parent = 0);
46 int getLayerIndex(QString layerName_h=
"");
49 void updatePixel(QString layerName_h,
int x_h,
int y_h, QColor color_h);
50 void updateImage(QString layerName_h,
const QImage& image_h);
51 void switchToLayer(QString layerName_h);
52 void addLayer(QString layerName_h);
54 void zoom(
double zoomFactor);
55 void scroll(
int deltaX,
int deltaY);
58 void queryRequestOnPx(
int px_ID,
int currentLayerIndex,
bool newRequest);
61 void updatePixmap(
const QImage &image,
bool reFit=
false);
62 void paintEvent(QPaintEvent *event);
63 void prepareQueryEvent(QPoint click);
64 void keyPressEvent(QKeyEvent *event);
65 void wheelEvent(QWheelEvent *event);
66 void mousePressEvent(QMouseEvent *event);
67 void mouseMoveEvent(QMouseEvent *event);
73 double sx1, sy1, sx2,
sy2;
74 double dx1, dy1, dx2,
dy2;
vector< QImage > layersVector
Vector of QImages.
double dy2
coordinates of corner pixels of destination - widget - rectangle
double sy2
coordinates of corner pixels of source - pixmap - rectangle
Widget to display the maps of various spacial aspects of the model.
vector< QString > layersNameVector
Vector of layer names.