1
/** \ingroup MapComposer
2
* A composer class that displays svg files or raster format (jpg, png, ...)
4
class QgsComposerPicture: QgsComposerItem
8
#include "qgscomposerpicture.h"
12
QgsComposerPicture( QgsComposition *composition /TransferThis/);
13
~QgsComposerPicture();
15
/**Reimplementation of QCanvasItem::paint*/
16
void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
18
/**Sets the source file of the image (may be svg or a raster format)*/
19
void setPictureFile( const QString& path );
20
QString pictureFile() const;
22
/**Sets this items bound in scene coordinates such that 1 item size units
23
corresponds to 1 scene size unit*/
24
void setSceneRect( const QRectF& rectangle );
26
/** stores state in Dom node
27
* @param node is Dom node corresponding to 'Composer' tag
28
* @param temp write template file
30
bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
32
/** sets state from Dom document
33
* @param itemElem is Dom node corresponding to item tag
35
bool readXML( const QDomElement& itemElem, const QDomDocument& doc );
37
/**Sets the map object for rotation (by id). A value of -1 disables the map rotation*/
38
void setRotationMap( int composerMapId );
39
/**Returns the id of the rotation map*/
40
int rotationMap() const;
41
/**True if the rotation is taken from a map item*/
42
bool useRotationMap() const;
45
virtual void setRotation( double r );
49
/**Tell the configuration widget that the settings need to be updated*/
50
void settingsChanged();