Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Rotation Tool
Rotation Tool [message #247362] Wed, 18 February 2009 07:56 Go to next message
Jijoy is currently offline JijoyFriend
Messages: 5
Registered: July 2009
Junior Member
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] Thu, 19 February 2009 03:21 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
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 12:01 Go to previous messageGo to next message
Jijoy is currently offline JijoyFriend
Messages: 5
Registered: July 2009
Junior Member
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] Wed, 04 March 2009 04:43 Go to previous messageGo to next message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 96
Registered: July 2009
Location: Wellington, New Zealand
Member

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?


Colin Sharples
CTG Games Ltd
Wellington, New Zealand
Re: Rotation Tool [message #247672 is a reply to message #247585] Mon, 09 March 2009 22:02 Go to previous messageGo to next message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 96
Registered: July 2009
Location: Wellington, New Zealand
Member

>> 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 Go to previous messageGo to next message
Matthieu is currently offline MatthieuFriend
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 Go to previous messageGo to next message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 96
Registered: July 2009
Location: Wellington, New Zealand
Member

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 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
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: Fri Apr 26 00:52:56 GMT 2024

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

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

Back to the top