gimp/app/paint
Michael Natterer 82c2616f0f Applied modified patch from Alexia Death which adds velocity support to
2008-05-10  Michael Natterer  <mitch@gimp.org>

	Applied modified patch from Alexia Death which adds velocity
	support to paint tools in the spirit of the pressure support we
	already have. Fixes bug #529431.

	* app/display/gimpdisplayshell-coords.c
	(gimp_display_shell_eval_event): tweak velocity calculation to
	work in screen coordinates.

	* app/paint/gimppaintoptions.[ch]: add velocity options in the
	same way as there are pressure options. Add utility functions
	which return dynamic opatity and dynamic rate according to the the
	option's settings and some GimpCoords' pressure and velocity.

	* app/tools/gimppaintoptions-gui.c: add GUI for the velocity
	options.

	* app/paint/gimpbrushcore.h: remove PRESSURE_SCALE define, it's
	now in gimppaintoptions.h.

	* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate):
	inerpolate velocity too.

	(gimp_brush_core_calc_brush_scale): take velocity into account.

	(gimp_brush_core_get_brush_mask): always pressurize the mask in
	the GIMP_BRUSH_PRESSURE because there always is velocity (unlike
	pressure which is only there on tablets).

	* app/paint/gimpairbrush.c
	* app/paint/gimpclone.c
	* app/paint/gimpconvolve.c
	* app/paint/gimpdodgeburn.c
	* app/paint/gimperaser.c
	* app/paint/gimpheal.c
	* app/paint/gimppaintbrush.c
	* app/paint/gimpsmudge.c: get opacity and rate from the new paint
	options utility functions which take both pressure and velocity
	into account.

	* app/paint/gimppaintbrush.c: take velocity into account when
	calculating the gradient color offset.

	* app/paint/gimpairbrush.c: do some additional fiddling with
	velocity in the asynchronous airbrush timeout.

	* app/paint/gimpairbrushoptions.c: override the velocity-size
	property and have it default to FALSE.


svn path=/trunk/; revision=25604
2008-05-10 10:03:21 +00:00
..
Makefile.am removed extra check for gthread and fold it into the GLIB and GTK checks. 2007-06-25 12:41:59 +00:00
gimp-paint.c use the tool-info identifier as the name of the tool-options object. 2007-07-17 10:04:06 +00:00
gimp-paint.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpairbrush.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpairbrush.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpairbrushoptions.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpairbrushoptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpbrushcore-kernels.h fixed rounding so that all brush kernels are created with a constant sum 2004-12-31 16:20:51 +00:00
gimpbrushcore.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpbrushcore.h Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpclone.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpclone.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpcloneoptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpcloneoptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpconvolve.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpconvolve.h instead of just copying the border pixels, convolute the full region and 2007-05-05 19:18:25 +00:00
gimpconvolveoptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpconvolveoptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpdodgeburn.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpdodgeburn.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpdodgeburnoptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpdodgeburnoptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimperaser.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimperaser.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimperaseroptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimperaseroptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpheal.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpheal.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpink-blob.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimpink-blob.h added GIMP_UNDO_INK. 2005-01-14 20:13:54 +00:00
gimpink.c formatting. 2008-03-10 14:34:26 +00:00
gimpink.h app/core/core-types.h app/display/gimpdisplayshell-callbacks.c 2008-01-14 20:34:37 +00:00
gimpinkoptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpinkoptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpinkundo.c app/core/core-types.h app/display/gimpdisplayshell-callbacks.c 2008-01-14 20:34:37 +00:00
gimpinkundo.h app/core/core-types.h app/display/gimpdisplayshell-callbacks.c 2008-01-14 20:34:37 +00:00
gimppaintbrush.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimppaintbrush.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimppaintcore-stroke.c added GError arguments and fixed all functions to abort when the first 2007-12-06 18:40:12 +00:00
gimppaintcore-stroke.h added GError arguments and fixed all functions to abort when the first 2007-12-06 18:40:12 +00:00
gimppaintcore.c Fix for bug #494049 (painting doesn't update the histogram): 2007-11-13 10:59:32 +00:00
gimppaintcore.h set core->saved_proj_tiles to NULL after unrefing them. 2007-03-31 16:43:41 +00:00
gimppaintcoreundo.c app/paint/gimppaintcore-undo.[ch] removed... 2007-02-03 18:48:00 +00:00
gimppaintcoreundo.h app/paint/gimppaintcore-undo.[ch] removed... 2007-02-03 18:48:00 +00:00
gimppaintoptions.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimppaintoptions.h Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimppencil.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimppencil.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimppenciloptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimppenciloptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpperspectiveclone.c app/core/gimp-transform-region.[ch] app/core/gimpchannel.c 2007-09-10 15:29:48 +00:00
gimpperspectiveclone.h include "libgimpmath/gimpmathtypes.h" instead of "libgimpmath/gimpmath.h". 2007-03-09 13:00:01 +00:00
gimpperspectivecloneoptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpperspectivecloneoptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpsmudge.c Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
gimpsmudge.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpsmudgeoptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpsmudgeoptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpsourcecore.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpsourcecore.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
gimpsourceoptions.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimpsourceoptions.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00
makefile.msc updated and removed -GD to let msvc9 complain less 2007-12-09 14:11:09 +00:00
paint-enums.c changed "Modify Perspective Plane" to "Modify Perspective". 2007-10-16 15:02:16 +00:00
paint-enums.h changed "Modify Perspective Plane" to "Modify Perspective". 2007-10-16 15:02:16 +00:00
paint-types.h app/paint/paint-types.h move opaque typedefs of object instances to 2007-02-08 22:58:22 +00:00