QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
gui
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 "
qgsmapcanvas.h
"
15
#include "
qgis_sip.h
"
16
#include "qgis_gui.h"
17
18
class
QgsVertexMarker
;
19
27
class
GUI_EXPORT
QgsCoordinateBoundsPreviewMapWidget
:
public
QgsMapCanvas
28
{
29
Q_OBJECT
30
31
public
:
32
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
62
QgsRubberBand
*mPreviewBand =
nullptr
;
63
QgsRubberBand
*mCanvasPreviewBand =
nullptr
;
64
QgsVertexMarker
*mCanvasCenterMarker =
nullptr
;
65
66
QList<QgsMapLayer *> mLayers;
67
68
QgsRectangle
mCanvasRect;
69
70
};
71
72
#endif // QGSCOORDINATEBOUNDSPREVIEWWIDGET_H
QgsCoordinateBoundsPreviewMapWidget
A widget for showing the bounds of a rectangular region on an interactive map.
Definition:
qgscoordinateboundspreviewmapwidget.h:28
qgsmapcanvas.h
QgsRubberBand
A class for drawing transient features (e.g.
Definition:
qgsrubberband.h:50
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition:
qgsmapcanvas.h:85
QgsRectangle
A rectangle specified with double values.
Definition:
qgsrectangle.h:42
QgsVertexMarker
A class for marking vertices of features using e.g.
Definition:
qgsvertexmarker.h:37
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition:
qgis_sip.h:53
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20