QGIS API Documentation
2.8.2-Wien
|
A collection of overviews which are drawn above the map content in a QgsComposerMap. More...
#include <qgscomposermapoverview.h>
Public Member Functions | |
QgsComposerMapOverviewStack (QgsComposerMap *map) | |
Constructor for QgsComposerMapOverviewStack. | |
virtual | ~QgsComposerMapOverviewStack () |
void | addOverview (QgsComposerMapOverview *overview) |
Adds a new map overview to the stack and takes ownership of the overview. | |
QList< QgsComposerMapOverview * > | asList () const |
Returns a list of QgsComposerMapOverviews contained by the stack. | |
const QgsComposerMapOverview * | constOverview (const QString &overviewId) const |
Returns a const reference to an overview within the stack. | |
void | moveOverviewDown (const QString &overviewId) |
Moves an overview down the stack, causing it to be rendered below other overviews. | |
void | moveOverviewUp (const QString &overviewId) |
Moves an overview up the stack, causing it to be rendered above other overviews. | |
QgsComposerMapOverview & | operator[] (int idx) |
Returns a reference to an overview within the stack. | |
QgsComposerMapOverview * | overview (const QString &overviewId) const |
Returns a reference to an overview within the stack. | |
QgsComposerMapOverview * | overview (const int index) const |
Returns a reference to an overview within the stack. | |
bool | readXML (const QDomElement &elem, const QDomDocument &doc) override |
Sets the overview stack's state from a DOM document. | |
void | removeOverview (const QString &overviewId) |
Removes an overview from the stack and deletes the corresponding QgsComposerMapOverview. | |
Public Member Functions inherited from QgsComposerMapItemStack | |
QgsComposerMapItemStack (QgsComposerMap *map) | |
Constructor for QgsComposerMapItemStack. | |
virtual | ~QgsComposerMapItemStack () |
bool | containsAdvancedEffects () const |
Returns whether any items within the stack contain advanced effects, such as blending modes. | |
void | drawItems (QPainter *painter) |
Draws the items from the stack on a specified painter. | |
int | size () const |
Returns the number of items in the stack. | |
virtual bool | writeXML (QDomElement &elem, QDomDocument &doc) const |
Stores the state of the item stack in a DOM node. |
Additional Inherited Members | |
Protected Member Functions inherited from QgsComposerMapItemStack | |
void | addItem (QgsComposerMapItem *item) |
Adds a new map item to the stack and takes ownership of the item. | |
const QgsComposerMapItem * | constItem (const QString &itemId) const |
Returns a const reference to an item within the stack. | |
QgsComposerMapItem * | item (const QString &itemId) const |
Returns a reference to an item within the stack. | |
QgsComposerMapItem * | item (const int index) const |
Returns a reference to an item within the stack. | |
void | moveItemDown (const QString &itemId) |
Moves an item up the stack, causing it to be rendered above other items. | |
void | moveItemUp (const QString &itemId) |
Moves an item up the stack, causing it to be rendered above other items. | |
void | removeItem (const QString &itemId) |
Removes an item from the stack and deletes the corresponding QgsComposerMapItem. | |
void | removeItems () |
Clears the item stack and deletes all QgsComposerMapItems contained by the stack. | |
Protected Attributes inherited from QgsComposerMapItemStack | |
QgsComposerMap * | mComposerMap |
QList< QgsComposerMapItem * > | mItems |
A collection of overviews which are drawn above the map content in a QgsComposerMap.
The overview stack controls which overviews are drawn and the order they are drawn in.
Definition at line 39 of file qgscomposermapoverview.h.
QgsComposerMapOverviewStack::QgsComposerMapOverviewStack | ( | QgsComposerMap * | map | ) |
Constructor for QgsComposerMapOverviewStack.
map | QgsComposerMap the overview stack is attached to |
Definition at line 307 of file qgscomposermapoverview.cpp.
|
virtual |
Definition at line 313 of file qgscomposermapoverview.cpp.
void QgsComposerMapOverviewStack::addOverview | ( | QgsComposerMapOverview * | overview | ) |
Adds a new map overview to the stack and takes ownership of the overview.
The overview will be added to the end of the stack, and rendered above any existing map overviews already present in the stack.
overview | QgsComposerMapOverview to add to the stack |
Definition at line 318 of file qgscomposermapoverview.cpp.
QList< QgsComposerMapOverview * > QgsComposerMapOverviewStack::asList | ( | ) | const |
Returns a list of QgsComposerMapOverviews contained by the stack.
Reimplemented from QgsComposerMapItemStack.
Definition at line 363 of file qgscomposermapoverview.cpp.
const QgsComposerMapOverview * QgsComposerMapOverviewStack::constOverview | ( | const QString & | overviewId | ) | const |
Returns a const reference to an overview within the stack.
overviewId | id for the QgsComposerMapOverview to find |
Definition at line 338 of file qgscomposermapoverview.cpp.
void QgsComposerMapOverviewStack::moveOverviewDown | ( | const QString & | overviewId | ) |
Moves an overview down the stack, causing it to be rendered below other overviews.
overviewId | id for the QgsComposerMapOverview to move down |
Definition at line 333 of file qgscomposermapoverview.cpp.
void QgsComposerMapOverviewStack::moveOverviewUp | ( | const QString & | overviewId | ) |
Moves an overview up the stack, causing it to be rendered above other overviews.
overviewId | id for the QgsComposerMapOverview to move up |
Definition at line 328 of file qgscomposermapoverview.cpp.
QgsComposerMapOverview & QgsComposerMapOverviewStack::operator[] | ( | int | idx | ) |
Returns a reference to an overview within the stack.
idx | overview position in the stack |
Reimplemented from QgsComposerMapItemStack.
Definition at line 356 of file qgscomposermapoverview.cpp.
QgsComposerMapOverview * QgsComposerMapOverviewStack::overview | ( | const QString & | overviewId | ) | const |
Returns a reference to an overview within the stack.
overviewId | id for the QgsComposerMapOverview to find |
Definition at line 344 of file qgscomposermapoverview.cpp.
QgsComposerMapOverview * QgsComposerMapOverviewStack::overview | ( | const int | index | ) | const |
Returns a reference to an overview within the stack.
index | overview position in the stack |
Definition at line 350 of file qgscomposermapoverview.cpp.
|
overridevirtual |
Sets the overview stack's state from a DOM document.
elem | is DOM node corresponding to a 'ComposerMap' tag |
doc | DOM document |
Implements QgsComposerMapItemStack.
Definition at line 378 of file qgscomposermapoverview.cpp.
void QgsComposerMapOverviewStack::removeOverview | ( | const QString & | overviewId | ) |
Removes an overview from the stack and deletes the corresponding QgsComposerMapOverview.
overviewId | id for the QgsComposerMapOverview to remove |
Definition at line 323 of file qgscomposermapoverview.cpp.