Z-order

Z-order

:"This article is about a graphical user interface concept; for the space filling curve, see Z-order (curve)"

Z-order is an ordering of overlapping two-dimensional objects, such as windows in a graphical user interface (GUI) or shapes in a vector graphics editor. One of the features of a typical GUI is that windows may overlap, so that one window hides part or all of another. When two windows overlap, their Z-order determines which one appears on top of the other.

Definition

The term "Z-order" refers to the order of objects along the Z-axis. In coordinate geometry, X typically refers to the horizontal axis (left to right), Y to the vertical axis (up and down), and Z refers to the axis perpendicular to the other two (forward or backward). One can think of the windows in a GUI as a series of planes parallel to the surface of the monitor. The windows are therefore stacked along the Z-axis, and the Z-order information thus specifies the front-to-back ordering of the windows on the screen.

Use

It is important to note that three-dimensional objects cannot usually be ordered in this way. For example, it is possible to arrange three pencils on a table so that each pencil point is on top of another pencil's eraser. None of the pencils are strictly "on top" of all the others because they all overlap each other. This does not happen with GUI windows; since every window is parallel to the screen, every point within the window is at the same depth as all the others. Windows, therefore, can be stacked in a definite order.

Typically, users of a GUI can affect the Z-order by selecting a window to be brought to the foreground (that is, "above" or "in front of" all the other windows). Some window managers allow interaction with windows while they are not in the foreground, while others will bring a window to the front whenever it receives input from the user. It is also possible for special windows to be designated "always on top"; these are then fixed to the top of the Z-order so that (with few exceptions) no other window can overlap them.

When dealing with visual objects on a computer screen, an object with a Z-order of 1 would be visually "underneath" an object with a Z-order of 2 or greater. This is the same as making "layers" of objects where the Z-order determines what object is on top of another. An HTML page can use the DIV element to specify the Z-order so that some objects can be layered over others.

ee also

*Z-buffer


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Order of the Garter — Arms of the Order of the Garter Awarded by the Sovereign of the United Kingdom …   Wikipedia

  • Order of Canada — Insignia of a Member of the Order of Canada Awarded by the …   Wikipedia

  • Order of the Bath — Badge of a Companion of the Order of the Bath (Military Division) Awarded by the Queen of the United Kingdom Motto TRIA IUNCTA IN UNO …   Wikipedia

  • Order of the Thistle — Insignia of a Knight of the Order of the Thistle Awarded by the Queen of the United Kingdom Type …   Wikipedia

  • Order of Friars Minor —     Order of Friars Minor     † Catholic Encyclopedia ► Order of Friars Minor     (Also known as FRANCISCANS.) This subject may be conveniently considered under the following heads:     I. General History of the Order;     A. First Period (1209… …   Catholic encyclopedia

  • Order of Preachers —     Order of Preachers     † Catholic Encyclopedia ► Order of Preachers     As the Order of the Friars Preachers is the principal part of the entire Order of St. Dominic, we shall include under this title the two other parts of the order: the… …   Catholic encyclopedia

  • order — or·der 1 n 1: a state of peace, freedom from unruly behavior, and respect for law and proper authority maintain law and order 2: an established mode or state of procedure a call to order 3 a: a mandate from a superior authority see also …   Law dictionary

  • Order of Saint Augustine — Abbreviation OSA Formation March, 1256 Type Catholic religious ord …   Wikipedia

  • Order of the Arrow — Owner …   Wikipedia

  • Order of Australia — Insignia of an Officer of the Order of Australia Awarded by the Queen of Au …   Wikipedia

  • Order of the Phoenix (organisation) — Order of the Phoenix Harry Potter association Some Order of the Phoenix members in the Harry Potter and the Order of the Phoenix film adaptation, from left to right: Alastor Moody, Nymphadora Tonks, Sirius Black, Remus Lupin, and Albus Dumbledore …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”