2966 Commits

Author SHA1 Message Date
Matthias Kuhn
f511401995 Fix bindings 2017-05-02 01:56:23 +02:00
Matthias Kuhn
6593754f9d Explicitly tag static variables 2017-05-02 01:56:23 +02:00
Matthias Kuhn
b9ec373f4c Fully qualify nested classes for vintage sip 2017-05-02 01:54:58 +02:00
Matthias Kuhn
7a4527d47f Also report ScopedFunctions as static when approporiate 2017-05-02 01:54:58 +02:00
Matthias Kuhn
d70bb9c348 Specify for expression functions if they are static
... and prepare them whenever possible
2017-05-02 01:54:57 +02:00
Matthias Kuhn
8031ac43e0 Expression variables are more often than not static 2017-05-02 01:54:57 +02:00
Denis Rouzaud
7b60d89d6c align pointer and reference in sip files batch 2 2017-05-01 20:00:51 +02:00
Denis Rouzaud
00700292ef Merge branch 'master' into sip-annotated 2017-05-01 19:21:59 +02:00
Denis Rouzaud
93971d5ed3 [sip] align pointer and reference in blacklisted files
this will facilitate sip diff checking
2017-05-01 17:49:43 +02:00
doublebyte1
bb1bded249 - changes to sipify script
- updated gsdataitem header:
  - added qgis.h include
  - skip sDataItemPtr
  - remove , between SIP annotations
- run sipify for qgsvector and qgsdataitem
2017-05-01 17:43:07 +02:00
Alexander Bruy
e581d46166 regenerate SIP files 2017-05-01 17:42:06 +02:00
Alexander Bruy
782c3e5afb sipify QgsStatisticalSummary and QgsStringStatisticalSummary 2017-05-01 17:42:06 +02:00
arnaud.morvan@camptocamp.com
b399ee5d2e Sipify QgsFieldFormatterRegistry 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
1fb7855e17 Sipifi QgsFieldFormatter 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
84abf896bb Sipify QgsFieldConstraints 2017-05-01 17:41:14 +02:00
arnaud.morvan@camptocamp.com
113ab01cfe Sipify QgsField
I've removed the commented __getitem__ method from the sip file.
2017-05-01 11:06:43 +02:00
Matthias Kuhn
c929d2abd8 Fix warnings 2017-05-01 10:22:34 +02:00
Nyall Dawson
ac84326464 [processing] Fix executing models 2017-05-01 17:29:40 +10:00
arnaud.morvan@camptocamp.com
8376a30f7a Sipify QgsField 2017-05-01 01:05:33 +02:00
Matthias Kuhn
7f3941e073 Doxymentation 2017-05-01 00:04:29 +02:00
Matthias Kuhn
a8fc2c13d0 Fix remaining errors 2017-05-01 00:03:55 +02:00
Denis Rouzaud
fb1aec61ba sipify QgsExpression 2017-05-01 00:03:55 +02:00
Denis Rouzaud
c5dcfc1ebf move SIP_CODE to public section 2017-04-30 23:30:34 +02:00
raymondnijssen
b82c9b8917 sipify QgsPoint 2017-04-30 23:30:33 +02:00
doublebyte1
1287a64eb2 - updated const variables on the qgsvector header.
- Removed dataItem_t pointer from qgsdataitem bindings.
- Put back qobject_cast.
2017-04-30 22:33:58 +02:00
doublebyte1
2d7b2ecff4 - Supporting automated sip generation for qgsdataitem and qgsvector classes
- Removed qgsdataitem.sip and qgsvector.sip from auto_sip.blacklist
 - Annotated qgsdataitem.h for sip
 - regenerated automatically qgsdataitem.sip and qgsvector.sip
