VCS Example: Modifying a Template     


Description

The template determines the location of each picture segment, the space to be allocated to it, and related properties relevant to its display. This example shows how to modify the template by use of the Template Panel, the Template Browser Panel, the Template Text Editor Panel, and the Overall Modification Panel.

Step 1: Specifying the Template, Isoline Graphics Method, and Data

VCS does not allow the modification of `default' attribute sets. Therefore, select the 'default' attribute set on the green Template Panel with the middle mouse button . (The Template Panel is accessed via Main Menu: `Primary' -> `Template Table'.) Move the pointer over the Template Panel's menu button and press and hold the left mouse button. Then move the pointer over the `Copy' item and release--a popup window will appear. Enter a new attribute set name (e.g., `example') and select the `Save' button. The `example' attribute set name will appear in the green Template Panel. This is the new template attribute set that will be modified in this example.

Use this newly created template attribute set name and the Isoline attribute set name `default' in the chosen picture descriptor form located in the Page Description Panel. (The Isoline Graphics Method Panel is accessed via Main Menu: `Primary' -> `Graphics Table' -> `Isoline'.) Select the example.nc file in the Data Selection Panel, move the pointer over the `psl' variable in this Panel's `Variables' scroll window, and double-click the left mouse button. The data set attribute name `psl (3D)' then will be displayed in the red Data Panel above.

In order to display the data, select the string `psl (3D)' in the red Data Panel with the middle mouse button. Then move the pointer to the chosen red input text window of the picture descriptor form and click the middle mouse button. This action will plot the `psl (3D)' data by the Isoline graphics method on the VCS Canvas. (See the Example on Creating Plots by Different Graphics Methods.)

Step 2: Accessing the Template Browser Panel

Scroll down the green window of the Template Panel and select the `example' string. (If `example' is selected with the middle mouse button, VCS will copy `example' into its copy buffer; if `example is selected with the right mouse button, VCS will delete `example' from the list.) The Template Browser Panel will appear below.

Step 3: Showing Rulers

Move the pointer over the yellow `View' menu button and press and holding the left mouse button. Then move the pointer over the `Rulers' menu item and release the left mouse button. Rulers will appear above and to the left of the VCS Canvas. (The Canvas represents the size of a page: 8.5 X 11 in or 21.59 X 27.94 cm for a 'landscape' setting and 11 X 8.5 in or 27.94 X 21.59 cm for a 'portrait' setting.)

Step 4: Showing Grid Lines

Move the pointer over the yellow `View' menu button on the Template Browser Panel and press and hold the left mouse button. Then move the pointer over the `Grid' menu item and release the left mouse button. Grid lines will appear at inch or centimeter intervals (see below) on the VCS Canvas.

Step 5: Displaying Rulers and Grid in Centimeters vs Inches

Move the pointer over the yellow `View' menu button on the Template Browser Panel and press and hold the left mouse button. Then move the pointer over the `Cm' menu item and release the left mouse button. The rulers and grid lines will display at centimeter intervals. Next, move the pointer over the `Inch' menu item and release the left mouse button. The rulers and grid lines will revert to displaying at inch intervals.

Step 6: Moving Segments on the VCS Canvas

Select with the left mouse button the `name' template text attribute on the Template Browser Panel. The Template Text Editor Panel will appear below. A red button with a black dot also will appear on the VCS Canvas. Position the pointer over this red button and press and hold the left mouse button. Then move the red button to another location on the screen and release the left mouse button. The `name' attribute (`psl') will appear in the new location. When moving the red button, note the markers on the rulers which facilitate placement of the graphic segment in the desired location.

A template segment also can be moved using the Template Text Editor Panel as follows. Edit the `x' input text window (e.g., `5') and the `y' input text window (e.g., `0.5'); these values specify the position of the template's upper left corner in inches or centimeters. Then select the red `Apply' button to view the results on the VCS Canvas.

Step 7: Changing the Text Type

To specify the text type, access the (Tt) Text Table Panel(via Main Menu: `Basic' -> `Text Table (Tt) and (To)'). Move the pointer over the magenta `(Tt)' scroll window and select `std' with the middle mouse button. Then move the pointer to the Template Text Editor Panel's magenta `Tt' input text window and click the middle mouse button. The `default' text string will be replaced by the `std' text string. Select the red `Apply' button to view the results on the VCS Canvas.

Step 8: Changing the Text Orientation

To specify the text orientation, access the (To) Text Orientation Table Panel (via Main Menu:, `Basic' -> `Text Table (Tt) and (To)'). Move the pointer over the orange `(To)' scroll window and select `defcentup' with the middle mouse button. Then move the pointer to the Template Text Editor Panel's orange `Tt' input text window and click the middle mouse button. The `default' text string will be replaced by the `defcentup' text string. Select the red `Apply' button to view the results on the VCS Canvas.

Step 9: Removing the Template Text Editor Panel and Associated Red Button

Select the 'skull and crossbones' icon in the upper left corner of the Template Text Editor Panel. The Panel will be removed, as will the associated red button on the VCS Canvas.

Step 10: Scaling and Translating the Overall Template

Select the yellow `Modify Overall Template' rectangle on the Template Browser Panel--the Overall Modification Panel will appear below. In addition, eight red buttons with an interconnecting box will appear on the VCS Canvas. Position the pointer over the red `BR' button (i.e., the bottom right corner of the box), and press and hold the left mouse button. Then move the `BR' button so that the box connecting the red buttons is reduced in size--the template will adjust to this new box size.

To maintain the template's aspect ratio, edit the `Scale X' and `Scale Y' input text windows on the Overall Modification Panel. (For example, identical entries of `0.5' for 'Scale X' and 'Scale Y' will shrink the template's dimensions by a factor of 2; conversely, identical entries of '2.0' will double the template's dimensions.) Select the red `Apply' button to view the results on the VCS Canvas.

To translate the overall template, position the pointer anywhere within the box connecting the red buttons on the VCS Canvas, and press and hold the left mouse button. Then move the pointer to another location on the Canvas and release the left mouse button. The template will be redrawn in this new location.

To fine-tune the position of the overall template, edit the `Translate X' and Translate Y' input text windows on the Overall Modification Panel, which specify the X and Y positions of the template's upper left corner. (The values entered may be expressed either in inches or centimeters.) Select the red `Apply' button to view the results on the VCS Canvas.


See also Hints on the Template Panel and the Template Browser Panel for further details.



Last update December 12, 1996. For further information, contact: Dean N. Williams (vcs@pcmdi.llnl.gov)

This page is maintained by Anna McCravy (mccravy@pcmdi.llnl.gov)
 and LLNL Disclaimers

UCRL-MI-122789