Manages storage of a set of QgsAnnotation annotation objects.
More...
#include <qgsannotationmanager.h>
Manages storage of a set of QgsAnnotation annotation objects.
QgsAnnotationManager handles the storage, serializing and deserializing of QgsAnnotations. Usually this class is not constructed directly, but rather accessed through a QgsProject via QgsProject::annotationManager().
QgsAnnotationManager retains ownership of all the annotations contained in the manager.
- Since
- QGIS 3.0
Definition at line 44 of file qgsannotationmanager.h.
◆ QgsAnnotationManager()
QgsAnnotationManager::QgsAnnotationManager |
( |
QgsProject * |
project = nullptr | ) |
|
|
explicit |
◆ ~QgsAnnotationManager()
QgsAnnotationManager::~QgsAnnotationManager |
( |
| ) |
|
|
override |
◆ accept()
Accepts the specified style entity visitor, causing it to visit all style entities associated within the contained annotations.
Returns true
if the visitor should continue visiting other objects, or false
if visiting should be canceled.
- Since
- QGIS 3.10
Definition at line 151 of file qgsannotationmanager.cpp.
◆ addAnnotation()
bool QgsAnnotationManager::addAnnotation |
( |
QgsAnnotation * |
annotation | ) |
|
◆ annotationAboutToBeRemoved
void QgsAnnotationManager::annotationAboutToBeRemoved |
( |
QgsAnnotation * |
annotation | ) |
|
|
signal |
Emitted when an annotation is about to be removed from the manager.
◆ annotationAdded
void QgsAnnotationManager::annotationAdded |
( |
QgsAnnotation * |
annotation | ) |
|
|
signal |
Emitted when a annotation has been added to the manager.
◆ annotationRemoved
void QgsAnnotationManager::annotationRemoved |
( |
| ) |
|
|
signal |
Emitted when an annotation was removed from the manager.
◆ annotations()
QList< QgsAnnotation * > QgsAnnotationManager::annotations |
( |
| ) |
const |
◆ clear()
void QgsAnnotationManager::clear |
( |
| ) |
|
◆ cloneAnnotations()
QList< QgsAnnotation * > QgsAnnotationManager::cloneAnnotations |
( |
| ) |
const |
Returns a list containing clones of all annotations contained in the manager.
The caller takes responsibility for deleting all returned annotations.
- See also
- annotations()
Definition at line 78 of file qgsannotationmanager.cpp.
◆ readXml()
bool QgsAnnotationManager::readXml |
( |
const QDomElement & |
element, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| |
◆ removeAnnotation()
bool QgsAnnotationManager::removeAnnotation |
( |
QgsAnnotation * |
annotation | ) |
|
◆ writeXml()
QDomElement QgsAnnotationManager::writeXml |
( |
QDomDocument & |
doc, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| const |
The documentation for this class was generated from the following files: