Scientific Volume Imaging b.v.
Scientific Volume Imaging b.v.
Laapersveld 63
1213 VB Hilversum, The Netherlands
http://www.svi.nl
http://support.svi.nl/wiki

Set image

Tcl-Huygens reference

Tcl Notation

imageName set value

Returns: void.

imageName set 0 is identical to the operation imageName clear.


Tcl built-in command: set

(Documentation from www.tcl.tk)

NAME

set - Read and write variables

SYNOPSIS

set varName ?value?

DESCRIPTION

Returns the value of variable varName. If value is specified, then set the value of varName to value, creating a new variable if one does not already exist, and return its value. If varName contains an open parenthesis and ends with a close parenthesis, then it refers to an array element: the characters before the first open parenthesis are the name of the array, and the characters between the parentheses are the index within the array. Otherwise varName refers to a scalar variable.

If varName includes namespace qualifiers (in the array name if it refers to an array element), or if varName is unqualified (does not include the names of any containing namespaces) but no procedure is active, varName refers to a namespace variable resolved according to the rules described under NAME RESOLUTION in the namespace manual page.

If a procedure is active and varName is unqualified, then varName refers to a parameter or local variable of the procedure, unless varName was declared to resolve differently through one of the global, variable or upvar commands.

EXAMPLES

Store a random number in the variable r:
set r [expr {rand()}]

Store a short message in an array element:

set anAry(msg) "Hello, World!"

Store a short message in an array element specified by a variable:

set elemName "msg"
set anAry($elemName) "Hello, World!"

Copy a value into the variable out from a variable whose name is stored in the vbl (note that it is often easier to use arrays in practice instead of doing double-dereferencing):

set in0 "small random"
set in1 "large random"
set vbl in[expr {rand() >= 0.5}]
set out [set $vbl]

SEE ALSO

expr, global, namespace, proc, trace, unset, upvar, variable

KEYWORDS

read, write, variable
Copyright © 1995-1997 Roger E. Critchlow Jr. Copyright © 1993 The Regents of the University of California. Copyright © 1994-1996 Sun Microsystems, Inc.

More information and examples

http://wiki.tcl.tk/set


Comments

No comments. Add one.

Probably related Tcl manual sections

Set image
Job settings
Set parameters
Set CPU counts
Set a pixel value
Set display gamma
Editing a setting
Copying a setting
Deleting a setting
Set debugging levels
Creating a new setting
Making a setting default
Using an existing setting
Set/Get initial color mode
Set the global undo enable flag
Set advice maximum memory usage
Get or set the image user string
Set the execution log enable flag
Set or get the image backup status
Set the global history log enable flag
Setting and retrieving OME XML records
Set the verbosity level of popup dialogs

Probably related wiki articles

Set Channel Colors*
Convert The Data Set*
User Defined Preset*
Set The Signal To Noise Ratio
Huygens Remote Manager Help Select Task Settings
Huygens Remote Manager Help Select Parameter Settings