Levels 3 and 4
Level 3
(Perhaps all rotational transformations should be put at a higher level, for instance higher than viewport operations.)
*Full Instance ("INSTF") <identifier> <full instance tail> This command indicates that the subpicture <identifier> is to be called (instanced) in a "full" manner as described in an explanatory section. For one thing, this means that the 40 hex bit of the single byte of <header info> must have been set in the SUBHED command which started the definition of <identifier>. If <identifier> has never been defined, the empty subpicture (i.e., nothing) should be displayed in its place.
The <full instance tail> is similar to the <simple instance tail> described under the INSTS command, but the former contains more information. Below is a list of the information which can be specified, and the bit assigned to the presence/absence of each piece of information. The pieces of information which are present always appear in the byte stream in the order they are described in this list. (All pieces of information are described more fully in Full Subpicture Calls, except for the "AS information" which is described in Simple Subpicture Calls.)
Bit (hex) Information
80 As information --"name" of this particular instance.
Consists of an <identifier>.
40 Translation information -- Center of the subpicture's image
on the calling page. Consists of an <x coordinate> and a
<y coordinate>.
20 Rotation -- Fractional part of 2pi to rotate the image
counterclockwise. Consists of a 16-bit unsigned fraction.
10 Portion Information -- Rectangular part of subpicture which
is to be displayed. Consists of <x coordinate>,
<y coordinate>, <x delta>, and <y delta>.
8 Uniform Magnification -- Amount to scale the whole
subpicture. Consists of a floating point number (which
should not be zero).
4 Separate x and y magnification -- Separate scales for the x
and y axes of the subpicture. Consists of two floating
point numbers (neither of which should be zero).
2 Image Size -- How large a rectangle on the calling page is
the image to occupy. Consists of an <x delta> and a
<y delta> (neither of which should be zero).
1 Affine transformation -- The map from the called to the
calling coordinates system. Consists of six floating point
numbers.
Notes:
-
At most one of the three bits: 8, 4, and 2, should be set.
-
If the 1 bit is set, bits 2, 4, 8, 20, and 40, should not be set.
-
If additional optional parameters are ever added to the full subpicture call, another code byte could follow all the above information. In that case, the
<count>part of the<full instance tail>would include this second code byte and any additional bytes of information.
*Escape to top level coordinate system ("ESCTOP"). Until a RESLEV command is (subsequently) executed, all display commands (moves, draws, dots, and texts) shall operate as if they were issued by the top level (main) picture instead of the subpicture containing them. That is, they shall be mapped to the screen according to the map for the highest level. Subpicture calls themselves, which are made while an ESCTOP command is in effect, are not affected by the command. That is, transformations are calculated as if the command were not in effect. The calculated transformations are ignored, however, and information displayed by the subpicture still appears to be at the top level, until a RESLEV command nullifies the ESCTOP mode. Thus a subpicture call executed while an ESCTOP command is in effect, acts as if a RESLEV were executed immediately before the call, and an ESCTOP command were executed as the first command of the subpicture. Similar considerations hold for returning from subpictures.
*Resume current level coordinate system ("RESLEV"). This command restores the logical coordinate system corresponding to the subpicture currently executing, in case that coordinate system was disabled by an ESCTOP command. (See ESCTOP.)
Changes to levels 0, 1, and 2 for level 3.
MARK -- the saved beam position shall be in terms of the logical coordinate system, not the physical coordinate system.
TEXTR, TEXT, TEXTO -- Since a full subpicture is supposed to be transformed as a whole, as if it were a picture in its own right, it appears to this author that, in particular, all beam movements related to characters should be affected. This includes character size, tab, carriage return and line feed. In particular, carriage return should set the beam to the left margin--that is, to the left edge of the logical coordinate system of the called subpicture. All these changes may be very hard to accomplish, and what should be done will be left unspecified at this time, with comment from readers particularly invited.
Level 4
(Perhaps viewpoint operations can be included in level 3.)
*Declare Viewport ("SETVW") <viewport id> <x coordinate> <y coordinate> <x delta> <y delta> Set the viewport identified by <viewport id> to represent the indicated area of the logical screen. The x and y data are not physical screen coordinates, since that would involve device dependencies. This command completely supersedes any previous declaration of the same viewport. If information is already displayed within the viewport specified, this command causes the displayed information to be relocated on the screen to its new position.
If the area specified exceeds the limits of the graphics standard display screen, what happens is left unspecified. Viewports need not be disjoint; in other words, two viewports can present display information at the same point on the screen.
If <x delta> or <y delta> are negative, the viewport named should be deleted. All information displayed by it shall no longer appear.
Because it affects the top level picture, this author feels that this command should not occur as part of a picture or in a subpicture declaration.
*Add subpicture to viewport ("ADDSVW") <identifier> <viewport id> The subpicture named <identifier> is displayed within the viewport specified, if it is not already displayed there. (If it is, nothing is done.) The subpicture must be capable of being called via a full subpicture call. If the viewport has never been declared via a SETVW command what happens is left unspecified. (Three possibilities are: nothing is displayed; the viewport defaults to the whole logical screen; the human viewer is permitted by the Using Host to specify the viewport.) If the viewport is subsequently declared, the subpicture shall be displayed in it. If the subpicture has never be declared, nothing is displayed for it; when and if it is subsequently declared, the new definition is displayed in the viewport. More than one subpicture may be displayed in a single viewport at once.
Because it affects the top level picture, this author feels that this command should not occur as part of a picture or in a subpicture declaration.
*Clear viewport ("CLVW") <viewport id> All subpictures which have been added with the ADDSVW command to the viewport specified in this command are removed from it. Thus the specified viewport contributes nothing to what the human viewer sees. (After a CLVW, the area of the viewport may not be blank due to other, non-cleared viewports which overlap it.)
Because it affects the top level picture, this author feels that this command should not occur as part of a picture or in a subpicture declaration.
Changes to levels 0, 1, 2, and 3 for level 4.
ERASE -- All viewports are cleared (as in the CLVW command) but their declarations are remembered.
ENDPIC -- This command partially loses its purpose: it no longer serves to mark the end of all picture information to be presented to the user, since viewport operations may follow which amend or alter the picture. This function is partially taken over by the DELAY and NODELAY commands described below.