2017-04-30 22:33:58 +02:00
Matthias Kuhn
28a21209b9 [sipify] seealso 2017-04-30 16:52:05 +02:00
Denis Rouzaud
897e2f0410 [sipify] do not take // comments into docstrings 2017-04-30 16:34:08 +02:00
Denis Rouzaud
f20b9b96e7 [sipify] better remove body, remove duplicate code 2017-04-30 16:34:08 +02:00
Denis Rouzaud
39d87248ab [sipify] fix handling of nested classes
going to proper section when ending a nesting classes (public/private)
also improve debugging output
2017-04-30 16:34:07 +02:00
Denis Rouzaud
a86f5ea52d remove PyNames for QgsGeometry::compare methods
single python method with some MethodCode to dispatch to proper cpp methods.
2017-04-30 11:29:45 +02:00
Denis Rouzaud
b0d4a4c201 sipify geometry classes 2017-04-30 11:29:45 +02:00
Nyall Dawson
455f9738dd Sipify QgsTextRenderer 2017-04-28 19:25:45 +10:00
Nyall Dawson
debe1098cb [FEATURE] Allow setting paint effects on label background shapes
Can also be useful for improving text readability through
outer glows and blurs
2017-04-28 19:25:45 +10:00
Nyall Dawson
b9f102c98d [FEATURE] Paint effect support for label buffers
Allows applying a paint effect (such as blurs) to label buffers.
Blurring label buffers is a great way to get the text readability
of a label buffer without the distracting halo effect.
2017-04-28 19:25:45 +10:00
Matthias Kuhn
c219116358 Add QgsDataProvider::uri property 2017-04-28 00:27:46 +02:00
Nyall Dawson
0b0ccc9e9d Rename QgsVectorLayer::selectedFeaturesIterator to getSelectedFeatures
It's more in line with QgsVectorLayer::getFeatures, hence a more
discoverable API
2017-04-27 11:16:10 +10:00
lbartoletti
84471f2e6d New classes for circle and ellipse. 2017-04-27 10:25:29 +10:00
Nyall Dawson
ccb4ac98b4 Merge pull request #4417 from nyalldawson/processing_writer
Refactor processing writer to use QgsFeatureSink
2017-04-27 10:14:33 +10:00
Denis Rouzaud
4cc4a27068 [sipify] operators, remove argument
* skip some operators
 * allow to remove an argument with SIP_PYARGREMOVE
2017-04-26 15:06:16 +02:00
Denis Rouzaud
45266cd03e [sipify] improvements
* add In annotation
 * remove struct forward declarations
 * fix members initialization list in header
 * merge removal code for function bodies and constructor definition
2017-04-26 10:25:50 +02:00
Nyall Dawson
fd2c18ee16 Refactor processing writer to use QgsFeatureSink, and to store
temporary output layers in the provided processing context

Should fix loss of intermediate memory layers when running
a multi-step model
2017-04-26 17:38:40 +10:00
Nyall Dawson
a5e33fa93c Add method to take layer and ownership from a project 2017-04-26 16:48:27 +10:00
Nyall Dawson
6b4ddb3b0d Add temporary layer store to processing context
This temporary layer store (a QgsProject) is used as a
store for layers that are added if a parameter that
is evaluated to a layer requires that a new, non-active-project
layer is loaded. It means that these layers will remain accessible
for the duration of the algorithm's execution (or models
execution if an algorithm is run as part of a model), before
being automatically discarded when the QgsProcessingContext
used to run the algorithm/model goes out of scope.

This approach has several benefits:
- it means that algorithms (including c++ algorithms) are able
to use both project and non-project layers without needing
to handle any memory management themselves.
- it means that layers are guaranteed to last for the duration
of a model execution. This is currently an issue where models
which use memory layers as intermediate outputs do not
function correctly as the memory layers are destroyed before
the model has finished executing
- there should be no leakage of layers remaining open
after an algorithm exits
2017-04-26 14:06:59 +10:00
Nyall Dawson
f247a7cda3 Add c++ optimised uniqueValues method which respects processing context
Remove processing vector.uniqueValues/vector.getUniqueValues
and port usage to c++ method

Should be much faster than the python method, as the c++ method takes
advantage of handing off the unique values calculation to the
provider source whenever possible
2017-04-26 12:53:35 +10:00
Nyall Dawson
a28bc086eb Indentation/sipify 2017-04-26 12:53:35 +10:00
Nyall Dawson
b067bd786a Rename UseSelection -> UseSelectionIfPresent, clarify docs 2017-04-26 12:53:35 +10:00
Nyall Dawson
1c6f165ff5 Add missing doc 2017-04-26 12:53:35 +10:00
Nyall Dawson
e6a33e876c Allow setting the invalid geometry callback in processing context 2017-04-26 12:53:35 +10:00
Nyall Dawson
b32b39501e Add methods for getting vector iterators to QgsProcessingUtils 2017-04-26 12:53:35 +10:00