GDminmax


Synopsis

calculate the minimum and maximum of the field node or cell data

GDminmax


group GDminmax {
group+read+IPort2 &input<NEnumColors=4,NEcolor0=0xff> {
data_method render;
};
double+OPort2+write+nonotify min_value;
double+OPort2+write+nonotify max_value;
method+notify_inst+notify_val upd_func = "GDminmax_update";
};

 

DefaultMinMax


GDminmax DefaultMinMax {
min_value = 0.0;
max_value = 255.0
};

 

Description

These templates define a module that calculates the minimum and maximum data values in the input data. GDminmax defines the elements that cause the module's update method to execute. DefaultMinMax provides initial values for the elements and is the template that should be instanced.

Node data takes priority in the calculation over cell data. In either case, the first component in the data array that has a vector length is used to calculate the min/max. Note that this process mirrors the rendering pipeline usage of node and cell data.

The outputs of the module are typically used to range the datamap to the extents of the data.

Input Ports

input

Input data to be used in the calculation.

Output Ports

min_value

Minimum value in the input data.

max_value

Maximum value in the input data.

Example

Libraries.Graphics_Display.Objects.DataObject
Libraries.Graphics_Display.Objects.Group_Object

File

v/gd.v

See also

For more information, see: