Skip to main content



      Home
Home » Eclipse Projects » GEF » Rotation Tool
Rotation Tool [message #247362] Wed, 18 February 2009 02:56 Go to next message
Eclipse UserFriend
Hi Folks,
I was looking for creating a rotation tool which can rotate editpart in
GEF
any idea if there is any examples or any leads ?

Thanks in advance
Re: Rotation Tool [message #247396 is a reply to message #247362] Wed, 18 February 2009 22:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi J

To add rotate, but you currently use these bugs for references:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=117012
https://bugs.eclipse.org/bugs/show_bug.cgi?id=167316
https://bugs.eclipse.org/bugs/show_bug.cgi?id=130419

Cheers...
Anthony

"J" <jijoy21@gmail.com> wrote in message
news:742c17ee3fb5fa9241b9ca8351081e6b$1@www.eclipse.org...
> Hi Folks,
> I was looking for creating a rotation tool which can rotate editpart in
> GEF
> any idea if there is any examples or any leads ?
>
> Thanks in advance
>
>
>
Re: Rotation Tool [message #247439 is a reply to message #247396] Thu, 19 February 2009 07:01 Go to previous messageGo to next message
Eclipse UserFriend
Anthony Hunter wrote:

> Hi J

> To add rotate, but you currently use these bugs for references:

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=117012
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=167316
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=130419

> Cheers...
> Anthony

> "J" <jijoy21@gmail.com> wrote in message
> news:742c17ee3fb5fa9241b9ca8351081e6b$1@www.eclipse.org...
>> Hi Folks,
>> I was looking for creating a rotation tool which can rotate editpart in
>> GEF
>> any idea if there is any examples or any leads ?
>>
>> Thanks in advance
>>
>>
>>
Hi ,

Thanks for the reply . I need to do the rotation in GEF . I tried using
Grahics.rotate() , eventhough I had the gdiplus.dll , the rotate() ,
produced nothing .
Also , updateing feedback and border of the figure is driving me into
chaos.
Do you see any practical solution ?
Re: Rotation Tool [message #247585 is a reply to message #247396] Tue, 03 March 2009 23:43 Go to previous messageGo to next message
Eclipse UserFriend
Anthony Hunter wrote:
> To add rotate, but you currently use these bugs for references:

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=117012
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=167316
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=130419

What is the status of these bugs? Is this going to be included in GEF 3.5?
Does anyone have any examples of using these?
Re: Rotation Tool [message #247672 is a reply to message #247585] Mon, 09 March 2009 18:02 Go to previous messageGo to next message
Eclipse UserFriend
>> To add rotate, but you currently use these bugs for references:

>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=117012

> What is the status of these bugs? Is this going to be included in GEF 3.5?

Okay, so I have taken the code that Hasan contributed for 117012, and I
have modified it so that it rotates figures about their center point,
rather than about the origin of the bounds. I have also split out rotate,
move and resize as three separate operations, which I think makes it a bit
easier. It all seems to be working quite nicely now.

How do I go about getting this into GEF? I am assuming that it is already
to late for 3.5, so this would be for a future release. I am going to be
using this in a commercial product, so I am very keen to make sure that
any extensions to GEF that I use end up back in GEF so I don't have to
worry about attribution. I'd be happy to do whatever it takes to get this
code adopted.
Re: Rotation Tool [message #247722 is a reply to message #247672] Mon, 16 March 2009 06:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I am really interested to get rotation tool in the next version of GEF...
Anyway is it possible to get your code to already use this feature in my
project ?

thanks,
Matthieu


> Okay, so I have taken the code that Hasan contributed for 117012, and I
> have modified it so that it rotates figures about their center point,
> rather than about the origin of the bounds. I have also split out rotate,
> move and resize as three separate operations, which I think makes it a bit
> easier. It all seems to be working quite nicely now.

> How do I go about getting this into GEF? I am assuming that it is already
> to late for 3.5, so this would be for a future release. I am going to be
> using this in a commercial product, so I am very keen to make sure that
> any extensions to GEF that I use end up back in GEF so I don't have to
> worry about attribution. I'd be happy to do whatever it takes to get this
> code adopted.
Re: Rotation Tool [message #247861 is a reply to message #247722] Mon, 23 March 2009 17:55 Go to previous messageGo to next message
Eclipse UserFriend
Matthieu wrote:

> Hi,

> I am really interested to get rotation tool in the next version of GEF...
> Anyway is it possible to get your code to already use this feature in my
> project ?

I will attach my updated code to the bug shortly.
Re: Rotation Tool [message #478434 is a reply to message #247672] Thu, 06 August 2009 05:58 Go to previous message
Eclipse UserFriend
Hi,

in the context of GEF3D, we have to support rotation as well. That is,
our 3D figures support rotation. But IMHO it is almost impossible to
support rotation in GEF without compatibility problems.

We have decided to rotate figures about their center point, which is
the standard in 3D applications. Since the location of a figure is the
top-left corner of a figure's bound, a rotation may move that point.
How do you handle that problem? For example, w/o rotation, the
following test will succeed:

figure.setBounds(b);
r = figure.getBounds();
assertEquals(r, b);

Does this test succeed with rotation?

We , that is Kristian, is working on that problem at the moment, and it
would be nice to get your opinion in order to make GEF3D compatible
with future GEF versions.

Jens


On 2009-03-09 23:02:17 +0100, ctg@ctg.co.nz (Colin Sharples) said:

>>> To add rotate, but you currently use these bugs for references:
>
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=117012
>
>> What is the status of these bugs? Is this going to be included in GEF 3.5?
>
> Okay, so I have taken the code that Hasan contributed for 117012, and I
> have modified it so that it rotates figures about their center point,
> rather than about the origin of the bounds. I have also split out
> rotate, move and resize as three separate operations, which I think
> makes it a bit easier. It all seems to be working quite nicely now.
>
> How do I go about getting this into GEF? I am assuming that it is
> already to late for 3.5, so this would be for a future release. I am
> going to be using this in a commercial product, so I am very keen to
> make sure that any extensions to GEF that I use end up back in GEF so I
> don't have to worry about attribution. I'd be happy to do whatever it
> takes to get this code adopted.
Previous Topic:How to select and scroll to a figure programatically
Next Topic:Disabling Team Menus in CVS
Goto Forum:
  


Current Time: Sun Jul 13 10:04:36 EDT 2025

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

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

Back to the top