2007-01-09 02:39:15 +00:00
|
|
|
|
2007-08-06 23:33:00 +00:00
|
|
|
%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
|
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
class QgsMapCanvasMap : QgsMapCanvasItem
|
2007-01-09 02:39:15 +00:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsmapcanvasmap.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
%ConvertToSubClassCode
|
2012-12-20 12:35:09 +02:00
|
|
|
if (dynamic_cast<QgsMapCanvasMap*>(sipCpp) != NULL)
|
|
|
|
{
|
|
|
|
sipClass = sipClass_QgsMapCanvasMap;
|
|
|
|
}
|
|
|
|
else
|
2007-01-09 02:39:15 +00:00
|
|
|
{
|
|
|
|
sipClass = NULL;
|
|
|
|
}
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2012-12-20 12:35:09 +02:00
|
|
|
|
2007-01-09 02:39:15 +00:00
|
|
|
//! constructor
|
2012-09-24 02:28:15 +02:00
|
|
|
QgsMapCanvasMap( QgsMapCanvas* canvas /TransferThis/ );
|
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
//! @note added in 2.1
|
|
|
|
void setContent( const QImage& image, const QgsRectangle& rect );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
//! @note added in 2.1
|
|
|
|
QImage contentImage() const;
|
2007-01-09 02:39:15 +00:00
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
virtual void paint( QPainter * painter );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
|
|
|
|
void resize( QSize size ) /Deprecated/;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
|
|
|
|
void enableAntiAliasing( bool flag ) /Deprecated/;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
|
|
|
|
void render() /Deprecated/;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
|
|
|
|
void setBackgroundColor( const QColor& color ) /Deprecated/;
|
2007-01-09 02:39:15 +00:00
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
|
|
|
|
void setPanningOffset( const QPoint& point ) /Deprecated/;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-12-05 18:27:45 +07:00
|
|
|
//! @deprecated in 2.1
|
|
|
|
QPaintDevice& paintDevice() /Deprecated/;
|
|
|
|
|
|
|
|
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
|
|
|
|
void updateContents() /Deprecated/;
|
2007-01-09 02:39:15 +00:00
|
|
|
};
|