-
-
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.
Make QgsRenderContext available to more renderer methods
- Loading branch information
1 parent
86ace24
commit 57669e7
Showing
41 changed files
with
380 additions
and
202 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
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
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
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 |
---|---|---|
|
@@ -9,9 +9,9 @@ class QgsSingleSymbolRendererV2 : QgsFeatureRendererV2 | |
|
||
virtual ~QgsSingleSymbolRendererV2(); | ||
|
||
virtual QgsSymbolV2* symbolForFeature( QgsFeature& feature ); | ||
virtual QgsSymbolV2* symbolForFeature( QgsFeature& feature, QgsRenderContext& context ); | ||
|
||
virtual QgsSymbolV2* originalSymbolForFeature( QgsFeature& feature ); | ||
virtual QgsSymbolV2* originalSymbolForFeature( QgsFeature& feature, QgsRenderContext& context ); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nyalldawson
Author
Collaborator
|
||
|
||
virtual void startRender( QgsRenderContext& context, const QgsFields& fields ); | ||
|
||
|
@@ -41,7 +41,7 @@ class QgsSingleSymbolRendererV2 : QgsFeatureRendererV2 | |
//! returns bitwise OR-ed capabilities of the renderer | ||
virtual int capabilities(); | ||
|
||
virtual QgsSymbolV2List symbols(); | ||
virtual QgsSymbolV2List symbols( QgsRenderContext& context ); | ||
|
||
//! create renderer from XML element | ||
static QgsFeatureRendererV2* create( QDomElement& element ) /Factory/; | ||
|
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
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
Oops, something went wrong.
@nyalldawson these changes for symbol renderer seem to break the API. Shouldn't be reimplemented the
virtual QgsSymbolV2* symbolForFeature( QgsFeature& feature );
method as well?The following code does not work anymore:
I also see the
symboloForFeature( QgsFeature& feature )
method is deprecated inQgsFeatureRendererV2
, but it is supposed to work in qgis 2.12, isn't it?thanks.