/
qgsmapcanvasmap.sip
56 lines (39 loc) · 1.15 KB
/
qgsmapcanvasmap.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
%ModuleHeaderCode
// fix to allow compilation with sip 4.7 that for some reason
// doesn't add this include to the file where the code from
// ConvertToSubClassCode goes.
#include <qgsmapcanvasmap.h>
%End
class QgsMapCanvasMap : QGraphicsRectItem
{
%TypeHeaderCode
#include <qgsmapcanvasmap.h>
%End
%ConvertToSubClassCode
if (dynamic_cast<QgsMapCanvasMap*>(sipCpp) != NULL)
{
sipClass = sipClass_QgsMapCanvasMap;
}
else
{
sipClass = NULL;
}
%End
public:
//! constructor
QgsMapCanvasMap(QgsMapCanvas* canvas /TransferThis/);
//! resize canvas item and pixmap
void resize(QSize size);
void enableAntiAliasing(bool flag);
void useImageToRender(bool flag);
//! renders map using QgsMapRender to mPixmap
void render();
void setBackgroundColor(const QColor& color);
void setPanningOffset(const QPoint& point);
QPixmap& pixmap();
void paint(QPainter* p, const QStyleOptionGraphicsItem*, QWidget*);
QRectF boundingRect() const;
//! Update contents - can be called while drawing to show the status.
//! Added in version 1.2
void updateContents();
};