Class RotateMultipleTool
- Namespace
- Northwoods.Go.Tools.Extensions
- Assembly
- RotateMultipleWinForms.dll
The RotateMultipleTool class lets the user rotate multiple objects at a time.
public class RotateMultipleTool : RotatingTool
- Inheritance
-
RotateMultipleTool
- Inherited Members
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.
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.
public override double ComputeRotate(Point newPoint)
Parameters
newPoint
Pointin document coordinates
Returns
DoActivate()
Calls DoActivate(), and then remembers the center point of the collection, and the initial distances and angles of selected parts to the center.
public override void DoActivate()
DoDeactivate()
Clean up any references to Parts.
public override void DoDeactivate()
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.
public override void Rotate(double newangle)
Parameters
newangle
double