public RotateMeshTool(EditingWindow fr, MeshEditController controller, boolean only2D)
{
super(fr, controller);
initButton("rotatePoints");
if (only2D)
manipulator = new NinePointManipulator(new Image[] {
NinePointManipulator.ROTATE_TOPLEFT, null, NinePointManipulator.ROTATE_TOPRIGHT,
null, null, null,
NinePointManipulator.ROTATE_BOTTOMLEFT, null, NinePointManipulator.ROTATE_BOTTOMRIGHT});
else
manipulator = new NinePointManipulator(new Image[] {
NinePointManipulator.ROTATE_TOPLEFT, NinePointManipulator.ROTATE_TOP, NinePointManipulator.ROTATE_TOPRIGHT,
NinePointManipulator.ROTATE_LEFT, null, NinePointManipulator.ROTATE_RIGHT,
NinePointManipulator.ROTATE_BOTTOMLEFT, NinePointManipulator.ROTATE_BOTTOM, NinePointManipulator.ROTATE_BOTTOMRIGHT});
manipulator.addEventLink(HandlePressedEvent.class, this, "handlePressed");
manipulator.addEventLink(HandleDraggedEvent.class, this, "handleDragged");