city_plot


Synopsis

create plot of blocks based on the height (value) of a 2D field

Input Ports

in_field

Mesh_Unif+Node_Data+Dim2

ui_parent

user interface parent object

 

Output Ports

out_fld

Mesh + Node_Data

out_obj

output renderable object

 

Description

city_plot creates a block on each node of the input mesh. The color and height (out of the grid) of the block are determined independently by selectable input data components at that node. The lower left (min X and Y) corner of the block is at the node's coordinate, so the city plot extends over the dimensions of the field by one block width (in X) and length (in Y), because the block at (maxX, maxY) extends from that point to (max_x + scale_x * x spacing, max _y + scale_y * y spacing).

Input Ports

in_field

Mesh_Unif + Node_Data + Dim2. The 2D field to be plotted.

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

Height Component

UIradioBoxLabel. Selects which component of the input to map to the height of the block at that point of the grid.

Color Component

UIradioBoxLabel. Selects which component of the input to map to the color of the block at that point of the grid.

Normalize

UItoggle. When turned on (1), the heights of the blocks are normalized to a constant value set by the height scale, and the glyph_comp is ignored.

height scale

UIslider. Scales the input height value by this amount. If normalize is on, this value becomes the height of the blocks. Height is measured in the coordinate system of the input field.

x-scale

UIslider. Scales the X size of each block relative to the size of that block's cell width. scale_x of 1 means the block takes up the full width of the cell and abuts the next block (in X); scale_x of 0.5 means the block takes up 1/2 the width of the cell.

y-scale

UIslider. Scales the Y size of each block relative to the size of that block's cell width. scale_y of 1 means the block takes up the full length of the cell and abuts the next block (in Y); scale_y of 0.5 means the block takes up 1/2 the length of the cell.

Output Ports

out_fld

The output field is an unstructured Mesh of cell type Quad containing the blocks.

out_obj

Renderable object corresponding to out_fld.

Example

Libraries.Examples.Visualization.City_Plot
examples/city_plot.v

File

v/modules.v

See also

geo_glyph