QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
proj
qgscoordinateboundspreviewmapwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
* qgscoordinateboundspreviewmapwidget.h *
3
* Copyright (C) 2019 by Nyall Dawson *
4
* nyall dot dawson at gmail dot com *
5
* *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
10
***************************************************************************/
11
#ifndef QGSCOORDINATEBOUNDSPREVIEWWIDGET_H
12
#define QGSCOORDINATEBOUNDSPREVIEWWIDGET_H
13
14
#include "qgis_gui.h"
15
#include "
qgis_sip.h
"
16
#include "
qgsmapcanvas.h
"
17
18
class
QgsVertexMarker
;
19
class
QgsMapToolPan
;
20
27
28
class
GUI_EXPORT
QgsCoordinateBoundsPreviewMapWidget
:
public
QgsMapCanvas
29
{
30
Q_OBJECT
31
32
public
:
36
QgsCoordinateBoundsPreviewMapWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
37
38
~QgsCoordinateBoundsPreviewMapWidget
()
override
;
39
46
void
setCanvasRect
(
const
QgsRectangle
&rect );
47
52
QgsRectangle
canvasRect
()
const
;
53
58
void
setPreviewRect
(
const
QgsRectangle
&rect );
59
60
private
:
61
QgsRubberBand
*mPreviewBand =
nullptr
;
62
QgsRubberBand
*mCanvasPreviewBand =
nullptr
;
63
QgsVertexMarker
*mCanvasCenterMarker =
nullptr
;
64
QgsMapToolPan
*mPanTool =
nullptr
;
65
66
QList<QgsMapLayer *> mLayers;
67
68
QgsRectangle
mCanvasRect;
69
};
70
71
#endif
// QGSCOORDINATEBOUNDSPREVIEWWIDGET_H
QgsCoordinateBoundsPreviewMapWidget::setPreviewRect
void setPreviewRect(const QgsRectangle &rect)
Sets the "preview" rectangle for the bounds overview map.
Definition
qgscoordinateboundspreviewmapwidget.cpp:62
QgsCoordinateBoundsPreviewMapWidget::QgsCoordinateBoundsPreviewMapWidget
QgsCoordinateBoundsPreviewMapWidget(QWidget *parent=nullptr)
Constructor for QgsCoordinateBoundsPreviewMapWidget.
Definition
qgscoordinateboundspreviewmapwidget.cpp:25
QgsCoordinateBoundsPreviewMapWidget::setCanvasRect
void setCanvasRect(const QgsRectangle &rect)
Sets the canvas bounds rectangle for the bounds overview map.
Definition
qgscoordinateboundspreviewmapwidget.cpp:98
QgsCoordinateBoundsPreviewMapWidget::canvasRect
QgsRectangle canvasRect() const
Returns the current canvas bounds rectangle shown in the map.
Definition
qgscoordinateboundspreviewmapwidget.cpp:93
QgsMapCanvas::QgsMapCanvas
QgsMapCanvas(QWidget *parent=nullptr)
Constructor.
Definition
qgsmapcanvas.cpp:145
QgsMapToolPan
A map tool for panning the map.
Definition
qgsmaptoolpan.h:31
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:47
QgsRubberBand
Responsible for drawing transient features (e.g.
Definition
qgsrubberband.h:98
QgsVertexMarker
A map canvas item for marking vertices of features using e.g.
Definition
qgsvertexmarker.h:37
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsmapcanvas.h
Generated on
for QGIS API Documentation by
1.17.0