An item which is drawn inside a QgsComposerMap, eg a grid or map overview.
More...
#include <qgscomposermapitem.h>
Additional Inherited Members |
enum | DataDefinedProperty {
NoProperty = 0,
AllProperties,
TestProperty,
PresetPaperSize,
PaperWidth,
PaperHeight,
NumPages,
PaperOrientation,
PageNumber,
PositionX,
PositionY,
ItemWidth,
ItemHeight,
ItemRotation,
Transparency,
BlendMode,
ExcludeFromExports,
MapRotation,
MapScale,
MapXMin,
MapYMin,
MapXMax,
MapYMax,
MapAtlasMargin,
PictureSource,
SourceUrl
} |
| Data defined properties for different item types. More...
|
enum | PropertyValueType { EvaluatedValue = 0,
OriginalValue
} |
| Specifies whether the value returned by a function should be the original, user set value, or the current evaluated value for the property. More...
|
virtual void | repaint () |
| Triggers a redraw for the item.
|
virtual void | refreshDataDefinedProperty (const DataDefinedProperty property=AllProperties) |
| Refreshes a data defined property for the item by reevaluating the property's value and redrawing the item with this new value.
|
void | itemChanged () |
| Emitted when the item changes.
|
bool | dataDefinedEvaluate (const QgsComposerObject::DataDefinedProperty property, QVariant &expressionValue) |
| Evaluate a data defined property and return the calculated value.
|
Detailed Description
An item which is drawn inside a QgsComposerMap, eg a grid or map overview.
Constructor & Destructor Documentation
QgsComposerMapItem::QgsComposerMapItem |
( |
const QString & |
name, |
|
|
QgsComposerMap * |
map |
|
) |
| |
QgsComposerMapItem::~QgsComposerMapItem |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual const QgsComposerMap* QgsComposerMapItem::composerMap |
( |
| ) |
const |
|
inlinevirtual |
Get composer map for the item.
- Returns
- composer map
- See Also
- setComposerMap
virtual void QgsComposerMapItem::draw |
( |
QPainter * |
painter | ) |
|
|
pure virtual |
virtual bool QgsComposerMapItem::enabled |
( |
| ) |
const |
|
inlinevirtual |
Returns whether the item will be drawn.
- Returns
- true if item will be drawn on the map
- See Also
- setEnabled
QString QgsComposerMapItem::id |
( |
| ) |
const |
|
inline |
Get the unique id for the map item.
- Returns
- unique id
virtual QString QgsComposerMapItem::name |
( |
| ) |
const |
|
inlinevirtual |
Get friendly display name for the item.
- Returns
- display name
- See Also
- setName
bool QgsComposerMapItem::readXML |
( |
const QDomElement & |
itemElem, |
|
|
const QDomDocument & |
doc |
|
) |
| |
|
virtual |
Sets composer map for the item.
- Parameters
-
- See Also
- composerMap
virtual void QgsComposerMapItem::setEnabled |
( |
const bool |
enabled | ) |
|
|
inlinevirtual |
Controls whether the item will be drawn.
- Parameters
-
enabled | set to true to enable drawing of the item |
- See Also
- enabled
virtual void QgsComposerMapItem::setName |
( |
const QString & |
name | ) |
|
|
inlinevirtual |
Sets the friendly display name for the item.
- Parameters
-
- See Also
- name
virtual bool QgsComposerMapItem::usesAdvancedEffects |
( |
| ) |
const |
|
inlinevirtual |
bool QgsComposerMapItem::writeXML |
( |
QDomElement & |
elem, |
|
|
QDomDocument & |
doc |
|
) |
| const |
|
virtual |
Member Data Documentation
bool QgsComposerMapItem::mEnabled |
|
protected |
True if item is to be displayed on map.
QString QgsComposerMapItem::mName |
|
protected |
QString QgsComposerMapItem::mUuid |
|
protected |
The documentation for this class was generated from the following files: