19 Commits

Author SHA1 Message Date
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
fc49f8dfa9 Add test for coverage of SIP bindings
Not perfect, but good for a quick warning if a new class or member
has been added to the public API without Python bindings. The test
only considers the name of members, since it seems to be impossible
to test for the signature of a Python member. (So adding a new
overloaded method without bindings will still unfortunately pass).

You can avoid the test where bindings are not applicable:
- for a whole class by placing "@note not available in Python bindings"
in the class' Doxygen comments
- or by placing the @note inside a member's Doxygen comments for a
specific member

Additionally, classes which aren't included in the API docs
will not be tested.
2015-10-28 09:54:27 +11:00
Nyall Dawson
0587a59b39 Only save effect element if it is non-default
(decreases file size of qgs project files)
2015-10-01 06:54:59 +10:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Juergen E. Fischer
b165875fa6 spelling fixes 2015-07-26 14:39:30 +02:00
Nyall Dawson
cf2fa39691 [effects] Initially populate effects with a default list of effects
Default list shows a number of common effects like drop shadows,
but they are disabled. This allows users to easily enable them
just by checking them in the list. End result is a more user
friendly and familiar effects interface.

Advanced users can still reorder, add/remove effects as before.
2015-06-16 21:30:53 +10:00
Nyall Dawson
c38ff519e2 Followup b8bc181, don't create unnecessary temporary image 2015-05-20 19:17:01 +10:00
vmora
b8bc1811d5 add option to cropTransparent to allow centering
use that in qgslayertreemodellegendnode
2015-05-12 10:12:02 +02:00
Nyall Dawson
7314047698 Fix missing doc strings due to invalid doxygen tags 2015-04-30 17:26:58 +10:00
vmora
0f35192f3f Add cropTransparent to QgsImageOperation, for cropping transparent
borders from around an image
2015-04-27 18:23:03 +10:00
Nyall Dawson
ccfe557cbe Fix DPI scaling issue with paint effects and composer 2015-04-08 05:54:45 +10:00
Juergen E. Fischer
12d7cfca03 indentation update 2015-04-07 14:27:39 +02:00
Nyall Dawson
742f3233ee [FEATURE] Paint effects for layers and symbol layers
This commit adds a new framework for implementing paint effects, which
modify the results of QPainter operations to apply visual effects
such as drop shadows and blurs.

The initial implementation allows for effects to be applied to entire
layers and individual symbol layers.

Included are a drop shadow, inner shadow, blur, inner glow, outer glow,
colorise and transform effect. A "stack" effect is also implemented
which allows other paint effects to be combined in various ways.

Sponsored by hundreds of generous kickstarter contributors!
2015-03-28 20:04:50 +11:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
Nyall Dawson
f7f89b37b9 Fix calculation of blur ops with non ARGB32_Premultiplied images 2015-01-26 14:27:20 +11:00
Juergen E. Fischer
cce2eb50cb indentation update 2015-01-22 20:56:02 +01:00
Nyall Dawson
670ad7b809 Add gaussian blur image operation 2015-01-21 20:02:42 +11:00
Nyall Dawson
be2d6d1a70 New QgsImageOperation class for operations that modify QImages
Contains framework for multithreaded operations on QImages, and
numerous operations such as grayscale, hue/saturation, brightness/
contrast modification, flip, blur, distance transform, alpha
modification and color overlays.
2015-01-21 18:58:10 +11:00