Another feature which is essential with the bitmap and area filling capabilities is the depth of the graphic segment. Because bitmaps or filled areas are opaque, it is important to know in which order they should be displayed. GREG uses the depth attribute of the graphic segment to do so. Depths range between 1 and infinity. Depth 1 is the top layer: graphic segments at depth 1 are in front of any graphic segment at other depths. Depths 2 to infinity are plotted in this order. This means that segment at depth 2 are behind any other segment, segments at depth 3 are behind segments at depth 4, etc...Whenever segments have the same depth, the result may be unpredictable; however, normally most recently created segment appears in front of older ones.
To save unecessary refresh of the drawing, the depth attribute is not used when a segment is created: the segment appears on top of the existing ones at this time. The depth attributes becomes effective after a ZOOM action, or for hardcopies. GREG incorporates a default handling of depths when segment are created in the following way:
This behaviour is often sufficient. When not, the user can modify the depth of any graphic segment using the command CHANGE DEPTH. See the internal help for details.