45 MapBox(QWidget *parent = 0);
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);
54 void zoom(
double zoomFactor);
55 void scroll(
int deltaX,
int deltaY);
Widget to display the maps of various spacial aspects of the model.
double dy2
coordinates of corner pixels of destination - widget - rectangle
vector< QImage > layersVector
Vector of QImages.
vector< QString > layersNameVector
Vector of layer names.
void queryRequestOnPx(int px_ID, int currentLayerIndex, bool newRequest)
double sy2
coordinates of corner pixels of source - pixmap - rectangle
void scroll(int deltaX, int deltaY)
void addLayer(QString layerName_h)
void updatePixmap(const QImage &image, bool reFit=false)
int getLayerIndex(QString layerName_h="")
Return the index of the specified layer (null to ask for the current one)
void zoom(double zoomFactor)
void prepareQueryEvent(QPoint click)
void updateImage(QString layerName_h, const QImage &image_h)
void wheelEvent(QWheelEvent *event)
void paintEvent(QPaintEvent *event)
Reimplementation of the standard paintEvent method.
void mousePressEvent(QMouseEvent *event)
void switchToLayer(QString layerName_h)
Change the layer that currentLayer and currentLayerName points.
void updatePixel(QString layerName_h, int x_h, int y_h, QColor color_h)
void keyPressEvent(QKeyEvent *event)
void mouseMoveEvent(QMouseEvent *event)