Query: transforms
OS: sunos
Section: 3u
Links: sunos man pages all man pages
Forums: forum home forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
transforms(3U) InterViews Reference Manual transforms(3U)NAMEMoveCmd, RotateCmd, ScaleCmd - coordinate transformation commandsSYNOPSIS#include <Unidraw/Commands/transforms.h>DESCRIPTIONThe 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 OPERATIONSMoveCmd(ControlInfo*, float dx = 0, float dy = 0) MoveCmd(Editor* = nil, float = 0, float = 0) Construct a new MoveCmd, specifying the translation distances in the horizontal (dx) and vertical (dy) dimensions. void GetMovement(float&, float&) Return the translation distances specified in the constructor.ROTATECMD PUBLIC OPERATIONSRotateCmd(ControlInfo*, float = 0) RotateCmd(Editor* = nil, float = 0) Construct a new RotateCmd, specifying the rotation angle in degrees. float GetRotation() Return the rotation angle specified in the constructor.SCALECMD PUBLIC OPERATIONSScaleCmd( ControlInfo*, float sx = 1, float sy = 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 sug- gesting the point about which the component should be scaled. void GetScaleing(float&, float&) Alignment GetAlignment() Return the scaling factors and alignment specified in the constructor.SEE ALSOCommand(3U) Unidraw 24 January 1991 transforms(3U)