Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Rotate Layer
Rotate Layer [message #552463] Thu, 12 August 2010 10:02 Go to next message
Marian Seitner is currently offline Marian SeitnerFriend
Messages: 5
Registered: August 2010
Junior Member
Hi!

Is it possible to rotate a whole layer with all the figures in it?

If not (yet), what would need to be done to get this working?


Thanks!
Re: Rotate Layer [message #625017 is a reply to message #552463] Wed, 22 September 2010 07:01 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 295
Registered: July 2009
Senior Member
On 12.08.10 12:02, tamm0r wrote:
> Is it possible to rotate a whole layer with all the figures in it?

AFAIK this is not possible with GEF (IMHO GEF does not support rotation
at al).

> If not (yet), what would need to be done to get this working?

Unfortunately it is not that simple. When a figure (and a layer is only
a figure in that sense) is rotated, all coordinates are to be calculated
differently. E.g. mouse selection has to be aware of the rotation,
connection anchors, and even redrawing has to be adjusted.

Fortunately it has all been implemented already in GEF3D. GEF3D fully
supports rotation (around all three axis). If you do not need full 3D,
you could simply restrict the "camera" in order to achieve a 2D look and
feel. Rotating a layer will then be very simple: You will have to create
a 3D figure and rotate it around the z-axis. Note that you can mix 2D
and 3D figures. However, there are some restriction of GEF3D at the
moment, e.g., scrollpanes and direct editing are not supported.

Cheers

Jens
Previous Topic:[DND] TransferDropTargetListener should not be deprecated
Next Topic:[Zest] ExpandableTreeLayoutAlgorithm.java
Goto Forum:
  


Current Time: Wed Nov 26 15:44:33 GMT 2014

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

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