TOC PREV NEXT INDEX

Axis2D

Synopsis

create an XY-axis grid with labels based on mesh extents

Input Port

in_field

Mesh

Output Port

out_obj

output renderable object

Description

Axis2D creates a grid of lines aligned with the XY axes; the grid contains major and minor tick lines with numeric labels based on the extents of the first two dimensions of the input mesh (which is commonly included in a field). By default it creates five major axis lines in each dimension and one minor line between each pair of major lines.

Input

in_field

Mesh. Used to select the min and max extents of the axis grid.

Parameters

X start

UIfieldTypein. Draw only grid lines greater than this X coordinate in the input mesh's coordinate system.

X end

UIfieldTypein. Draw only grid lines less than this X coordinate in the input mesh's coordinate system.

X origin

UIfieldTypein. Draw the main YZ axis plane at this X coordinate. Other axis lines are spaced at equal intervals from this plane according to X step. Note that this does not mean that this X coordinate is assigned a value of 0; it only sets the reference point for drawing axis lines perpendicular to X. For example, if you set X origin to 200, the X value printed below that point is still 200, and X tick lines are drawn at 200 - X step, 200, 200+X step, 200+2(X step), and so on.

X step

UIfieldTypein. Distance along the X axis between adjacent major lines.

X labels offset

UIfieldTypein. Offset distance (-X) from the X origin (ref) to the lower left corner of the numeric labels.

X ndigits

UIslider. Number of digits after the decimal point in the X axis labels.

X minor ticks

UIslider. Number of minor lines between major lines along the X axis.

An XformEditor that controls the position, orientation, and scale of the axes in space. The transformation defined here is added to the renderable out_obj.

Y start

UIfieldTypein. Draw only grid lines greater than this Y coordinate in the input mesh's coordinate system.

Y end

UIfieldTypein. Draw only grid lines less than this Y coordinate in the input mesh's coordinate system.

Y origin

UIfieldTypein. Draw the main XZ axis plane at this Y coordinate. Other axis lines are spaced at equal intervals from this line according to Y step. Note that this does not mean that this Y coordinate is assigned a value of 0; it just sets the reference point for drawing Y tick lines. For example, if you set Y origin to 200, the Y value printed to the left of that point is still 200, and Y tick lines are drawn at 200 - Y_step, 200, 200+Y_step, 200+2(Y_step), and so on.

Y step

UIfieldTypein. Distance along the Y axis between adjacent major axis lines.

Y labels offset

UIfieldTypein. Offset distance (-Y) from the Y origin (ref) to the lower left corner of the numeric labels.

Y ndigits

UIslider. Number of digits after the decimal point in the Y axis labels.

Y minor ticks

UIslider. Number of minor tick lines between adjacent major tick lines in Y.

Major Line Mode

UIradioBoxLabel. Specifies how to draw major tick lines. Valid choices are:
0 solid
1 dashed
2 dotted
3 dashdot

Minor Line Mode

UIradioBoxLabel. Specifies how to draw minor tick lines. Valid choices are:
0 solid
1 dashed
2 dotted
3 dashdot

Output Port

out_fld

A GD GroupObject contains the lines comprising the axis grid.

Example

Libraries.Examples.Visualization.advect
examples/advect.v

File

See also related modules

Axis3D

TOC PREV NEXT INDEX