RSS/Atom feed Twitter
Site is read-only, email is disabled

Generated Brush

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Generated Brush Christopher Howard 29 Aug 03:47
  Generated Brush Martin Nordholts 29 Aug 07:42
   Generated Brush Sven Neumann 29 Aug 10:41
Christopher Howard
2009-08-29 03:47:25 UTC (about 15 years ago)

Generated Brush

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Hi. Where is it in the code that generated brush hardness (and other GimpBrushGenerated data) start getting turned into something more concrete (something that can be painted). I'm trying to learn the code on my own as much as possible but would appreciate being pointed in the right direction.

Your favorite n00b, Christopher

- --
Christopher Howard
http://indicium.us
http://theologia.indicium.us
I digitally sign /all/ my e-mails via PGP. If you receive any e-mail supposedly from me without my valid PGP digital signature, please take additional steps to verify the authenticity of the message. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqYiK0ACgkQQ5FLNdi0BcV/TgCaAj4R5TbR+lCmZQXLXdFNYulM jkUAoJLTZjbGBPQCJf/U1C3pbVpLU/Q9
=KtPT
-----END PGP SIGNATURE-----

Martin Nordholts
2009-08-29 07:42:09 UTC (about 15 years ago)

Generated Brush

On 08/29/2009 03:47 AM, Christopher Howard wrote:

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Hi. Where is it in the code that generated brush hardness (and other GimpBrushGenerated data) start getting turned into something more concrete (something that can be painted).

Hi,

The parameters are turned into a paintable mask in gimp_brush_generated_calc(). Set a breakpoint in that function to examine how and from where it is called. You probably wan't to run a debug-enabled build of GTK+ so you can set the GDK_DEBUG env var to "nograbs".

If you hit a breakpoint while a grab is active, you'll have to either do a X11 ungrab with Ctrl+Alt+KeypadDivide, which requires an explicit X11 ungrab configuration of the X11 server, or you need to switch to a terminal (typically with a keystroke like Ctrl+Alt+F2) and do pkill -9 gimp-2.6.

HTH,
Martin

Sven Neumann
2009-08-29 10:41:56 UTC (about 15 years ago)

Generated Brush

On Sat, 2009-08-29 at 07:45 +0200, Martin Nordholts wrote:

On 08/29/2009 03:47 AM, Christopher Howard wrote:

Hi. Where is it in the code that generated brush hardness (and other GimpBrushGenerated data) start getting turned into something more concrete (something that can be painted).

The parameters are turned into a paintable mask in gimp_brush_generated_calc(). Set a breakpoint in that function to examine how and from where it is called. You probably wan't to run a debug-enabled build of GTK+ so you can set the GDK_DEBUG env var to "nograbs".

It's totally sufficient to look at the file app/core/gimpbrushgenerated.c. Everything is in there and you shouldn't have to deal with a debugger to understand what's going on.

Sven