Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Dirty Regions
Dirty Regions [message #219721] Thu, 20 July 2006 23:43 Go to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

I have a question about Dirty Regions (and it is probably just my lack
of understanding). Assume I had a grid of 10 x 10 figures (with no
connections between them). If I selected the bottom figure and moved it
slightly, I would assume that no other figures would be repainted
(unless I dragged this figure over them). Is this true?

GEF seems to have a notion of dirty regions(which I assume this is).
However, even if I take something as simple as the ShapesExample. If I
move one shape, the SWT GC is getting called to repaint all the other
ones. Is this the way it is supposed to work, or have I just not set
something up correctly.

I am using GTK+ and Eclipse 3.2 (GEF from Head).

Cheers,
Ian
Re: Dirty Regions [message #219827 is a reply to message #219721] Fri, 21 July 2006 20:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

There is a workaround in draw2d that forces us to paint the entire canvas on
GTK. This was removed in 3.2 I believe.

"Ian Bull" <irbull@cs.uvic.ca> wrote in message
news:e9p4gh$sfe$1@utils.eclipse.org...
>I have a question about Dirty Regions (and it is probably just my lack of
>understanding). Assume I had a grid of 10 x 10 figures (with no connections
>between them). If I selected the bottom figure and moved it slightly, I
>would assume that no other figures would be repainted (unless I dragged
>this figure over them). Is this true?
>
> GEF seems to have a notion of dirty regions(which I assume this is).
> However, even if I take something as simple as the ShapesExample. If I
> move one shape, the SWT GC is getting called to repaint all the other
> ones. Is this the way it is supposed to work, or have I just not set
> something up correctly.
>
> I am using GTK+ and Eclipse 3.2 (GEF from Head).
>
> Cheers,
> Ian
Re: Dirty Regions [message #219835 is a reply to message #219827] Fri, 21 July 2006 20:54 Go to previous message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

So does this mean that GEF should not be painting the entire screen now?
It still seems to be doing this in the GEF from head.

Actually, the OS is properly clipping and only rendering proper bounds,
but GEF seems to be sending draw events to the GC for everything. This
means that all text processing still occurs which is very slow on Linux
(Eclipse bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=51693).


cheers,
ian


Randy Hudson wrote:
> There is a workaround in draw2d that forces us to paint the entire canvas on
> GTK. This was removed in 3.2 I believe.
>
> "Ian Bull" <irbull@cs.uvic.ca> wrote in message
> news:e9p4gh$sfe$1@utils.eclipse.org...
>> I have a question about Dirty Regions (and it is probably just my lack of
>> understanding). Assume I had a grid of 10 x 10 figures (with no connections
>> between them). If I selected the bottom figure and moved it slightly, I
>> would assume that no other figures would be repainted (unless I dragged
>> this figure over them). Is this true?
>>
>> GEF seems to have a notion of dirty regions(which I assume this is).
>> However, even if I take something as simple as the ShapesExample. If I
>> move one shape, the SWT GC is getting called to repaint all the other
>> ones. Is this the way it is supposed to work, or have I just not set
>> something up correctly.
>>
>> I am using GTK+ and Eclipse 3.2 (GEF from Head).
>>
>> Cheers,
>> Ian
>
>
Previous Topic:Can ConnectionRouters avoid obstacles at all levels?
Next Topic:Customizing GEF palette
Goto Forum:
  


Current Time: Thu Apr 25 11:28:45 GMT 2024

Powered by FUDForum. Page generated in 0.02879 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top