FLDget_node_data_minmax_vec, FLDcopy_node_minmax_vec, FLDreset _node_minmax_vec


Synopsis

get/copy/reset the min_vec and max_vec within one Node_Data component


int FLDget_node_data_minmax_vec (
           OMobj_id field,
           int comp,
           char **min,
           char **max,
           int *type,
           int mode);

int FLDcopy_node_minmax_vec (
           OMobj_id in_field,
           OMobj_id out_field,
           int in_comp,
           int out_comp);

int FLDreset_node_minmax_vec (
           OMobj_id in_field,
           int comp);

Description

These routines get, copy, or reset the min_vec and max_vec data arrays within one Node_Data Data_Array component.

By default, the min_vec and max_vec data values are defined as functions:

prim min_vec[veclen] = cache (min_array (values, null_flag, null_value));
prim max_vec[veclen] = cache (max_array (values, null_flag, null_value));

Normally, there is no need to ever actively set or copy these values.

FLDget_node_data_minmax_vec returns the values of these functions. If the data in the values array changes, the value of the function automatically changes.

FLDcopy_node_minmax_vec is the routine most frequently used in this set. It copies the input field's component min_vec and max_vec to the output field. For a discussion on why this might be desirable: