Home » Eclipse Projects » GEF » Rotation Tool
| | | |
Re: Rotation Tool [message #247672 is a reply to message #247585] |
Mon, 09 March 2009 22:02 |
|
>> 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.
Colin Sharples
CTG Games Ltd
Wellington, New Zealand
|
|
|
Re: Rotation Tool [message #247722 is a reply to message #247672] |
Mon, 16 March 2009 10:02 |
Matthieu Messages: 7 Registered: July 2009 |
Junior Member |
|
|
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 21:55 |
|
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.
Colin Sharples
CTG Games Ltd
Wellington, New Zealand
|
|
|
Re: Rotation Tool [message #478434 is a reply to message #247672] |
Thu, 06 August 2009 09:58 |
|
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.
|
|
|
Goto Forum:
Current Time: Fri Dec 27 03:22:32 GMT 2024
Powered by FUDForum. Page generated in 0.04166 seconds
|