Rotation Tool [message #247362] |
Wed, 18 February 2009 02:56  |
Eclipse User |
|
|
|
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 #247722 is a reply to message #247672] |
Mon, 16 March 2009 06:02   |
Eclipse User |
|
|
|
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 #478434 is a reply to message #247672] |
Thu, 06 August 2009 05:58  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.38995 seconds