Hi Kambiz,
[quote="Kambiz"]
[quote="P_G"]
Is there a chance to get more control over Resize and rotation? (Rotating in a free angle and resizing in a user defined ratio (perhaps via mouse?))
[/quote]
The following methods are provided to rotate and scale the links:-
[code]function Rotate(const Angle {in radians}: Double): Boolean;
function Scale(const Factor {in percent}: Double): boolean;[/code]
However, there's no mouse or keyboard interface for doing these operations.[/quote]
I don't think a mouse/keyboard interface is really needed for scaling, but if one really wants it, I suppose it could be done. Here are 2 alternatives:
Alternative 1)
i) Mouse interface: Select the node. Press Ctrl while rotating the mouse wheel.
ii) Keyboard interface: Select the node. Press Ctrl + 'UpKey' to scale up, or Ctrl + 'DownKey' to scale down. Ctrl + '0' combination resets the scaling.
Alternative 2)
Select the node. Right click for 'Properties' and adjust the scale in a slider in the Properties window.
Obviously, Alternative 2 is easier to implement --even I can implement this
--, while Alternative 1 is (arguably) more user frinedly.
Anyway, I am more interested in rotation which needs your expertise. Here's how I would like to see it happen:
i) Mouse interface: Select the node. While pressing Shift on one of the Grabboxes (those little boxes that appear around the selection rectange) move the mouse. This rotates the selection rectange around it center.
ii) Keyboard interface: I have no idea how to handle this, sorry
Incidentally, SGDemo v2b2 does not seem to show the link lines. Is this by design (i.e. is there some option to check) or is it a missing feature.