ScaleTool - tool for rotating components
SYNOPSIS
#include <Unidraw/Tools/scale.h>
DESCRIPTION
ScaleTool lets the user rotate components by direct manip-
ulation.
PUBLIC OPERATIONS
ScaleTool(ControlInfo* = nil)
Create a new ScaleTool.
virtual Manipulator* CreateManipulator(
Viewer*, Event&, Transformer*
)
virtual void InterpretManipulator(Manipulator*)
CreateManipulator detects whether the user clicked
on a component. If not, it clears the editor's
selection and returns a nil manipulator. If a com-
ponent was hit, and if the component was not previ-
ously selected, then CreateManipulator clears the
editor's selection, selects the component the user
hit, and delegates manipulator creation and inter-
pretation to it. If the component was the only
selected component, it again delegates manipulator
creation and interpretation to the component, but
the selection is unaltered. If the user clicks on
one of many selected components, then CreateManipu-
lator will delegate manipulator creation and inter-
pretation to the hit component without altering the
selection.
SEE ALSO
Tool(3U)
Man(1) output converted with
man2html