Wiki Markup |
---|
{alias:vie} h2. Name *vie* — Viewport handling h2. Syntax {panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA} *vie* _nx ny number_ *vie* _number_ *| next| pre | coor* \[*con*] *vie def | del* *vie 1 1 1* {panel} h2. Description Viewports are rectangular sub-areas of the screen or a plot. h2. Arguments _nx ny number_ {indent}Make _nx_ times _ny_ viewports and use viewport number _number_ as the active viewport. Default, the present display will be moved to the lower left viewport. If you do not want that display, erase it.{indent} _number_ {indent}Select viewport number _number_.{indent} *def* {indent}Erase all viewports and reset to one viewport (the whole screen).{indent} *del* \[_number_] {indent}Delete active viewport \[or viewport number _number_].{indent} *next* {indent}Go to next viewport.{indent} *pre* {indent}Go to previous viewport.{indent} _number_ *| next | pre con* {indent}Connect camera from present viewport to the _number_ *| next | pre* viewport. This will make the viewports suitable for parallel display of two datasets.{indent} *1 1 1* {indent}Create an initial viewport for coordinate selection.{indent} *coor* _x1 y1 x2 y2_ {indent}The coordinates are in virtual display coordinates from 0 to 1. x1 y1 is the lower left corner, x2 y2 is the upper right corner left. NB! Needs a vie 1 1 1 viewport as a base.{indent} *con* {indent}Will connect the viewport camera to the previous.{indent} h2. Examples h3. Ex.1: Viewport scenes {noformat:|borderWidth=1|bgColor=#eeeeee} # One can copy geometry to scalars and then to another # scalar set of another surface thus displaying # one surface as scalars on top of another. vie def ;# reset viewport ret 10 ;# return start window vie 2 2 1 ;# set up 4 viewports, select first mak ran 11 ;# make random points grp 70 70 ;# make grid and scalars ssc ;# self scale mak p ;# transform grid to polydata acm n 11 ;# map display mhi grid1 ;# move grid to hi grid1 vie 2 con ;# select viewport 2 and connect to previous mak ran 11 ;# make new random points grp 70 70 ;# make new grid mak p ;# transform grid to polydata acm l ;# map display mhi grid2 ;# move grid to hi grid2 vie 3 con ;# select viewport 3 mak rsc grid1 ;# replace scalars from grid1 acm l ;# map grid1 on top of grid2 con l ;# contour grid1 on top of grid2 vie 4 con ;# select viewport 4 map ;# map grid1 on top of grid2 con l ;# contour grid1 on top of grid2 {noformat} The above example produces this image. !att:_img_ref^cmd_vie.png! _Connected viewports_ h2. See also [xwi - Window on screen], [win - Window specification], [ssc - Self scale of data] {pagebreak} |
Page Comparison
General
Content
Integrations