18 #ifndef QGSCOMPOSERMAPOVERVIEW_H
19 #define QGSCOMPOSERMAPOVERVIEW_H
66 void removeOverview(
const QString& overviewId );
74 void moveOverviewUp(
const QString& overviewId );
82 void moveOverviewDown(
const QString& overviewId );
174 void setFrameMap(
const int mapId );
203 QPainter::CompositionMode
blendMode()
const {
return mBlendMode; }
209 void setBlendMode(
const QPainter::CompositionMode blendMode );
223 void setInverted(
const bool inverted );
235 void setCentered(
const bool centered );
240 void connectSignals();
246 void overviewExtentChanged();
259 QPainter::CompositionMode mBlendMode;
268 void createDefaultFrameSymbol();
272 #endif // QGSCOMPOSERMAPOVERVIEW_H
virtual void draw(QPainter *painter)=0
Draws the item on to a painter.
bool centered() const
Returns whether the extent of the map is forced to center on the overview.
An item which is drawn inside a QgsComposerMap, eg a grid or map overview.
An individual overview which is drawn above the map content in a QgsComposerMap, and shows the extent...
QgsFillSymbolV2 * frameSymbol()
Gets the fill symbol used for drawing the overview extent.
QList< QgsComposerMapItem * > asList() const
Returns a list of QgsComposerMapItems contained by the stack.
QPainter::CompositionMode blendMode() const
Retrieves the blending mode used for drawing the overview.
QgsComposerMapItem & operator[](int idx)
Returns a reference to an item within the stack.
Object representing map window.
A collection of map items which are drawn above the map content in a QgsComposerMap.
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc) override
Sets map item state from a DOM document.
virtual bool usesAdvancedEffects() const
Returns true if the item is drawn using advanced effects, such as blend modes.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const override
Stores map item state in DOM element.
const QgsFillSymbolV2 * frameSymbol() const
Gets the fill symbol used for drawing the overview extent.
virtual bool readXML(const QDomElement &elem, const QDomDocument &doc)=0
Sets the item stack's state from a DOM document.
int frameMapId() const
Returns id of source map.
bool inverted() const
Returns whether the overview frame is inverted, ie, whether the shaded area is drawn outside the exte...
A collection of overviews which are drawn above the map content in a QgsComposerMap.