Class RotateMultipleTool

GoDiagram®
v10.0.8
by Northwoods Software®

The RotateMultipleTool class lets the user rotate multiple objects at a time.

Inheritance
RotateMultipleTool
Namespace: Northwoods.Go.Tools.Extensions
Assembly: RotateMultipleWinForms.dll
Syntax
public class RotateMultipleTool : RotatingTool
Remarks

When more than one part is selected, rotates all parts, revolving them about their collective center. If the control key is held down during rotation, rotates all parts individually.

Caution: this only works for Groups that do not have a Placeholder.

Constructors

RotateMultipleTool()

Constructs a RotateMultipleTool and sets the name for the tool.

Declaration
public RotateMultipleTool()

Methods

ComputeRotate(Point)

Calculate the desired angle with different rotation points, depending on whether we are rotating the whole selection as one, or Parts individually.

Declaration
public override double ComputeRotate(Point newPoint)
Parameters
Type Name Description
Point newPoint

in document coordinates

Returns
Type Description
double
Overrides

DoActivate()

Calls DoActivate(), and then remembers the center point of the collection, and the initial distances and angles of selected parts to the center.

Declaration
public override void DoActivate()
Overrides

DoDeactivate()

Clean up any references to Parts.

Declaration
public override void DoDeactivate()
Overrides

Rotate(double)

Rotate all selected objects about their collective center. When the control key is held down while rotating, all selected objects are rotated individually.

Declaration
public override void Rotate(double newangle)
Parameters
Type Name Description
double newangle
Overrides