34 Commits

Author SHA1 Message Date
Nyall Dawson
ce6bd6c973 Move QgsSymbolV2::OutputUnit enum to QgsUnitTypes
And rename to QgsUnitTypes::RenderUnits. This enum is used in
much more contexts than just symbols, so QgsUnitTypes is a
better fit for it.

All methods which previously accepted QgsSymbolV2::OutputUnit
parameters or QgsSymbolV2::OutputUnitList parameters now take
QgsUnitTypes::RenderUnit or QgsUnitTypes::RenderUnitList
parameters respectively.
2016-07-25 15:22:12 +10:00
Nyall Dawson
cda387cb6f Ensure that @symbol_color is always correct for symbol layer types
with subsymbols
2016-05-07 21:52:19 +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
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Nyall Dawson
c3a57434d9 Fix clazy 'pass small and trivially-copyable type by value' warnings 2016-02-02 19:47:21 +11:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
Nyall Dawson
dc0639c794 Add missing /Transfer/s to setSubSymbol 2015-11-18 06:46:30 +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
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
c6df096c38 Followup c49b5b7, more fixes 2015-10-07 18:32:24 +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
5cfdea569b More removal of const from QgsRenderContext in symbology 2015-10-01 15:42:02 +10:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Nyall Dawson
c5b04efadb Fix attributes from some symbols were not available for data defined
symbology (line marker, line pattern)
2015-05-19 17:01:40 +10:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
Nyall Dawson
ca4a60a6aa Fix redundant angle methods for QgsGradientFillSymbolLayerV2 2015-01-15 22:25:18 +11:00
Nyall Dawson
c8ad99bf6a Fix incorrect cast to double in shapeburst fill header 2014-11-19 19:40:51 +11: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
Juergen E. Fischer
c4c131ef75 sip sync 2014-05-27 23:32:42 +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
Nyall Dawson
6836a7ded7 Expose outline join style as a parameter for simple fill symbol type 2014-04-03 19:52:53 +11:00
Nyall Dawson
942d5da59b Add option to ignore interior polygon rings when calculating buffered shading for shapeburst fill mode (can be useful for eg ignoring islands when shading water bodies) 2014-03-22 07:39:14 +11:00
Nyall Dawson
13cbfd138c [FEATURE] Add 'shapeburst' fill style. Shapeburst fills implement a buffered gradient fill, where a gradient is drawn from the boundary of a polygon towards the polygon's centre. Configurable parameters include distance from the boundary to shade, use of color ramps or simple two color gradients, optional blurring of the fill and offsets. 2014-03-21 12:50:50 +11: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
Radim Blazek
a18b4a35c6 highlight identified feature using real feature shape 2014-01-12 18:19:32 +01:00
Juergen E. Fischer
190c0511bc fix most cppcheck warnings and implement suggestions
also update and sync some sip interfaces
2014-01-05 16:11:36 +01:00
nyalldawson
dfba26d9b0 [FEATURE] allow starting/ending a gradient at a features centroid 2013-11-03 20:55:33 +11:00
nyalldawson
864df0fe37 [FEATURE] Add support for gradient fills for polygons 2013-10-07 19:54:33 +11:00
Juergen E. Fischer
3854086d47 sip update 2013-06-23 16:00:24 +02:00
Marco Hugentobler
9675af0406 Add python bindings for symbology units and data defined functions 2013-04-19 15:21:08 +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