-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,30 +40,49 @@ class QgsDxfLabelProvider : public QgsVectorLayerLabelProvider | |
explicit QgsDxfLabelProvider( QgsVectorLayer* layer, QgsDxfExport* dxf, const QgsPalLayerSettings *settings ); | ||
|
||
//! re-implementation that writes to DXF file instead of drawing with QPainter | ||
// @param context render context | ||
// @param label label | ||
void drawLabel( QgsRenderContext& context, pal::LabelPosition* label ) const override; | ||
|
||
//! registration method that keeps track of DXF layer names of individual features | ||
// @param feature feature | ||
// @param context render context | ||
// @param dxfLayerName name of dxf layer | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jef-n
via email
Author
Member
|
||
void registerDxfFeature( QgsFeature& feature, QgsRenderContext &context, const QString& dxfLayerName ); | ||
|
||
protected: | ||
//! pointer to parent DXF export where this instance is used | ||
QgsDxfExport* mDxfExport; | ||
}; | ||
|
||
/** Implements a derived label provider for rule based labels internally used | ||
* for DXF export | ||
* | ||
* Internal class, not in public API. Added in QGIS 2.15 | ||
* @note not available in Python bindings | ||
*/ | ||
class QgsDxfRuleBasedLabelProvider : public QgsRuleBasedLabelProvider | ||
{ | ||
public: | ||
//! construct the provider | ||
explicit QgsDxfRuleBasedLabelProvider( const QgsRuleBasedLabeling &rules, QgsVectorLayer* layer, QgsDxfExport* dxf ); | ||
|
||
//! reinitialize the subproviders with QgsDxfLabelProviders | ||
//@param layer layer | ||
void reinit( QgsVectorLayer* layer ); | ||
|
||
//! re-implementation that writes to DXF file instead of drawing with QPainter | ||
// @param context render context | ||
// @param label label | ||
void drawLabel( QgsRenderContext &context, pal::LabelPosition *label ) const override; | ||
|
||
//! registration method that keeps track of DXF layer names of individual features | ||
// @param feature feature | ||
// @param context render context | ||
// @param dxfLayerName name of dxf layer | ||
void registerDxfFeature( QgsFeature& feature, QgsRenderContext &context, const QString& dxfLayerName ); | ||
|
||
//! create QgsDxfLabelProvider | ||
virtual QgsVectorLayerLabelProvider *createProvider( QgsVectorLayer *layer, bool withFeatureLoop, const QgsPalLayerSettings *settings ) override; | ||
|
||
protected: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I don't think that gets picked up
either
or