|Re: Rotate Layer [message #625017 is a reply to message #552463]
||Wed, 22 September 2010 07:01
|| Jens von Pilgrim
Registered: July 2009
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
> 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.
Powered by FUDForum
. Page generated in 0.02882 seconds