MoveCmd, RotateCmd, ScaleCmd - coordinate transformation commands
Contents
Description
The Unidraw library predefines three purely interpretive commands for performing coordinate
transformations: MoveCmd defines a translation, RotateCmd defines a rotation, and ScaleCmd defines a two-
dimensional scaling.
Movecmd Public Operations
MoveCmd(ControlInfo*,floatdx=0,floatdy=0)MoveCmd(Editor*=nil,float=0,float=0)
Construct a new MoveCmd, specifying the translation distances in the horizontal (dx) and vertical
(dy) dimensions.
voidGetMovement(float&,float&)
Return the translation distances specified in the constructor.
Name
MoveCmd, RotateCmd, ScaleCmd - coordinate transformation commands
Rotatecmd Public Operations
RotateCmd(ControlInfo*,float=0)RotateCmd(Editor*=nil,float=0)
Construct a new RotateCmd, specifying the rotation angle in degrees.
floatGetRotation()
Return the rotation angle specified in the constructor.
Scalecmd Public Operations
ScaleCmd(ControlInfo*,floatsx=1,floatsy=1,Alignment=Center)ScaleCmd(Editor*=nil,float=1,float=1,Alignment=Center)
Construct a new ScaleCmd, specifying the scaling factors in the horizontal (sx) and vertical (sy)
dimensions and an alignment suggesting the point about which the component should be scaled.
voidGetScaleing(float&,float&)AlignmentGetAlignment()
Return the scaling factors and alignment specified in the constructor.
See Also
Command(3U) Unidraw 24 January 1991 transforms(3U)
Synopsis
#include<Unidraw/Commands/transforms.h>
