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 );
204 QPainter::CompositionMode
blendMode()
const {
return mBlendMode; }
210 void setBlendMode(
const QPainter::CompositionMode blendMode );
224 void setInverted(
const bool inverted );
236 void setCentered(
const bool centered );
241 void connectSignals();
247 void overviewExtentChanged();
260 QPainter::CompositionMode mBlendMode;
269 void createDefaultFrameSymbol();
273 #endif // QGSCOMPOSERMAPOVERVIEW_H bool centered() const
Returns whether the extent of the map is forced to center on the overview.
virtual void draw(QPainter *painter)=0
Draws the item on to a painter.
An item which is drawn inside a QgsComposerMap, eg a grid or map overview.
virtual bool usesAdvancedEffects() const
Returns true if the item is drawn using advanced effects, such as blend modes.
An individual overview which is drawn above the map content in a QgsComposerMap, and shows the extent...
const QgsFillSymbolV2 * frameSymbol() const
Gets the fill symbol used for drawing the overview extent.
QgsFillSymbolV2 * frameSymbol()
Gets the fill symbol used for drawing the overview extent.
QgsComposerMapItem & operator[](int idx)
Returns a reference to an item within the stack.
Object representing map window.
QList< QgsComposerMapItem *> asList() const
Returns a list of QgsComposerMapItems contained by the stack.
bool inverted() const
Returns whether the overview frame is inverted, ie, whether the shaded area is drawn outside the exte...
A collection of map items which are drawn above the map content in a QgsComposerMap.
int frameMapId() const
Returns id of source map.
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc) override
Sets map item state from a DOM document.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const override
Stores map item state in DOM element.
virtual bool readXML(const QDomElement &elem, const QDomDocument &doc)=0
Sets the item stack's state from a DOM document.
QPainter::CompositionMode blendMode() const
Retrieves the blending mode used for drawing the overview.
A collection of overviews which are drawn above the map content in a QgsComposerMap.