ITRANSLATE
Syntax | Arguments | Keywords | Examples | Version History | See Also
The ITRANSLATE procedure moves an iTool visualization.
This routine is written in the IDL language. Its source code can be found in the file itranslate.pro in the lib/itools subdirectory of the IDL distribution.
Syntax
ITRANSLATE, Id [, X[, Y[, Z]]] [, /DATA | /DEVICE | /NORMAL] [, /RESET] [, TOOL=iToolID] [, X=value] [, Y=value] [, Z=value]
Arguments
Id
The identifier of the object to translate. If you pass a partial identifier, the IGETID function is called to retrieve the full identifier string.
X, Y, Z
The distance to translate the specified visualization in the x, y, and z directions, specified in normalized coordinates unless the DATA or DEVICE keyword is specified.
Keywords
DATA
Set this keyword if the input arguments are specified in data coordinates.
DEVICE
Set this keyword if the input arguments are specified in device coordinates (pixels). This is the default behavior.
NORMAL
Set this keyword if the input arguments are specified in normalized [0, 1] coordinates.
RESET
Set this keyword to reset the current translation before applying any input translation values.
TOOL
Set this keyword to the identifer of the iTool in which Id is found. If not supplied, the current iTool is used.
X
Set this keyword to the distance to translate the visualization in the X direction. If this keyword is specified, the value supercedes the X argument.
Y
Set this keyword to the distance to translate the visualization in the Y direction. If this keyword is specified, the value supercedes the Y argument.
Z
Set this keyword to the distance to translate the visualization in the Z direction. If this keyword is specified, the value supercedes the Z argument.
Note
Z values are ignored if the DEVICE keyword is set.
Examples
In the following example, we draw a circle over a JPG image, and then translate the circle to another location.
Version History
See Also
IGETID, IROTATE, ISCALE, IZOOM, Translation (iTool User's Guide).