Nyall Dawson
a67853f825
Fix calculation of point symbol bounds using data defined rotation or offset
2016-04-29 20:16:38 +10:00
Webmaster
fef8c1fef2
[FEATURE] add setting to control centroid fill point rendering
...
on all parts or a single part of multi-features (fixes #9199 )
2016-04-27 21:10:41 +07:00
Nyall Dawson
e21de0394d
Add methods for retrieving and setting size units for QgsMarkerSymbolV2
2016-04-11 15:34:43 +10:00
Alvaro Huarte
1a29030383
Remove duplicate methods of conversion
...
Remove duplicate methods of conversion of map coordinates to screen
coordinates
2016-02-19 09:43:01 +01:00
Juergen E. Fischer
a90be95f7b
sip sync
2016-02-14 03:50:49 +01:00
Juergen E. Fischer
2ea3d7744d
port more WKB parsing to Qgs(Const)WkbPtr including bounds checking
2016-02-09 14:20:07 +01:00
Nyall Dawson
c3a57434d9
Fix clazy 'pass small and trivially-copyable type by value' warnings
2016-02-02 19:47:21 +11:00
Juergen E. Fischer
4dd76da7f8
geometry sip sync and some cosmetics
2016-01-28 10:31:08 +01:00
Nyall Dawson
752f6bd150
Fix classes which violate rule of three, by implementing required
...
copy/= operators or making them private
This revealed (and fixes) some issues, including a potential crash
using server access control (refs #13919 ), and a potential crash with
diagrams
2016-01-22 18:45:45 +11:00
Matthias Kuhn
4e9afcec4c
Expression variable for the currently rendered part
...
During rendering, two new variables will be available:
* `geometry_part_count`
* `geometry_part_num` (1-based index)
Useful to apply different styles to different parts of multipart
features
2016-01-13 08:17:49 +01:00
Nyall Dawson
9dccce87ee
Followup 3a1d47
...
- Fix dialog tab order
- Avoid use of hardcoded enum int conversion
- Remove some unneeded implicit casts
- Doc tweaks
2016-01-13 09:38:18 +11:00
Matthias Kuhn
52a39fc286
QgsSymbolV2 may not be copied
2015-12-22 16:39:22 +01:00
Nyall Dawson
85eebff69b
Avoid some unnecessary object conversion during point rendering
2015-12-15 22:36:49 +11:00
Matthias Kuhn
ac5ff0c2ca
Fix doxymentation also in sip
2015-12-10 15:57:21 +01:00
Matthias Kuhn
c423d64a8e
Reduce wkb parsing
2015-12-10 12:33:43 +01:00
Matthias Kuhn
123a60e651
[sip, doxygen] Geometry modifier bindings
...
and lots of doxymentation
2015-12-10 12:33:43 +01:00
Nyall Dawson
4203a7c1f4
Add method to determine approximate rendered symbol bounds for markers
...
Sponsored by City of Uster
2015-11-20 19:55:02 +11:00
Nyall Dawson
cdf21b7c3e
Return derived classes from clone() methods, avoids need to
...
dynamic_cast results
2015-11-12 20:29:06 +11:00
Matthias Kuhn
56ccb2b858
sipClass_Klass is deprecated for a long time: replace with sipType_Klass
2015-11-11 23:22:51 +01:00
Nyall Dawson
719ff408a5
Add some missing SIP bindings, comment some classes as not available
...
in Python
2015-11-10 17:08:27 +11:00
Nyall Dawson
9e84fcafd8
Followup 2ac5933 with more data defined fixes
...
2ac5933 fixed the regression in 2.12, but there were more underlying
issues from <2.8 causing sub symbols with data defined properties
to be ignored.
Add some tests.
(refs #13707 )
2015-11-04 16:03:46 +11:00
Nyall Dawson
c49b5b777f
Change a lot of arguments to const references in core/gui
...
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Nyall Dawson
0caf944747
Misc optimisations identified by clazy:
...
- call reserve on container classes where applicable
- make sure Q_FOREACH uses references
- remove dynamic casts to base classes
- fix some implicit bool conversions
2015-10-05 18:43:18 +11:00
Nyall Dawson
a8f8cfefe5
Finish implementation of @value context variable
2015-10-01 15:42:02 +10:00
Nyall Dawson
57275cea9e
Revert "Add methods for retrieving extra parameters from symbol render"
...
This reverts commit fe9461be05043daf34057a85e57424f99eeae43d.
The commit was originally added for a label based feature which needed
to be reworked after recent labeling changes. Reverting this commit
to avoid polluting the API.
2015-09-25 19:09:09 +10:00
Nyall Dawson
fe9461be05
Add methods for retrieving extra parameters from symbol render
2015-09-08 22:08:18 +10:00
Nyall Dawson
096d46464d
Allow setting expression context for symbol widgets and dialogs
...
This means that symbol selectors can be aware of the correct variable
scope and values for both populating expression builder widgets and
for symbol previews.
2015-09-03 22:46:37 +10:00
Juergen E. Fischer
ac89dc0e73
* update QgsSymbolV2 sip bindings
...
* fix a crash when setRotationField (now deprecated) is used on a fresh
QgsCategorizedSymbolRendererV2
2015-08-13 17:48:56 +02:00
Juergen E. Fischer
9752c468c1
indentation update
2015-07-29 11:52:14 +02:00
Nathan Woodrow
659f0d661c
Add exportImage API to QgsSymbol
2015-07-07 21:59:22 +10:00
Juergen E. Fischer
cec5bdeb0d
fix some warnings
2015-05-24 18:48:22 +02:00
Mathieu Pellerin
f314522b73
[symbology] improve marker rotation along line to fix data-defined
...
angle support
2015-05-19 16:29:24 +10:00
Nyall Dawson
8b37ea2b05
[FEATURE] Add option to symbology to prevent clipping of features
...
This option (located under the symbol advanced menu) disables the
automatic clipping of lines/polygons to the canvas extent. In
some cases this clipping results in unfavourable symbology (eg
centroid fills where the centroid must always be the actual
feature's centroid). (fix #9757 )
2015-03-28 21:16:45 +11:00
Juergen E. Fischer
e48a6f642f
indentation update [ci skip]
2014-11-30 10:26:39 +01:00
Nyall Dawson
fa1e8032e7
[symbology] Add method for retrieving symbol layers as list
2014-11-24 20:45:10 +11:00
Juergen E. Fischer
9ceb5ceab6
sip sync
2014-11-21 01:17:21 +01:00
Nyall Dawson
52159851bf
[FEATURE] Raster image symbol fill type
...
Allows for filling polygons with a tiled raster image. Options
include (data defined) file name, opacity, image size (in pixels,
mm or map units), coordinate mode (feature or view) and rotation.
2014-11-19 15:26:09 +11:00
Nathan Woodrow
8c327ed35e
Add asImage method for QgsSymbol
2014-09-19 21:21:04 +10:00
Martin Dobias
d994e0a1b3
Fix #11006 (wrong size of symbols in print composer legend if map units are used)
2014-09-01 10:10:38 +07:00
Juergen E. Fischer
45c0be1059
sip: remove enum constants
2014-06-02 21:52:02 +02:00
Juergen E. Fischer
0a82f37e92
sync symbology-ng sips with headers (scripts/sipdiff)
2014-05-07 19:02:11 +02:00
Sandro Mani
53ac67517a
min-max map unit scale support
2014-05-07 15:54:56 +02:00
Martin Dobias
5a4f8d07a0
Change "added/deprecated in 2.1" notes to 2.4 for stuff related to threading
2014-02-21 17:33:09 +07:00
Martin Dobias
a3af93394e
Merge branch 'master' into threading-revival
...
Some features are still disabled - will be fixed later
Conflicts:
python/core/composer/qgscomposition.sip
python/core/diagram/qgsdiagram.sip
python/core/diagram/qgshistogramdiagram.sip
python/core/diagram/qgspiediagram.sip
python/core/diagram/qgstextdiagram.sip
python/core/qgsdiagramrendererv2.sip
python/core/qgsfield.sip
python/core/qgslabelsearchtree.sip
python/core/qgsmaprenderer.sip
python/core/qgsrenderchecker.sip
python/core/symbology-ng/qgssymbollayerv2.sip
python/gui/qgsmapcanvas.sip
src/app/composer/qgscomposerlegendwidget.cpp
src/app/qgisapp.cpp
src/core/composer/qgsatlascomposition.cpp
src/core/composer/qgscomposerattributetable.cpp
src/core/composer/qgscomposermap.cpp
src/core/composer/qgscomposition.cpp
src/core/composer/qgscomposition.h
src/core/diagram/qgsdiagram.h
src/core/diagram/qgshistogramdiagram.cpp
src/core/diagram/qgshistogramdiagram.h
src/core/diagram/qgspiediagram.cpp
src/core/diagram/qgspiediagram.h
src/core/diagram/qgstextdiagram.cpp
src/core/diagram/qgstextdiagram.h
src/core/qgsdiagramrendererv2.cpp
src/core/qgsdiagramrendererv2.h
src/core/qgsmaprenderer.cpp
src/core/qgsmaprenderer.h
src/core/qgsnetworkaccessmanager.h
src/core/qgspallabeling.cpp
src/core/qgsrenderchecker.h
src/core/qgsvectorlayer.cpp
src/core/qgsvectorlayer.h
src/core/qgsvectorlayerfeatureiterator.cpp
src/core/qgsvectorlayerfeatureiterator.h
src/core/raster/qgsrasterlayer.cpp
src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
src/core/symbology-ng/qgssymbollayerv2.cpp
src/core/symbology-ng/qgssymbollayerv2.h
src/core/symbology-ng/qgssymbolv2.cpp
src/gui/qgshighlight.cpp
src/gui/qgsmapcanvas.cpp
src/gui/qgsmapcanvas.h
src/gui/qgsmapcanvasitem.cpp
src/gui/qgsmaptoolidentify.cpp
src/plugins/georeferencer/qgsgeorefplugingui.cpp
src/providers/memory/qgsmemoryfeatureiterator.cpp
src/providers/ogr/qgsogrfeatureiterator.cpp
src/providers/ogr/qgsogrfeatureiterator.h
src/providers/ogr/qgsogrprovider.cpp
src/providers/oracle/qgsoraclefeatureiterator.cpp
src/providers/oracle/qgsoracleprovider.cpp
src/providers/postgres/qgspostgresconn.cpp
src/providers/postgres/qgspostgresfeatureiterator.cpp
src/providers/postgres/qgspostgresfeatureiterator.h
src/providers/wfs/qgswfsfeatureiterator.cpp
src/providers/wms/qgswmsprovider.cpp
src/providers/wms/qgswmsprovider.h
src/ui/qgsoptionsbase.ui
tests/src/core/CMakeLists.txt
tests/src/core/testqgscomposereffects.cpp
tests/src/core/testqgscomposerhtml.cpp
tests/src/core/testqgscomposerscalebar.cpp
tests/src/core/testqgscomposershapes.cpp
2014-02-18 11:28:46 +07:00
Juergen E. Fischer
74e7314c36
update sip bindings II
2014-01-27 09:22:53 +01:00
Juergen E. Fischer
d4e369414b
update sip bindings
2014-01-26 18:36:29 +01:00
Martin Dobias
2bece090f5
Update Python bindings to match changes in core/gui libraries.
2013-12-05 18:27:45 +07:00
Juergen E. Fischer
cf22bcf383
symbology-ng: make dump() methods const
2013-07-22 21:42:44 +02:00
Martin Dobias
1a723b4c38
Fix #7549 (selection color is now stored in QgsRendererContext)
2013-04-12 00:35:21 +02:00
Juergen E. Fischer
f3cb57b1eb
SIP bindings update:
...
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00