mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
46 lines
830 B
Plaintext
46 lines
830 B
Plaintext
|
|
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 useQImageToRender(bool flag);
|
|
|
|
//! renders map using QgsMapRender to mPixmap
|
|
void render();
|
|
|
|
void setBgColor(const QColor& color);
|
|
|
|
void setPanningOffset(const QPoint& point);
|
|
|
|
QPixmap& pixmap();
|
|
|
|
void paint(QPainter* p, const QStyleOptionGraphicsItem*, QWidget*);
|
|
|
|
QRectF boundingRect() const;
|
|
|
|
};
|
|
|