Skip to content

Commit e5ad57b

Browse files
committedOct 23, 2015
Notes about new labeling API not being public yet in 2.12
1 parent d56dcdb commit e5ad57b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎src/core/qgslabelingenginev2.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ namespace pal
4545
* Individual label providers may create subclasses of QgsLabelFeature in order to add
4646
* more data to the instances that will be later used for drawing of labels.
4747
*
48+
* @note this class is not a part of public API yet. See notes in QgsLabelingEngineV2
4849
* @note added in QGIS 2.12
4950
*/
5051
class CORE_EXPORT QgsLabelFeature
@@ -241,6 +242,7 @@ class QgsLabelingEngineV2;
241242
*
242243
* Implementations also take care of drawing the returned final label positions.
243244
*
245+
* @note this class is not a part of public API yet. See notes in QgsLabelingEngineV2
244246
* @note added in QGIS 2.12
245247
*/
246248
class CORE_EXPORT QgsAbstractLabelProvider
@@ -342,6 +344,13 @@ Q_DECLARE_OPERATORS_FOR_FLAGS( QgsAbstractLabelProvider::Flags )
342344
* engine.run( context );
343345
* \endcode
344346
*
347+
* @note this class is not a part of public API yet. The provider's interface still
348+
* uses pal::LabelPosition as an argument in drawLabels() method - this should be
349+
* sorted out first (a class common to API and pal?). Also, the API may need more
350+
* polishing to be easy to use - e.g. use concept of labeling layers in API
351+
* (equivalent of pal::Layer) instead of subProviders(), label providers integrated
352+
* into feature loop vs providers with independent feature loop), split labeling
353+
* computation from drawing of labels, improved results class with label iterator).
345354
* @note added in QGIS 2.12
346355
*/
347356
class CORE_EXPORT QgsLabelingEngineV2

0 commit comments

Comments
 (0)
Please sign in to comment.